Appiko
Data Structures | Functions
Retrieve the device ID and firmware version

For a product this module retrieves the device ID programmed in the board level test at factory and the firmware version provided at compile time. More...

Data Structures

struct  __attribute__
 Strcture for Operation time. More...
 

Functions

dev_id_t * dev_id_get (void)
 Gets a pointer to the location where the Device ID is stored. More...
 
fw_ver_t * fw_ver_get (void)
 Gets a pointer to the location where the Device ID is stored. More...
 

Detailed Description

Function Documentation

◆ dev_id_get()

dev_id_t* dev_id_get ( void  )
Returns
The said pointer
Note
The firmware must be compiled by passing the firmware version as a macro FW_VER at compile time.

Definition at line 30 of file dev_id_fw_ver.c.

◆ fw_ver_get()

fw_ver_t* fw_ver_get ( void  )
Returns
The said pointer
Note
The device must be programmed with the device ID in UICR 0 to 3 during manufacturing

Definition at line 35 of file dev_id_fw_ver.c.