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