Our website is under construction. Please stay tuned!

dwm_hw_ver_set_once

Sets the hardware version in the write-once memory. The hardware version cannot be changed after it is successfully set by this call!

int dwm_hw_ver_set_once(dwm_hw_ver_t ver);
Parameters
  • hw_version – ? 32-bits integer ?

  • output – none

C code example

dwm_hw_ver_t ver;
int rv;
rv = dwm_hw_ver_set_once(ver);
printf(HW version set (%d)\n, (rv == 0? ok : failed));

SPI/UART example

TLV request

type

length

value

0x84

0x04

Hardware version in little endian (e.g. 0x02110100)

0x00 0x01 0x11 0x02

Type 0x84 (132 dec) means command dwm_hw_ver_set_once

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command