dwm_nvm_usr_data_get

Reads user data from non-volatile memory.

int dwm_nvm_usr_data_get(uint8_t *data, uint8_t *len)
Parameters
  • input – len (buffer length)

  • outputStatus code, data, len

  • data – 250 bytes max (the user data previously stored in non-volatile memory)

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

C code example

uint8_t buf[DWM_NVM_USR_DATA_LEN_MAX];
uint8_t len;
int rv;
len = sizeof(buf);
rv = dwm_nvm_usr_data_get(buf, &len);
if (rv == DWM_ERR_OVERRUN)
{
  printf("expected length = %d\n”, len);
}

SPI/UART example

not available on these interfaces