DIY Logging Volt/Ampmeter
DEVICE ELECTRONIC SIGNATURE

Functions

__STATIC_INLINE uint32_t LL_GetUID_Word0 (void)
 Get Word0 of the unique device identifier (UID based on 96 bits) More...
 
__STATIC_INLINE uint32_t LL_GetUID_Word1 (void)
 Get Word1 of the unique device identifier (UID based on 96 bits) More...
 
__STATIC_INLINE uint32_t LL_GetUID_Word2 (void)
 Get Word2 of the unique device identifier (UID based on 96 bits) More...
 
__STATIC_INLINE uint32_t LL_GetFlashSize (void)
 Get Flash memory size. More...
 

Detailed Description

Function Documentation

◆ LL_GetFlashSize()

__STATIC_INLINE uint32_t LL_GetFlashSize ( void  )

Get Flash memory size.

Note
This bitfield indicates the size of the device Flash memory expressed in Kbytes. As an example, 0x040 corresponds to 64 Kbytes.
Return values
FLASH_SIZE[15:0]Flash memory size

Definition at line 196 of file stm32f1xx_ll_utils.h.

197 {
198  return (uint16_t)(READ_REG(*((uint32_t *)FLASHSIZE_BASE_ADDRESS)));
199 }

◆ LL_GetUID_Word0()

__STATIC_INLINE uint32_t LL_GetUID_Word0 ( void  )

Get Word0 of the unique device identifier (UID based on 96 bits)

Return values
UID[31:0]

Definition at line 167 of file stm32f1xx_ll_utils.h.

168 {
169  return (uint32_t)(READ_REG(*((uint32_t *)UID_BASE_ADDRESS)));
170 }

◆ LL_GetUID_Word1()

__STATIC_INLINE uint32_t LL_GetUID_Word1 ( void  )

Get Word1 of the unique device identifier (UID based on 96 bits)

Return values
UID[63:32]

Definition at line 176 of file stm32f1xx_ll_utils.h.

177 {
178  return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 4U))));
179 }

◆ LL_GetUID_Word2()

__STATIC_INLINE uint32_t LL_GetUID_Word2 ( void  )

Get Word2 of the unique device identifier (UID based on 96 bits)

Return values
UID[95:64]

Definition at line 185 of file stm32f1xx_ll_utils.h.

186 {
187  return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 8U))));
188 }
UID_BASE_ADDRESS
#define UID_BASE_ADDRESS
Unique device ID register base address.
Definition: stm32f1xx_ll_utils.h:65
READ_REG
#define READ_REG(REG)
Definition: stm32f1xx.h:188
FLASHSIZE_BASE_ADDRESS
#define FLASHSIZE_BASE_ADDRESS
Flash size data register base address.
Definition: stm32f1xx_ll_utils.h:70