EVE 1.0
External IRQ
Eve » IRQ
Collaboration diagram for External IRQ:

Data Structures

struct  irq_config_t
 

Typedefs

typedef void(* irq_handler_cb_t) (void *Module, const struct gpio_ext_t *GpioExt, uint8_t Pin)
 

Enumerations

Functions

void IrqTriggerInternal (uint8_t Pin)
 
void IrqTriggerExternal (void)
 
void IrqEnableInternal (uint8_t Pin, enum irq_mode_t Mode)
 
void IrqRegisterExternal (uint8_t Pin)
 
void GpioInterruptHandler (void)
 Name: GpioInterruptHandler
GPIO interrupt handler Must be called from GPIOTE_Handler.
 

Variables

const uint8_t IntIrqDispatch [32]
 
const uint8_t ExtIrqDispatch []
 
const struct irq_config_t IrqConfig []
 
const struct gpio_ext_tGpioExpanders []
 

Detailed Description

Typedef Documentation

typedef void(* irq_handler_cb_t) (void *Module, const struct gpio_ext_t *GpioExt, uint8_t Pin)

IRQ handler callback function prototype.

Parameters
ModuleUser-defined data
IoExpanderPointer to the instance of system IO expanders which has triggered the interrupt. NULL for built-in MCU GPIO.
PinPin number which has triggered the interrupt.

Definition at line 29 of file irq.h.

Enumeration Type Documentation

enum irq_mode_t

IRQ mode

Enumerator
IRQ_MODE_DISABLED 

IRQ is disabled

IRQ_MODE_RISING 

Rising edge sense

IRQ_MODE_FALLING 

Falling edge sense

Definition at line 46 of file irq.h.

Function Documentation

void IrqTriggerInternal ( uint8_t  Pin)

Trigger an internal IRQ for the pin

Parameters
PinPin number
void IrqTriggerExternal ( void  )

Trigger an external interrupt

Referenced by GpioExtPinRead().

void IrqEnableInternal ( uint8_t  Pin,
enum irq_mode_t  Mode 
)

Enables or disables internal interrupt for the selected pin

void IrqRegisterExternal ( uint8_t  Pin)

Mark an interrrupt pin as an external interrupt trigger

Parameters
PinPin number

Variable Documentation

const uint8_t IntIrqDispatch[32]

IRQ configuration database index for built-in MCU GPIO interrupts Each entry in the table should represent an offset in the IrqConfig table plus one

const uint8_t ExtIrqDispatch[]

IRQ configuration database index for IO expanders interrupts Each entry in the table should represent an offset in the IrqConfig table plus one

const struct irq_config_t IrqConfig[]

IRQ configuration database.

const struct gpio_ext_t* GpioExpanders[]

NULL-terminated array of GPIO expanders