dwm_enc_key_clear
Clears the encryption key and disables the encryption option if enabled. It does nothing if the key is not set.
Caution
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! It requires a reset for the new configuration to take effect.
-
int dwm_enc_key_clear(void)
- Parameters
input – (none)
output – Status 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 Status code of the previous command