Appiko
dev_id_fw_ver.c
1 
20 #include "dev_id_fw_ver.h"
21 #include "nrf.h"
22 
23 static const fw_ver_t fw_ver =
24 {
25  .major = (uint8_t) (FW_VER/10000),
26  .minor = (uint8_t) ((FW_VER%10000)/100),
27  .build = (uint8_t) (FW_VER%100)
28 };
29 
30 dev_id_t * dev_id_get(void)
31 {
32  return (dev_id_t *)&NRF_UICR->CUSTOMER[0];
33 }
34 
35 fw_ver_t * fw_ver_get(void)
36 {
37  return (fw_ver_t *)(&fw_ver);
38 }
fw_ver_t * fw_ver_get(void)
Gets a pointer to the location where the Device ID is stored.
Definition: dev_id_fw_ver.c:35
dev_id_t * dev_id_get(void)
Gets a pointer to the location where the Device ID is stored.
Definition: dev_id_fw_ver.c:30