STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE uint32_t LL_DBGMCU_GetDeviceID (void)
 Return the device identifier DBGMCU_IDCODE DEV_ID LL_DBGMCU_GetDeviceID. More...
 
__STATIC_INLINE uint32_t LL_DBGMCU_GetRevisionID (void)
 Return the device revision identifier. More...
 
__STATIC_INLINE void LL_DBGMCU_EnableDBGSleepMode (void)
 Enable the Debug Module during SLEEP mode DBGMCU_CR DBG_SLEEP LL_DBGMCU_EnableDBGSleepMode. More...
 
__STATIC_INLINE void LL_DBGMCU_DisableDBGSleepMode (void)
 Disable the Debug Module during SLEEP mode DBGMCU_CR DBG_SLEEP LL_DBGMCU_DisableDBGSleepMode. More...
 
__STATIC_INLINE void LL_DBGMCU_EnableDBGStopMode (void)
 Enable the Debug Module during STOP mode DBGMCU_CR DBG_STOP LL_DBGMCU_EnableDBGStopMode. More...
 
__STATIC_INLINE void LL_DBGMCU_DisableDBGStopMode (void)
 Disable the Debug Module during STOP mode DBGMCU_CR DBG_STOP LL_DBGMCU_DisableDBGStopMode. More...
 
__STATIC_INLINE void LL_DBGMCU_EnableDBGStandbyMode (void)
 Enable the Debug Module during STANDBY mode DBGMCU_CR DBG_STANDBY LL_DBGMCU_EnableDBGStandbyMode. More...
 
__STATIC_INLINE void LL_DBGMCU_DisableDBGStandbyMode (void)
 Disable the Debug Module during STANDBY mode DBGMCU_CR DBG_STANDBY LL_DBGMCU_DisableDBGStandbyMode. More...
 
__STATIC_INLINE void LL_DBGMCU_SetTracePinAssignment (uint32_t PinAssignment)
 Set Trace pin assignment control DBGMCU_CR TRACE_IOEN LL_DBGMCU_SetTracePinAssignment
DBGMCU_CR TRACE_MODE LL_DBGMCU_SetTracePinAssignment. More...
 
__STATIC_INLINE uint32_t LL_DBGMCU_GetTracePinAssignment (void)
 Get Trace pin assignment control DBGMCU_CR TRACE_IOEN LL_DBGMCU_GetTracePinAssignment
DBGMCU_CR TRACE_MODE LL_DBGMCU_GetTracePinAssignment. More...
 
__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_FreezePeriph (uint32_t Periphs)
 Freeze APB1 peripherals (group1 peripherals) DBGMCU_APB1FZR1 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP1_FreezePeriph. More...
 
__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_FreezePeriph (uint32_t Periphs)
 Freeze APB1 peripherals (group2 peripherals) DBGMCU_APB1FZR2 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP2_FreezePeriph. More...
 
__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_UnFreezePeriph (uint32_t Periphs)
 Unfreeze APB1 peripherals (group1 peripherals) DBGMCU_APB1FZR1 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP1_UnFreezePeriph. More...
 
__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_UnFreezePeriph (uint32_t Periphs)
 Unfreeze APB1 peripherals (group2 peripherals) DBGMCU_APB1FZR2 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP2_UnFreezePeriph. More...
 
__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_FreezePeriph (uint32_t Periphs)
 Freeze APB2 peripherals DBGMCU_APB2FZ DBG_TIMx_STOP LL_DBGMCU_APB2_GRP1_FreezePeriph. More...
 
__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_UnFreezePeriph (uint32_t Periphs)
 Unfreeze APB2 peripherals DBGMCU_APB2FZ DBG_TIMx_STOP LL_DBGMCU_APB2_GRP1_UnFreezePeriph. More...
 

Detailed Description

Function Documentation

◆ LL_DBGMCU_APB1_GRP1_FreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_FreezePeriph ( uint32_t  Periphs)

Freeze APB1 peripherals (group1 peripherals) DBGMCU_APB1FZR1 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP1_FreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB1_GRP1_TIM2_STOP
  • LL_DBGMCU_APB1_GRP1_TIM3_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM4_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM5_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM6_STOP
  • LL_DBGMCU_APB1_GRP1_TIM7_STOP (*)
  • LL_DBGMCU_APB1_GRP1_RTC_STOP
  • LL_DBGMCU_APB1_GRP1_WWDG_STOP
  • LL_DBGMCU_APB1_GRP1_IWDG_STOP
  • LL_DBGMCU_APB1_GRP1_I2C1_STOP
  • LL_DBGMCU_APB1_GRP1_I2C2_STOP (*)
  • LL_DBGMCU_APB1_GRP1_I2C3_STOP
  • LL_DBGMCU_APB1_GRP1_CAN_STOP
  • LL_DBGMCU_APB1_GRP1_CAN2_STOP (*)
  • LL_DBGMCU_APB1_GRP1_LPTIM1_STOP
(*) value not defined in all devices.
Return values
None

Definition at line 1163 of file stm32l4xx_ll_system.h.

1164 {
1165  SET_BIT(DBGMCU->APB1FZR1, Periphs);
1166 }

◆ LL_DBGMCU_APB1_GRP1_UnFreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_UnFreezePeriph ( uint32_t  Periphs)

Unfreeze APB1 peripherals (group1 peripherals) DBGMCU_APB1FZR1 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP1_UnFreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB1_GRP1_TIM2_STOP
  • LL_DBGMCU_APB1_GRP1_TIM3_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM4_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM5_STOP (*)
  • LL_DBGMCU_APB1_GRP1_TIM6_STOP
  • LL_DBGMCU_APB1_GRP1_TIM7_STOP (*)
  • LL_DBGMCU_APB1_GRP1_RTC_STOP
  • LL_DBGMCU_APB1_GRP1_WWDG_STOP
  • LL_DBGMCU_APB1_GRP1_IWDG_STOP
  • LL_DBGMCU_APB1_GRP1_I2C1_STOP
  • LL_DBGMCU_APB1_GRP1_I2C2_STOP (*)
  • LL_DBGMCU_APB1_GRP1_I2C3_STOP
  • LL_DBGMCU_APB1_GRP1_CAN_STOP
  • LL_DBGMCU_APB1_GRP1_CAN2_STOP (*)
  • LL_DBGMCU_APB1_GRP1_LPTIM1_STOP
(*) value not defined in all devices.
Return values
None

Definition at line 1206 of file stm32l4xx_ll_system.h.

1207 {
1208  CLEAR_BIT(DBGMCU->APB1FZR1, Periphs);
1209 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_APB1_GRP2_FreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_FreezePeriph ( uint32_t  Periphs)

Freeze APB1 peripherals (group2 peripherals) DBGMCU_APB1FZR2 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP2_FreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB1_GRP2_I2C4_STOP (*)
  • LL_DBGMCU_APB1_GRP2_LPTIM2_STOP
(*) value not defined in all devices.
Return values
None

Definition at line 1178 of file stm32l4xx_ll_system.h.

1179 {
1180  SET_BIT(DBGMCU->APB1FZR2, Periphs);
1181 }

◆ LL_DBGMCU_APB1_GRP2_UnFreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_UnFreezePeriph ( uint32_t  Periphs)

Unfreeze APB1 peripherals (group2 peripherals) DBGMCU_APB1FZR2 DBG_xxxx_STOP LL_DBGMCU_APB1_GRP2_UnFreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB1_GRP2_I2C4_STOP (*)
  • LL_DBGMCU_APB1_GRP2_LPTIM2_STOP
(*) value not defined in all devices.
Return values
None

Definition at line 1221 of file stm32l4xx_ll_system.h.

1222 {
1223  CLEAR_BIT(DBGMCU->APB1FZR2, Periphs);
1224 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_APB2_GRP1_FreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_FreezePeriph ( uint32_t  Periphs)

Freeze APB2 peripherals DBGMCU_APB2FZ DBG_TIMx_STOP LL_DBGMCU_APB2_GRP1_FreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB2_GRP1_TIM1_STOP
  • LL_DBGMCU_APB2_GRP1_TIM8_STOP (*)
  • LL_DBGMCU_APB2_GRP1_TIM15_STOP
  • LL_DBGMCU_APB2_GRP1_TIM16_STOP
  • LL_DBGMCU_APB2_GRP1_TIM17_STOP (*)
(*) value not defined in all devices.
Return values
None

Definition at line 1239 of file stm32l4xx_ll_system.h.

1240 {
1241  SET_BIT(DBGMCU->APB2FZ, Periphs);
1242 }

◆ LL_DBGMCU_APB2_GRP1_UnFreezePeriph()

__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_UnFreezePeriph ( uint32_t  Periphs)

Unfreeze APB2 peripherals DBGMCU_APB2FZ DBG_TIMx_STOP LL_DBGMCU_APB2_GRP1_UnFreezePeriph.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_DBGMCU_APB2_GRP1_TIM1_STOP
  • LL_DBGMCU_APB2_GRP1_TIM8_STOP (*)
  • LL_DBGMCU_APB2_GRP1_TIM15_STOP
  • LL_DBGMCU_APB2_GRP1_TIM16_STOP
  • LL_DBGMCU_APB2_GRP1_TIM17_STOP (*)
(*) value not defined in all devices.
Return values
None

Definition at line 1257 of file stm32l4xx_ll_system.h.

1258 {
1259  CLEAR_BIT(DBGMCU->APB2FZ, Periphs);
1260 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_DisableDBGSleepMode()

__STATIC_INLINE void LL_DBGMCU_DisableDBGSleepMode ( void  )

Disable the Debug Module during SLEEP mode DBGMCU_CR DBG_SLEEP LL_DBGMCU_DisableDBGSleepMode.

Return values
None

Definition at line 1062 of file stm32l4xx_ll_system.h.

1063 {
1064  CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
1065 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_DisableDBGStandbyMode()

__STATIC_INLINE void LL_DBGMCU_DisableDBGStandbyMode ( void  )

Disable the Debug Module during STANDBY mode DBGMCU_CR DBG_STANDBY LL_DBGMCU_DisableDBGStandbyMode.

Return values
None

Definition at line 1102 of file stm32l4xx_ll_system.h.

1103 {
1104  CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
1105 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_DisableDBGStopMode()

__STATIC_INLINE void LL_DBGMCU_DisableDBGStopMode ( void  )

Disable the Debug Module during STOP mode DBGMCU_CR DBG_STOP LL_DBGMCU_DisableDBGStopMode.

Return values
None

Definition at line 1082 of file stm32l4xx_ll_system.h.

1083 {
1084  CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
1085 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DBGMCU_EnableDBGSleepMode()

__STATIC_INLINE void LL_DBGMCU_EnableDBGSleepMode ( void  )

Enable the Debug Module during SLEEP mode DBGMCU_CR DBG_SLEEP LL_DBGMCU_EnableDBGSleepMode.

Return values
None

Definition at line 1052 of file stm32l4xx_ll_system.h.

1053 {
1054  SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
1055 }

◆ LL_DBGMCU_EnableDBGStandbyMode()

__STATIC_INLINE void LL_DBGMCU_EnableDBGStandbyMode ( void  )

Enable the Debug Module during STANDBY mode DBGMCU_CR DBG_STANDBY LL_DBGMCU_EnableDBGStandbyMode.

Return values
None

Definition at line 1092 of file stm32l4xx_ll_system.h.

1093 {
1094  SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
1095 }

◆ LL_DBGMCU_EnableDBGStopMode()

__STATIC_INLINE void LL_DBGMCU_EnableDBGStopMode ( void  )

Enable the Debug Module during STOP mode DBGMCU_CR DBG_STOP LL_DBGMCU_EnableDBGStopMode.

Return values
None

Definition at line 1072 of file stm32l4xx_ll_system.h.

1073 {
1074  SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
1075 }

◆ LL_DBGMCU_GetDeviceID()

__STATIC_INLINE uint32_t LL_DBGMCU_GetDeviceID ( void  )

Return the device identifier DBGMCU_IDCODE DEV_ID LL_DBGMCU_GetDeviceID.

Return values
Valuesbetween Min_Data=0x00 and Max_Data=0xFFFF (ex: device ID is 0x6415)

Definition at line 1031 of file stm32l4xx_ll_system.h.

1032 {
1033  return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_DEV_ID));
1034 }

◆ LL_DBGMCU_GetRevisionID()

__STATIC_INLINE uint32_t LL_DBGMCU_GetRevisionID ( void  )

Return the device revision identifier.

Note
This field indicates the revision of the device. DBGMCU_IDCODE REV_ID LL_DBGMCU_GetRevisionID
Return values
Valuesbetween Min_Data=0x00 and Max_Data=0xFFFF

Definition at line 1042 of file stm32l4xx_ll_system.h.

1043 {
1044  return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_REV_ID) >> DBGMCU_IDCODE_REV_ID_Pos);
1045 }

◆ LL_DBGMCU_GetTracePinAssignment()

__STATIC_INLINE uint32_t LL_DBGMCU_GetTracePinAssignment ( void  )

Get Trace pin assignment control DBGMCU_CR TRACE_IOEN LL_DBGMCU_GetTracePinAssignment
DBGMCU_CR TRACE_MODE LL_DBGMCU_GetTracePinAssignment.

Return values
Returnedvalue can be one of the following values:
  • LL_DBGMCU_TRACE_NONE
  • LL_DBGMCU_TRACE_ASYNCH
  • LL_DBGMCU_TRACE_SYNCH_SIZE1
  • LL_DBGMCU_TRACE_SYNCH_SIZE2
  • LL_DBGMCU_TRACE_SYNCH_SIZE4

Definition at line 1135 of file stm32l4xx_ll_system.h.

1136 {
1137  return (uint32_t)(READ_BIT(DBGMCU->CR, DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE));
1138 }

◆ LL_DBGMCU_SetTracePinAssignment()

__STATIC_INLINE void LL_DBGMCU_SetTracePinAssignment ( uint32_t  PinAssignment)

Set Trace pin assignment control DBGMCU_CR TRACE_IOEN LL_DBGMCU_SetTracePinAssignment
DBGMCU_CR TRACE_MODE LL_DBGMCU_SetTracePinAssignment.

Parameters
PinAssignmentThis parameter can be one of the following values:
  • LL_DBGMCU_TRACE_NONE
  • LL_DBGMCU_TRACE_ASYNCH
  • LL_DBGMCU_TRACE_SYNCH_SIZE1
  • LL_DBGMCU_TRACE_SYNCH_SIZE2
  • LL_DBGMCU_TRACE_SYNCH_SIZE4
Return values
None

Definition at line 1119 of file stm32l4xx_ll_system.h.

1120 {
1121  MODIFY_REG(DBGMCU->CR, DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE, PinAssignment);
1122 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)