Our website is under construction. Please stay tuned!

dwm_panid_get

Gets the UWB network identifier from the node.

void dwm_panid_get(uint16_t *panid)
Parameters
  • input – (none)

  • output – 2-byte unsigned integer ? (the PAN ID)

C code example

uint16_t panid;
if (DWM_OK == dwm_panid_get(&panid)) {
printf("panid=%u\n");
} else {
printf("FAILED\n");
}

SPI/UART example

TLV Request

Type

Length

0x2F

0x00

Type 0x2F means command dwm_panid_get

TLV Response

Type

length

Value (see error codes)

Type

length

Value

0x40

0x01

0x00

0x4D

0x02

2 bytes in little endian

0x01 0x02

Type 0x40 means err_code of the previous command
Type 0x4D means PANID