leaps_uwb_cfg_set
Sets UWB configuration parameters.
DW1000: can support channel 2, 3 and Channel 5.
DW3000: can support channel 5 and 9.
Input
preamble_code: ‘9’ | ‘10’ | ‘11’ | ‘12’ (UWB preamble code)
channel: ‘2’ | ‘3’ | ‘5’ | ‘9’ (UWB channel)
pg_delay: ? 1 byte ? (Transmitter Calibration – Pulse Generator Delay)
lna_enable: ‘0’ | ‘1’
pa_enable: ‘0’ | ‘1’
rf1_enable: ‘0’ | ‘1’
rf2_enable: ‘0’ | ‘1’
tx_power: ? 4 bytes ? (TX Power Control)
Output
Example
TLV Request |
||
---|---|---|
Type |
Length |
Value |
(1st byte) preamble_code
(2nd byte) pg_delay
(3rd byte) channel
(4th byte, bit 0) lna_enable
(4th byte, bit 1) pa_enable
(4th byte, bit 2) rf1_enable
(4th byte, bit 3) rf2_enable
(4th byte, bits 4-8) reserved
(5th-8th byte) tx_power
|
||
0x17 |
0x08 |
0x09 0xC3 0x05 0x03 0x85 0x65 0x45 0x25 |
Type 0x17 means command leaps_uwb_cfg_set
Type |
Length |
Value |
---|---|---|
0x40 |
0x01 |
0x00 |