Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_device_id.c
1 #include <bc_device_id.h>
2 #include <stm32l0xx.h>
3 
4 void bc_device_id_get(void *destination, size_t size)
5 {
6  memset(destination, 0, size);
7  memcpy(destination, (void *) (UID_BASE + (12 - (size > 12 ? 12 : size))), size > 12 ? 12 : size);
8 }
void bc_device_id_get(void *destination, size_t size)
Get device unique ID.
Definition: bc_device_id.c:4