dwm_usr_data_write
Send user data to the UWB network.
-
void dwm_usr_data_write(uint8_t*, uint8_t, boolean_t)
- Parameters
input – data, len, overwrite
data – 34 bytes max (the user data to be written)
len – (data length, 34 bytes max)
overwrite – bool (forced write, will overwrite data that are not yet sent to the bridge)
output – Status code
C code example
uint8_t len, data[DWM_USR_DATA_LEN_MAX];
len = DWM_USR_DATA_LEN_MAX;
dwm_usr_data_write(data, len, false);
SPI/UART example
TLV Request |
||
---|---|---|
Type |
Length |
Value |
0x1A |
0x23 |
byte 0: flags
- overwrite (bit 0)
- reserved (bit 1 - bit 7)
byte 1 - N: user data
(2 <= N <= 34)
|
0x01 0x01 0x02 0x03 …. 0x23 0x22 |
Type 0x1A means command dwm_usr_data_write
TLV Response |
||
---|---|---|
Type |
Length |
Value (see error codes) |
0x40 |
0x01 |
0x00 |
Type 0x40 means Status code of the command