File syn_port_exti.h¶
FileList > port > syn_port_exti.h
Go to the source code of this file
GPIO interrupt (EXTI) port interface — implement for your platform. More...
#include "../common/syn_defs.h"#include "../port/syn_port_gpio.h"#include <stdbool.h>#include <stdint.h>
Public Types¶
| Type | Name |
|---|---|
| enum | SYN_EXTI_Edge |
Public Functions¶
| Type | Name |
|---|---|
| void | syn_port_exti_clear_pending (SYN_GPIO_Pin pin) Clear pending interrupt flag for a pin. |
| SYN_Status | syn_port_exti_configure (SYN_GPIO_Pin pin, SYN_EXTI_Edge edge) Configure a pin for interrupt generation. |
| void | syn_port_exti_disable (SYN_GPIO_Pin pin) Disable interrupt on a pin (without deconfiguring). |
| void | syn_port_exti_enable (SYN_GPIO_Pin pin) Enable interrupt on a configured pin. |
Detailed Description¶
Provides pin-change interrupt registration. The platform layer manages the hardware (NVIC, EXTI lines, etc.) and calls back into the syn_exti dispatcher.
Public Types Documentation¶
enum SYN_EXTI_Edge¶
Interrupt trigger edge.
Public Functions Documentation¶
function syn_port_exti_clear_pending¶
Clear pending interrupt flag for a pin.
Parameters:
pinGPIO pin.
function syn_port_exti_configure¶
Configure a pin for interrupt generation.
Parameters:
pinGPIO pin number.edgeTrigger edge.
Returns:
SYN_OK on success.
function syn_port_exti_disable¶
Disable interrupt on a pin (without deconfiguring).
Parameters:
pinGPIO pin.
function syn_port_exti_enable¶
Enable interrupt on a configured pin.
Parameters:
pinGPIO pin.
The documentation for this class was generated from the following file src/syntropic/port/syn_port_exti.h