ExternalInterrupt
implementation for STM32.
More...
#include <stm32externalinterrupt.h>
ExternalInterrupt
implementation for STM32.
Definition at line 25 of file stm32externalinterrupt.h.
◆ ErrorCode
Error codes for this class. Error ID identify a unique error() / onError call (excluding transferring).
Enumerator |
---|
SetConfigLine_HalError | |
SetConfigLine_HalBusy | |
SetConfigLine_HalTimeout | |
Definition at line 29 of file stm32externalinterrupt.h.
◆ Stm32ExternalInterrupt() [1/2]
semf::Stm32ExternalInterrupt::Stm32ExternalInterrupt |
( |
uint32_t |
externalInterruptPort, |
|
|
uint32_t |
externalInterruptPinLine |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
externalInterruptPort | Port number. |
externalInterruptPinLine | Interrupt pin. |
- See also
- EXTI_GPIOSel in stm32f{x}xx_hal_exti.c
-
EXTI_Line in stm32f{x}xx_hal_exti.c
Definition at line 20 of file stm32externalinterrupt.cpp.
◆ Stm32ExternalInterrupt() [2/2]
◆ ~Stm32ExternalInterrupt()
virtual semf::Stm32ExternalInterrupt::~Stm32ExternalInterrupt |
( |
| ) |
|
|
virtualdefault |
◆ isr()
void semf::Stm32ExternalInterrupt::isr |
( |
uint16_t |
pin | ) |
|
Must call in the interrupt callback from the stm32 hal lib.
- Parameters
-
pin | The parameter from the stm32 HAL callback function. |
Definition at line 39 of file stm32externalinterrupt.cpp.
◆ queue()
Get the list with all external interrupts.
- Returns
- The list with all external interrupts.
Definition at line 27 of file stm32externalinterrupt.cpp.
◆ setTrigger()
void semf::Stm32ExternalInterrupt::setTrigger |
( |
Trigger |
trigger | ) |
|
|
overridevirtual |
Sets the trigger condition of an EXTI.
- Parameters
-
trigger | Trigger condition to set. |
- Exceptions
-
Init_HalError | If the ST-HAL returns a hal error. |
Init_HalBusy | If the ST-HAL returns a hal busy. |
Init_HalTimeout | If the ST-HAL returns a hal timeout. |
Implements semf::ExternalInterrupt.
Definition at line 48 of file stm32externalinterrupt.cpp.
◆ systemIsr()
void semf::Stm32ExternalInterrupt::systemIsr |
( |
uint16_t |
pin | ) |
|
|
static |
Must call in the interrupt callback from the stm32 hal lib.
- Parameters
-
pin | The parameter from the stm32 HAL callback function. |
Definition at line 33 of file stm32externalinterrupt.cpp.