dwm_uwb_cfg_set

Sets UWB configuration parameters.

void dwm_uwb_cfg_set(dwm_uwb_cfg_t *cfg)
Parameters
  • input – pg_delay, tx_power

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

  • tx_power – ? 4 bytes ? (TX Power Control)

  • outputStatus code

C code example

dwm_uwb_cfg_t cfg;
cfg.pg_delay = 197;
cfg.tx_power = 0xD0252525;
dwm_uwb_cfg_set(&cfg);

SPI/UART example

TLV Request

Type

Length

Value

0x17

0x05

1st byte: pg_delay
2nd-5th byte: tx_power

0xC3 0x85 0x65 0x45 0x25

Type 0x17 means command dwm_uwb_cfg_set

TLV Response

Type

Length

Value (see error codes)

0x40

0x01

0x00