![]() |
PDL for FM0+
Version1.0
Peripheral Driverl Library for FM0+
|
Data Structures | |
struct | stc_unique_id |
PDL structure of Unique ID register set. More... | |
Typedefs | |
typedef struct stc_unique_id | stc_unique_id_t |
PDL structure of Unique ID register set. | |
Functions | |
en_result_t | Uid_ReadUniqueId (stc_unique_id_t *pstcUniqueId) |
Read Unique ID registers as is. | |
uint32_t | Uid_ReadUniqueId0 (void) |
Read Unique ID registers 0 and shifts it by 4 (LSB aligned) | |
uint32_t | Uid_ReadUniqueId1 (void) |
Read Unique ID registers 1 and masks the upper 19 bits to '0'. | |
uint64_t | Uid_ReadUniqueId64 (void) |
Read Unique ID registers 0 and 1 and merge it LSB aligned to a 64 bit value. |
Provided functions of UID module:
Uid_ReadUniqueId() reads out the Unique ID to a pointered structure of the type stc_unique_id_t. Uid_ReadUniqueId0() reads out the Unique ID 0 register and aligns the result to the LSB. Uid_ReadUniqueId1() reads out the Unique ID 1 register. Both functions masks reserved bits to '0'. Uid_ReadUniqueId64() reads out the complete Unique ID registers aligns them to LSB and masks out reserved bits to '0'.
typedef struct stc_unique_id stc_unique_id_t |
PDL structure of Unique ID register set.
en_result_t Uid_ReadUniqueId | ( | stc_unique_id_t * | pstcUniqueId | ) |
Read Unique ID registers as is.
This function reads out UIDR0 and UIDR1 as is without any shift to a pointered structure of the type stc_unique_id_t. Reserved bits are masked to '0'.
[out] | pstcUniqueId | Pointer to the Unique ID structure |
Ok | Unique ID successfully written |
ErrorInvalidParameter | pstcUniqueId == NULL |
Definition at line 102 of file uid.c.
References ErrorInvalidParameter, Ok, stc_unique_id::u32Uidr0, and stc_unique_id::u32Uidr1.
uint32_t Uid_ReadUniqueId0 | ( | void | ) |
uint32_t Uid_ReadUniqueId1 | ( | void | ) |
uint64_t Uid_ReadUniqueId64 | ( | void | ) |