dwm_panid_get

Gets the UWB network identifier.

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

  • output – 16-bit 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 - pan ID

0x01 0x02

Type 0x40 means Status code of the previous command
Type 0x4D means PANID