Changes between Version 2 and Version 3 of WARPLab/Reference/Commands/TriggerManager


Ignore:
Timestamp:
May 6, 2013, 3:52:11 PM (11 years ago)
Author:
chunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WARPLab/Reference/Commands/TriggerManager

    v2 v3  
    2020
    2121== Command List and Documentation ==
    22 === {{{add_trigger_input}}} ===
     22=== {{{add_ethernet_trigger}}} ===
    2323Associates node to a trigger input[[BR]]
    2424
     
    2929
    3030
    31 === {{{delete_trigger_input}}} ===
     31=== {{{delete_ethernet_trigger}}} ===
    3232Deassociates node to a trigger input[[BR]]
    3333
     
    3838
    3939
    40 === {{{clear_trigger_input}}} ===
     40=== {{{clear_ethernet_triggers}}} ===
    4141Clears all trigger associations in the node[[BR]]
    4242
     
    4747
    4848
    49 === {{{get_trigger_input}}} ===
     49=== {{{get_ethernet_trigger}}} ===
    5050Reads current trigger association from node[[BR]]
    5151
     
    5858
    5959
     60=== {{{output_config_input_selection}}} ===
     61Selects which trigger inputs drive the selected outputs[[BR]]
     62
     63'''Arguments:''' (uint32 OUTPUTS), (uint32 OR_INPUTS), ![optional] (uint32 AND_INPUTS)
     64
     65'''Returns:''' none
     66
     67OUTPUTS:      vector of output trigger IDs, provided by[[BR]]
     68wl_getTriggerOutputIDs[[BR]]
     69
     70OR_INPUTS:    vector of input trigger IDs, provided by[[BR]]
     71wl_getTriggerInputIDs. Any triggers in[[BR]]
     72this vector that assert will cause the[[BR]]
     73output trigger to assert.[[BR]]
     74
     75AND_INPUTS:   vector of input trigger IDs, provided by[[BR]]
     76wl_getTriggerInputIDs. Only if all triggers[[BR]]
     77in this vector assert will the output [[BR]]
     78trigger assert.   [[BR]]
     79
     80Usage note: This command replaces the current input[[BR]]
     81selection on the board. Previous state is not saved.[[BR]]
     82
     83
     84=== {{{output_config_delay}}} ===
     85Configures specified output triggers to be have an[[BR]]
     86additional delay relative to their inputs[[BR]]
     87
     88
     89'''Arguments:''' (uint32 OUTPUTS), (double DELAY_NS)
     90
     91'''Returns:''' none
     92
     93OUTPUTS:      vector of output trigger IDs, provided by[[BR]]
     94wl_getTriggerOutputIDs[[BR]]
     95
     96DELAY_NS:     scalar value of the intended delay,[[BR]]
     97specified in nanoseconds (1e-9 seconds)[[BR]]
     98
     99
     100=== {{{output_config_hold_mode}}} ===
     101Configures whether specified output triggers should[[BR]]
     102hold their outputs once triggered[[BR]]
     103
     104
     105'''Arguments:''' (uint32 OUTPUTS), (string MODE)
     106
     107'''Returns:''' none
     108
     109OUTPUTS:      vector of output trigger IDs, provided by[[BR]]
     110wl_getTriggerOutputIDs[[BR]]
     111
     112MODE:         'enable' or 'disable'[[BR]]
     113
     114
     115=== {{{output_state_read}}} ===
     116Reads current state of output triggers. Note: this[[BR]]
     117command is intended to be used on output triggers[[BR]]
     118that have enabled their hold mode.[[BR]]
     119
     120
     121'''Arguments:''' (uint32 OUTPUTS)
     122
     123'''Returns:''' (bool STATES)
     124
     125OUTPUTS:      vector of output trigger IDs, provided by[[BR]]
     126wl_getTriggerOutputIDs[[BR]]
     127
     128STATES:       vector of (true, false) trigger states[[BR]]
     129corresponding to state of OUTPUTS vector[[BR]]
     130
     131
     132=== {{{output_state_clear}}} ===
     133Clears current state of output triggers. [[BR]]
     134
     135
     136'''Arguments:''' (uint32 OUTPUTS)
     137
     138'''Returns:''' none
     139
     140OUTPUTS:      vector of output trigger IDs, provided by[[BR]]
     141wl_getTriggerOutputIDs[[BR]]
     142
     143
     144
     145=== {{{input_config_enable_selection}}} ===
     146Configures specified input triggers to be enabled[[BR]]
     147as inputs that feed the trigger manager core.[[BR]]
     148Note: This command disables all inputs before[[BR]]
     149enabling the selected inputs -- no previous state is[[BR]]
     150stored in the node.[[BR]]
     151
     152
     153'''Arguments:''' (uint32 INPUTS)
     154
     155'''Returns:''' none
     156
     157INPUTS:      vector of output trigger IDs, provided by[[BR]]
     158wl_getTriggerInputIDs[[BR]]
     159
     160
     161=== {{{input_config_debounce_mode}}} ===
     162Configures specified input triggers to enable or[[BR]]
     163disable debounce circuit. Note: debounce circuit adds[[BR]]
     164delay of 4 cycles, where each cycle is a duration[[BR]]
     165specified in the delayStep_ns property of the[[BR]]
     166wl_manager_proc.m class.[[BR]]
     167
     168
     169'''Arguments:''' (uint32 INPUTS), (string MODE)
     170
     171'''Returns:''' none
     172
     173INPUTS:      vector of output trigger IDs, provided by[[BR]]
     174wl_getTriggerInputIDs[[BR]]
     175
     176MODE:         'enable' or 'disable'[[BR]]
     177
     178
     179=== {{{energy_config_busy_threshold}}} ===
     180Configures the threshold above which RSSI is[[BR]]
     181considered as a "busy" medium.[[BR]]
     182
     183
     184'''Arguments:''' (uint32 THRESH)
     185
     186'''Returns:''' none
     187
     188THRESH:      busy threshold. For the MAX2829-based[[BR]]
     189interfaces, WARP uses a 10-bit ADC for[[BR]]
     190RSSI (range of ![0,1023]).[[BR]]
     191
     192Note: RSSI averaging in the core does NOT divide by[[BR]]
     193the number of samples that are summed together.[[BR]]
     194Averaging by N cycles means that the maximum possible[[BR]]
     195RSSI post-averaging is N*1023.[[BR]]
     196
     197
     198=== {{{energy_config_average_length}}} ===
     199Configures the number of samples over which RSSI is[[BR]]
     200averaged before it is compared to any threshold.[[BR]]
     201
     202
     203'''Arguments:''' (uint32 LENGTH)
     204
     205'''Returns:''' none
     206
     207LENGTH:      Number of samples over which RSSI is[[BR]]
     208averaged.[[BR]]
     209
     210Note: For all hardware versions, RSSI is sampled at[[BR]]
     21110 MHz. Each sample is, therefore, 100 ns.[[BR]]
     212
     213
     214=== {{{energy_config_busy_minlength}}} ===
     215Average RSSI samples must exceed the busy threshold[[BR]]
     216for a minimum number of samples before the trigger is[[BR]]
     217activated. This command sets this minimum value.[[BR]]
     218
     219
     220'''Arguments:''' (uint32 LENGTH)
     221
     222'''Returns:''' none
     223
     224LENGTH:      Minimum number of samples that RSSI must[[BR]]
     225be busy before trigger is raised.[[BR]]
     226
     227
     228=== {{{energy_config_interface_selection}}} ===
     229Selects the interfaces from which energy detection[[BR]]
     230should base its decision[[BR]]
     231
     232
     233'''Arguments:''' (uint32 IFCSELECTION)
     234
     235'''Returns:''' none
     236
     237IFCSELECTION:     One or more interfaces that the[[BR]]
     238energy detector system should[[BR]]
     239monitor[[BR]]
     240
     241Note: IFCSELECTION is intended to be used with the[[BR]]
     242return values from the wl_getInterfaceIDs method.[[BR]]
     243
     244
    60245=== {{{test_trigger}}} ===
    61246Sends a test trigger[[BR]]