STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE uint32_t LL_CPUID_GetImplementer (void)
 Get Implementer code SCB_CPUID IMPLEMENTER LL_CPUID_GetImplementer. More...
 
__STATIC_INLINE uint32_t LL_CPUID_GetVariant (void)
 Get Variant number (The r value in the rnpn product revision identifier) SCB_CPUID VARIANT LL_CPUID_GetVariant. More...
 
__STATIC_INLINE uint32_t LL_CPUID_GetConstant (void)
 Get Constant number SCB_CPUID ARCHITECTURE LL_CPUID_GetConstant. More...
 
__STATIC_INLINE uint32_t LL_CPUID_GetParNo (void)
 Get Part number SCB_CPUID PARTNO LL_CPUID_GetParNo. More...
 
__STATIC_INLINE uint32_t LL_CPUID_GetRevision (void)
 Get Revision number (The p value in the rnpn product revision identifier, indicates patch release) SCB_CPUID REVISION LL_CPUID_GetRevision. More...
 

Detailed Description

Function Documentation

◆ LL_CPUID_GetConstant()

__STATIC_INLINE uint32_t LL_CPUID_GetConstant ( void  )

Get Constant number SCB_CPUID ARCHITECTURE LL_CPUID_GetConstant.

Return values
Valueshould be equal to 0xF for Cortex-M4 devices

Definition at line 446 of file stm32l4xx_ll_cortex.h.

447 {
448  return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_ARCHITECTURE_Msk) >> SCB_CPUID_ARCHITECTURE_Pos);
449 }

◆ LL_CPUID_GetImplementer()

__STATIC_INLINE uint32_t LL_CPUID_GetImplementer ( void  )

Get Implementer code SCB_CPUID IMPLEMENTER LL_CPUID_GetImplementer.

Return values
Valueshould be equal to 0x41 for ARM

Definition at line 426 of file stm32l4xx_ll_cortex.h.

427 {
428  return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_IMPLEMENTER_Msk) >> SCB_CPUID_IMPLEMENTER_Pos);
429 }

◆ LL_CPUID_GetParNo()

__STATIC_INLINE uint32_t LL_CPUID_GetParNo ( void  )

Get Part number SCB_CPUID PARTNO LL_CPUID_GetParNo.

Return values
Valueshould be equal to 0xC24 for Cortex-M4

Definition at line 456 of file stm32l4xx_ll_cortex.h.

457 {
458  return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_PARTNO_Msk) >> SCB_CPUID_PARTNO_Pos);
459 }

◆ LL_CPUID_GetRevision()

__STATIC_INLINE uint32_t LL_CPUID_GetRevision ( void  )

Get Revision number (The p value in the rnpn product revision identifier, indicates patch release) SCB_CPUID REVISION LL_CPUID_GetRevision.

Return values
Valuebetween 0 and 255 (0x1: patch 1)

Definition at line 466 of file stm32l4xx_ll_cortex.h.

467 {
468  return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_REVISION_Msk) >> SCB_CPUID_REVISION_Pos);
469 }

◆ LL_CPUID_GetVariant()

__STATIC_INLINE uint32_t LL_CPUID_GetVariant ( void  )

Get Variant number (The r value in the rnpn product revision identifier) SCB_CPUID VARIANT LL_CPUID_GetVariant.

Return values
Valuebetween 0 and 255 (0x0: revision 0)

Definition at line 436 of file stm32l4xx_ll_cortex.h.

437 {
438  return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_VARIANT_Msk) >> SCB_CPUID_VARIANT_Pos);
439 }