dwm_usr_data_read
Reads user data from the node. The new data received on UWB causes the setting of a dedicated flag in the status (see dwm_status_get) and causes the generation of an event in the user applications (see dwm_evt_listener_register).
-
void dwm_usr_data_read(uint8_t*, uint8_t*)
- Parameters
input – (none)
output – Status code, data, len
data – 1-34 bytes (the user data)
len – 1 byte (length of the data)
C code example
uint8_t data[DWM_USR_DATA_LEN_MAX];
uint8_t len;
len = DWM_USR_DATA_LEN_MAX;
dwm_usr_data_read(data, &len);
SPI/UART example
TLV Request |
|
---|---|
Type |
Length |
0x19 |
0x00 |
Type 0x19 means command dwm_usr_data_read
TLV Response |
|||||
---|---|---|---|---|---|
Type |
Length |
Value (see error codes) |
Type |
Length |
Value |
0x40 |
0x01 |
0x00 |
0x4B |
0x22 |
byte 0 - N: user data (1 <= N <= 33) |
0x01 0x02 0x03 … 0x23 0x22 |
Type 0x4B means user data