|
PER Firmware
|
G4 EXTI private/register-level implementation. More...
#include "phal_G4/exti/exti_priv.h"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. | |
G4 EXTI private/register-level implementation.
| void PHAL_EXTI_priv_clearPending | ( | uint8_t | pin | ) |
Clear one line's pending flag using EXTI's write-one-to-clear semantics.
| 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.
| void PHAL_EXTI_priv_enableClock | ( | void | ) |
Enable the SYSCFG peripheral clock used for GPIO EXTI routing.
| GPIO_TypeDef * PHAL_EXTI_priv_getBank | ( | uint8_t | pin | ) |
Return the GPIO bank currently selected by SYSCFG for pin, or nullptr if invalid.
| uint32_t PHAL_EXTI_priv_getEnabledIRQGroupLines | ( | uint8_t | pin | ) |
Return the enabled line bits that share pin's IRQ vector.
| 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_getPendingLines | ( | uint32_t | line_mask | ) |
Read pending, unmasked GPIO EXTI lines selected by line_mask.
| 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).