PER Firmware
Loading...
Searching...
No Matches
exti_priv.h File Reference

G4 EXTI private/register-level implementation. More...

Include dependency graph for exti_priv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool PHAL_EXTI_priv_getPortIndex (const GPIO_TypeDef *bank, uint8_t *port_index)
 Return the SYSCFG port selector for a supported GPIO bank (GPIOA-GPIOG).
 
void PHAL_EXTI_priv_enableClock (void)
 Enable the SYSCFG peripheral clock used for GPIO EXTI routing.
 
void PHAL_EXTI_priv_configureLine (uint8_t pin, uint8_t port_index, PHAL_EXTI_Trigger_t trigger)
 Mask a line, route it, configure its trigger, clear stale pending state, and unmask it.
 
void PHAL_EXTI_priv_disableLine (uint8_t pin)
 Disable a line's interrupt and edge triggers, then clear its pending flag.
 
uint32_t PHAL_EXTI_priv_getPendingLines (uint32_t line_mask)
 Read pending, unmasked GPIO EXTI lines selected by line_mask.
 
void PHAL_EXTI_priv_clearPending (uint8_t pin)
 Clear one line's pending flag using EXTI's write-one-to-clear semantics.
 
GPIO_TypeDef * PHAL_EXTI_priv_getBank (uint8_t pin)
 Return the GPIO bank currently selected by SYSCFG for pin, or nullptr if invalid.
 
IRQn_Type PHAL_EXTI_priv_getIRQn (uint8_t pin)
 Return the IRQ vector for pin: lines 0-4 are separate, 5-9 and 10-15 are shared.
 
uint32_t PHAL_EXTI_priv_getEnabledIRQGroupLines (uint8_t pin)
 Return the enabled line bits that share pin's IRQ vector.
 

Variables

static constexpr uint32_t PHAL_EXTI_PRIV_GPIO_LINE_COUNT = 16U
 

Detailed Description

G4 EXTI private/register-level implementation.

Author
Ronak Jain (jain7.nosp@m.17@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ PHAL_EXTI_priv_clearPending()

void PHAL_EXTI_priv_clearPending ( uint8_t pin)

Clear one line's pending flag using EXTI's write-one-to-clear semantics.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_configureLine()

void PHAL_EXTI_priv_configureLine ( uint8_t pin,
uint8_t port_index,
PHAL_EXTI_Trigger_t trigger )

Mask a line, route it, configure its trigger, clear stale pending state, and unmask it.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PHAL_EXTI_priv_disableLine()

void PHAL_EXTI_priv_disableLine ( uint8_t pin)

Disable a line's interrupt and edge triggers, then clear its pending flag.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PHAL_EXTI_priv_enableClock()

void PHAL_EXTI_priv_enableClock ( void )

Enable the SYSCFG peripheral clock used for GPIO EXTI routing.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_getBank()

GPIO_TypeDef * PHAL_EXTI_priv_getBank ( uint8_t pin)

Return the GPIO bank currently selected by SYSCFG for pin, or nullptr if invalid.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_getEnabledIRQGroupLines()

uint32_t PHAL_EXTI_priv_getEnabledIRQGroupLines ( uint8_t pin)

Return the enabled line bits that share pin's IRQ vector.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_getIRQn()

IRQn_Type PHAL_EXTI_priv_getIRQn ( uint8_t pin)

Return the IRQ vector for pin: lines 0-4 are separate, 5-9 and 10-15 are shared.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_getPendingLines()

uint32_t PHAL_EXTI_priv_getPendingLines ( uint32_t line_mask)

Read pending, unmasked GPIO EXTI lines selected by line_mask.

Here is the caller graph for this function:

◆ PHAL_EXTI_priv_getPortIndex()

bool PHAL_EXTI_priv_getPortIndex ( const GPIO_TypeDef * bank,
uint8_t * port_index )

Return the SYSCFG port selector for a supported GPIO bank (GPIOA-GPIOG).

Here is the caller graph for this function:

Variable Documentation

◆ PHAL_EXTI_PRIV_GPIO_LINE_COUNT

uint32_t PHAL_EXTI_PRIV_GPIO_LINE_COUNT = 16U
staticconstexpr