G4 EXTI private/register-level implementation.
More...
Go to the source code of this file.
|
| 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.
|
| |
G4 EXTI private/register-level implementation.
- Author
- Ronak Jain (jain7.nosp@m.17@p.nosp@m.urdue.nosp@m..edu)
◆ 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.
◆ 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.
◆ 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.
◆ PHAL_EXTI_priv_enableClock()
| void PHAL_EXTI_priv_enableClock |
( |
void | | ) |
|
Enable the SYSCFG peripheral clock used for GPIO EXTI routing.
◆ 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.
◆ PHAL_EXTI_priv_getEnabledIRQGroupLines()
| uint32_t PHAL_EXTI_priv_getEnabledIRQGroupLines |
( |
uint8_t | pin | ) |
|
Return the enabled line bits that share pin's IRQ vector.
◆ 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.
◆ PHAL_EXTI_priv_getPendingLines()
| uint32_t PHAL_EXTI_priv_getPendingLines |
( |
uint32_t | line_mask | ) |
|
Read pending, unmasked GPIO EXTI lines selected by line_mask.
◆ 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).
◆ PHAL_EXTI_PRIV_GPIO_LINE_COUNT
| uint32_t PHAL_EXTI_PRIV_GPIO_LINE_COUNT = 16U |
|
staticconstexpr |