dwm_nvm_usr_data_set

Writes user data to non-volatile memory. Therefore should be used with caution. Old data is overwritten.

int dwm_nvm_usr_data_set(uint8_t *data, uint8_t len)
Parameters
  • input – data, len

  • data – 250 bytes max (the user data to be written)

  • len – 1 byte (data length, 250 bytes max)

  • outputStatus code

C code example

uint8_t buf[DWM_NVM_USR_DATA_LEN_MAX];
uint8_t len = DWM_NVM_USR_DATA_LEN_MAX;
int rv;
rv = dwm_nvm_usr_data_set(buf, len);
if (DWM_OK == rv)
{
   printf("ok\n”);
}
else
{
   printf("error, %d”, rv);
}

SPI/UART example

Not available on these interfaces.