Our website is under construction. Please stay tuned!

dwm_enc_key_clear

Clears the encryption key and disables the encryption option if enabled. However, it only works if the key is set.

Normally, this call writes to internal flash when setting a new value. Hence, it should not be used frequently and can take hundreds of milliseconds in the worst case! Also, it requires a reset for the new configuration to take effect.

int dwm_enc_key_clear(void)
Parameters
  • type_0

  • output – err_code

C code example

int rv;
rv = dwm_enc_key_clear();
if (rv == DWM_ERR_INTERNAL)
{
  printf(internal error\n);
}

SPI/UART example

TLV request

type

length

0X3D

0x00

Type 0x3D means command dwm_enc_key_clear

TLV request

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command