STM32L4xx_HAL_Driver  1.14.0
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...
 
__STATIC_INLINE uint32_t LL_GetPackageType (void)
 Get Package type. 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 231 of file stm32l4xx_ll_utils.h.

232 {
233  return (uint32_t)(READ_REG(*((uint32_t *)FLASHSIZE_BASE_ADDRESS)) & 0xFFFFU);
234 }

◆ LL_GetPackageType()

__STATIC_INLINE uint32_t LL_GetPackageType ( void  )

Get Package type.

Return values
Returnedvalue can be one of the following values:
  • LL_UTILS_PACKAGETYPE_LQFP64 (*)
  • LL_UTILS_PACKAGETYPE_LQFP100 (*)
  • LL_UTILS_PACKAGETYPE_BGA132 (*)
  • LL_UTILS_PACKAGETYPE_LQFP144_CSP72 (*)
  • LL_UTILS_PACKAGETYPE_UFQFPN32 (*)
  • LL_UTILS_PACKAGETYPE_UFQFPN48 (*)
  • LL_UTILS_PACKAGETYPE_LQFP48 (*)
  • LL_UTILS_PACKAGETYPE_WLCSP49 (*)
  • LL_UTILS_PACKAGETYPE_UFBGA64 (*)
  • LL_UTILS_PACKAGETYPE_UFBGA100 (*)
  • LL_UTILS_PACKAGETYPE_UFBGA169 (*)
  • LL_UTILS_PACKAGETYPE_LQFP100_DSI (*)
  • LL_UTILS_PACKAGETYPE_WLCSP144_DSI (*)
  • LL_UTILS_PACKAGETYPE_UFBGA144_DSI (*)
  • LL_UTILS_PACKAGETYPE_UFBGA169_DSI (*)
  • LL_UTILS_PACKAGETYPE_LQFP144_DSI (*)
(*) value not defined in all devices.

Definition at line 258 of file stm32l4xx_ll_utils.h.

259 {
260  return (uint32_t)(READ_REG(*((uint32_t *)PACKAGE_BASE_ADDRESS)) & 0x1FU);
261 }

◆ 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]X and Y coordinates on the wafer expressed in BCD format

Definition at line 202 of file stm32l4xx_ll_utils.h.

203 {
204  return (uint32_t)(READ_REG(*((uint32_t *)UID_BASE_ADDRESS)));
205 }

◆ 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]Wafer number (UID[39:32]) & LOT_NUM[23:0] (UID[63:40])

Definition at line 211 of file stm32l4xx_ll_utils.h.

212 {
213  return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 4U))));
214 }

◆ 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]Lot number (ASCII encoded) - LOT_NUM[55:24]

Definition at line 220 of file stm32l4xx_ll_utils.h.

221 {
222  return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 8U))));
223 }