LL EXTI Functions

IT_Management

group EXTI_LL_EF_IT_Management

Functions

void LL_EXTI_EnableIT_0_31 ( uint32_t exti_line )

Enable EXTI Line Interrupt request for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

IMR1 IMx LL_EXTI_EnableIT_0_31

Note

The reset value for the direct or internal lines (see RM) is set to 1 in order to enable the interrupt by default. Bits are set automatically at Power on.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

void LL_EXTI_DisableIT_0_31 ( uint32_t exti_line )

Disable EXTI Line Interrupt request for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

IMR1 IMx LL_EXTI_DisableIT_0_31

Note

The reset value for the direct or internal lines (see RM) is set to 1 in order to enable the interrupt by default. Bits are set automatically at Power on.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

uint32_t LL_EXTI_IsEnabledIT_0_31 ( uint32_t exti_line )

Indicate if EXTI Line Interrupt request is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

IMR1 IMx LL_EXTI_IsEnabledIT_0_31

Note

The reset value for the direct or internal lines (see RM) is set to 1 in order to enable the interrupt by default. Bits are set automatically at Power on.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

Event_Management

group EXTI_LL_EF_Event_Management

Functions

void LL_EXTI_EnableEvent_0_31 ( uint32_t exti_line )

Enable EXTI Line Event request for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

EMR1 EMx LL_EXTI_EnableEvent_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

void LL_EXTI_DisableEvent_0_31 ( uint32_t exti_line )

Disable EXTI Line Event request for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

EMR1 EMx LL_EXTI_DisableEvent_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

uint32_t LL_EXTI_IsEnabledEvent_0_31 ( uint32_t exti_line )

Indicate if EXTI Line Event request is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

EMR1 EMx LL_EXTI_IsEnabledEvent_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

Rising_Trigger_Management

group EXTI_LL_EF_Rising_Trigger_Management

Functions

void LL_EXTI_EnableRisingTrig_0_31 ( uint32_t exti_line )

Enable EXTI Line Rising Edge Trigger for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RTSR1 RTx LL_EXTI_EnableRisingTrig_0_31

Note

The configurable wakeup lines are edge-triggered. No glitch must be generated on these lines. If a rising edge on a configurable interrupt line occurs during a write operation in the EXTI_RTSR register, the pending bit is not set. Rising and falling edge triggers can be set for the same interrupt line. In this case, both generate a trigger condition.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

void LL_EXTI_DisableRisingTrig_0_31 ( uint32_t exti_line )

Disable EXTI Line Rising Edge Trigger for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RTSR1 RTx LL_EXTI_DisableRisingTrig_0_31

Note

The configurable wakeup lines are edge-triggered. No glitch must be generated on these lines. If a rising edge on a configurable interrupt line occurs during a write operation in the EXTI_RTSR register, the pending bit is not set. Rising and falling edge triggers can be set for the same interrupt line. In this case, both generate a trigger condition.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

uint32_t LL_EXTI_IsEnabledRisingTrig_0_31 ( uint32_t exti_line )

Check if rising edge trigger is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RTSR1 RTx LL_EXTI_IsEnabledRisingTrig_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

Falling_Trigger_Management

group EXTI_LL_EF_Falling_Trigger_Management

Functions

void LL_EXTI_EnableFallingTrig_0_31 ( uint32_t exti_line )

Enable EXTI Line Falling Edge Trigger for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FTSR1 FTx LL_EXTI_EnableFallingTrig_0_31

Note

The configurable wakeup lines are edge-triggered. No glitch must be generated on these lines. If a falling edge on a configurable interrupt line occurs during a write operation in the EXTI_FTSR register, the pending bit is not set. Rising and falling edge triggers can be set for the same interrupt line. In this case, both generate a trigger condition.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

void LL_EXTI_DisableFallingTrig_0_31 ( uint32_t exti_line )

Disable EXTI Line Falling Edge Trigger for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FTSR1 FTx LL_EXTI_DisableFallingTrig_0_31

Note

The configurable wakeup lines are edge-triggered. No glitch must be generated on these lines. If a falling edge on a configurable interrupt line occurs during a write operation in the EXTI_FTSR register, the pending bit is not set. Rising and falling edge triggers can be set for the same interrupt line. In this case, both generate a trigger condition.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

uint32_t LL_EXTI_IsEnabledFallingTrig_0_31 ( uint32_t exti_line )

Check if falling edge trigger is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FTSR1 FTx LL_EXTI_IsEnabledFallingTrig_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

Software_Interrupt_Management

group EXTI_LL_EF_Software_Interrupt_Management

Functions

void LL_EXTI_GenerateSWI_0_31 ( uint32_t exti_line )

Generate a software Interrupt Event for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

SWIER1 SWIx LL_EXTI_GenerateSWI_0_31

Note

If the interrupt is enabled on this line in the EXTI_IMR, writing a 1 to this bit sets the corresponding pending bit in EXTI_PR resulting in an interrupt request generation. This bit is auto cleared by hardware.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

Flag_Management

group EXTI_LL_EF_Flag_Management

Functions

uint32_t LL_EXTI_IsActiveRisingFlag_0_31 ( uint32_t exti_line )

Check if the EXTI Line Rising Flag is set or not for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RPR1 RPIFx LL_EXTI_IsActiveRisingFlag_0_31

Note

This bit is set when the Rising edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

uint32_t LL_EXTI_ReadRisingFlag_0_31 ( uint32_t exti_line )

Read EXTI Line Combination Rising Flag for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RPR1 RPIFx LL_EXTI_ReadRisingFlag_0_31

Note

This bit is set when the Rising edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Note

This bit is set when the selected edge event arrives on the interrupt

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

void LL_EXTI_ClearRisingFlag_0_31 ( uint32_t exti_line )

Clear EXTI Line Rising Flags for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

RPR1 RPIFx LL_EXTI_ClearRisingFlag_0_31

Note

This bit is set when the Rising edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

uint32_t LL_EXTI_IsActiveFallingFlag_0_31 ( uint32_t exti_line )

Check if the EXTI Line Falling Flag is set or not for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FPR1 FPIFx LL_EXTI_IsActiveFallingFlag_0_31

Note

This bit is set when the falling edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

uint32_t LL_EXTI_ReadFallingFlag_0_31 ( uint32_t exti_line )

Read EXTI Line Combination Falling Flag for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FPR1 FPIFx LL_EXTI_ReadFallingFlag_0_31

Note

This bit is set when the falling edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Note

This bit is set when the selected edge event arrives on the interrupt

Parameters :

exti_line – This parameter can be a combination of the following values:

Return values :

State – of bit (1 or 0).

void LL_EXTI_ClearFallingFlag_0_31 ( uint32_t exti_line )

Clear EXTI Line Falling Flags for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

FPR1 FPIFx LL_EXTI_ClearFallingFlag_0_31

Note

This bit is set when the falling edge event arrives on the interrupt line. This bit is cleared by writing a 1 to the bit.

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be a combination of the following values:

EF configuration functions

group EXTI_LL_EF_Config

Functions

void LL_EXTI_SetEXTISource ( uint32_t port , uint32_t line )

Configure source input for the EXTI external interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

EXTI_EXTICR1 EXTI0 LL_EXTI_SetEXTISource

EXTI_EXTICR1 EXTI1 LL_EXTI_SetEXTISource

EXTI_EXTICR1 EXTI2 LL_EXTI_SetEXTISource

EXTI_EXTICR1 EXTI3 LL_EXTI_SetEXTISource

EXTI_EXTICR2 EXTI4 LL_EXTI_SetEXTISource

EXTI_EXTICR2 EXTI5 LL_EXTI_SetEXTISource

EXTI_EXTICR2 EXTI6 LL_EXTI_SetEXTISource

EXTI_EXTICR2 EXTI7 LL_EXTI_SetEXTISource

EXTI_EXTICR3 EXTI8 LL_EXTI_SetEXTISource

EXTI_EXTICR3 EXTI9 LL_EXTI_SetEXTISource

EXTI_EXTICR3 EXTI10 LL_EXTI_SetEXTISource

EXTI_EXTICR3 EXTI11 LL_EXTI_SetEXTISource

EXTI_EXTICR4 EXTI12 LL_EXTI_SetEXTISource

EXTI_EXTICR4 EXTI13 LL_EXTI_SetEXTISource

EXTI_EXTICR4 EXTI14 LL_EXTI_SetEXTISource

EXTI_EXTICR4 EXTI15 LL_EXTI_SetEXTISource

Note

(*) value not defined in all devices

Note

(*)Please check each device gpio port mapping for EXTI gpio port availability

Parameters :
uint32_t LL_EXTI_GetEXTISource ( uint32_t line )

Get the configured defined for specific EXTI Line.

Reference Manual to LL API cross reference (Register Field Functions)

EXTI_EXTICR1 EXTI0 LL_EXTI_GetEXTISource

EXTI_EXTICR1 EXTI1 LL_EXTI_GetEXTISource

EXTI_EXTICR1 EXTI2 LL_EXTI_GetEXTISource

EXTI_EXTICR1 EXTI3 LL_EXTI_GetEXTISource

EXTI_EXTICR2 EXTI4 LL_EXTI_GetEXTISource

EXTI_EXTICR2 EXTI5 LL_EXTI_GetEXTISource

EXTI_EXTICR2 EXTI6 LL_EXTI_GetEXTISource

EXTI_EXTICR2 EXTI7 LL_EXTI_GetEXTISource

EXTI_EXTICR3 EXTI8 LL_EXTI_GetEXTISource

EXTI_EXTICR3 EXTI9 LL_EXTI_GetEXTISource

EXTI_EXTICR3 EXTI10 LL_EXTI_GetEXTISource

EXTI_EXTICR3 EXTI11 LL_EXTI_GetEXTISource

EXTI_EXTICR4 EXTI12 LL_EXTI_GetEXTISource

EXTI_EXTICR4 EXTI13 LL_EXTI_GetEXTISource

EXTI_EXTICR4 EXTI14 LL_EXTI_GetEXTISource

EXTI_EXTICR4 EXTI15 LL_EXTI_GetEXTISource

Note

(*)Please check each device gpio port mapping for EXTI gpio port availability

Note

(*) value not defined in all devices

Parameters :

line – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

Secure_Management

group EXTI_LL_EF_Secure_Management

Functions

void LL_EXTI_EnableLockAttr ( void )

Enable global security and privilege attributes configuration registers lock.

Reference Manual to LL API cross reference (Register Field Functions)

LOCKR LOCKRx LL_EXTI_EnableLockAttr

uint32_t LL_EXTI_IsEnabledLockAttr ( void )

Check if the global security and privilege attributes configuration registers are locked.

Reference Manual to LL API cross reference (Register Field Functions)

LOCKR LOCKRx LL_EXTI_IsEnabledLockAttr

Return values :

State – of bit (1 or 0).

void LL_EXTI_EnableSecure_0_31 ( uint32_t exti_line )

Enable EXTI Line Secure attribute for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

SECCFGR1 SECx LL_EXTI_EnableSecure_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

void LL_EXTI_DisableSecure_0_31 ( uint32_t exti_line )

Disable EXTI Line Secure attribute for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

SECCFGR1 SECx LL_EXTI_DisableSecure_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

uint32_t LL_EXTI_IsEnabledSecure_0_31 ( uint32_t exti_line )

Indicate if EXTI Line Secure attribute is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

SECCFGR1 SECx LL_EXTI_IsEnabledSecure_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

Privilege_Management

group EXTI_LL_EF_Privilege_Management

Functions

void LL_EXTI_EnablePrivilege_0_31 ( uint32_t exti_line )

Enable EXTI Line Privilege attribute for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR1 PRIVx LL_EXTI_EnablePrivilege_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

void LL_EXTI_DisablePrivilege_0_31 ( uint32_t exti_line )

Disable EXTI Line Privilege attribute for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR1 PRIVx LL_EXTI_DisablePrivilege_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

uint32_t LL_EXTI_IsEnabledPrivilege_0_31 ( uint32_t exti_line )

Indicate if EXTI Line Privilege attribute is enabled for Lines in range 0 to 31.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR1 PRIVx LL_EXTI_IsEnabledPrivilege_0_31

Note

(*)Please check each device line mapping for EXTI Line availability

Parameters :

exti_line – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).