Our website is under construction. Please stay tuned!

dwm_uwb_cfg_get

Gets UWB configuration parameters.

void dwm_uwb_cfg_get(dwm_uwb_cfg_t *uwb_cfg)
Parameters
  • input – (node)

  • outputStatus code, pg_delay, tx_power

  • pg_delay – ? 1 byte ? (Transmitter Calibrati Pulse Generator Delay value)

  • tx_power – ? 4 bytes ? (Units of transmission power control)

  • pg_delay_comp – ? 1 byte ? (Transmitter Calibrati Pulse Generator Delay value, Compensated)

  • tx_power_comp – ? 4 bytes ? (Units of transmission power control, Compensated)

C code example

dwm_uwb_cfg_t uwb_cfg;
dwm_uwb_cfg_get(&uwb_cfg);
printf("delay=%x, power=%lx compensated(%x,%lx)\n",
                     uwb_cfg.pg_delay,
                     uwb_cfg.tx_power,
                     uwb_cfg.compensated.pg_delay,
                     uwb_cfg.compensated.tx_power);

SPI/UART example

TLV Request

Type

Length

0x18

0x00

Type 0x18 means command dwm_uwb_cfg_get

TLV Response

Type

length

Value (see error codes)

Type

length

Value

0x40

0x01

0x00

0x4F

0x0A

1st byte: pg_delay 2nd-5th byte: tx_power 6th byte: pg_delay_comp 7th-10th byte: tx_power_comp

hex: C3 85 65 45 25 C4 85 65 45 25

Type 0x4F means UWB configuration