/** * @file include/di_fw/uid.h * @brief UID header file * @date December 1, 2015 * @author J.J.J. Jacobs * @copyright 2015 Dual Inventive Technology Centre B.V. */ #ifndef DI_FW_UID_H__ #define DI_FW_UID_H__ #include #include #include #include #include /** * Initialize the device:uid based on STM32 Unique ID * Use di_device_uid_get to retrieve the string value */ void di_fw_uid_init(void); /** * Read the UID and set it in the pointer * @param uid pointer to where the UID needs to be written * @param size size of the UID pointer, needs to be bigger then 16 */ void di_fw_uid_read(uint8_t *uid, size_t size); /** * converts UID into a string * @param uid char array with size of 33 where the string needs to be written in */ void di_fw_uid_read_str(char uid[DI_DEVICE_UID_LEN]); #endif /* DI_FW_UID_H__ */