Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

irqreg.h File Reference


Detailed Description

Interrupt management definitions.


Defines

#define NUT_IRQCTL_INIT   0
#define NUT_IRQCTL_CLEAR   1
#define NUT_IRQCTL_STATUS   16
#define NUT_IRQCTL_ENABLE   17
#define NUT_IRQCTL_DISABLE   18
#define NUT_IRQCTL_GETMODE   24
#define NUT_IRQCTL_SETMODE   25
#define NUT_IRQCTL_GETPRIO   32
#define NUT_IRQCTL_SETPRIO   33
#define NUT_IRQCTL_GETCOUNT   96
#define NUT_IRQCTL_SETCOUNT   97
#define NUT_IRQMODE_LOWLEVEL   1
#define NUT_IRQMODE_HIGHLEVEL   2
#define NUT_IRQMODE_FALLINGEDGE   5
#define NUT_IRQMODE_RISINGEDGE   6
#define NUT_IRQMODE_EDGE   7

Functions

void CallHandler (IRQ_HANDLER *irh)
 Call a registered interrupt handler.
int NutRegisterIrqHandler (IRQ_HANDLER *irh, void(*handler)(void *), void *arg)
 Register an interrupt handler.
int NutIrqEnable (IRQ_HANDLER *irq)
 Enable a specified interrupt.
int NutIrqDisable (IRQ_HANDLER *irq)
 Disable a specified interrupt.
int NutIrqSetPriority (IRQ_HANDLER *irq, int level)
 Modify the priority level of an interrupt.
int NutIrqSetMode (IRQ_HANDLER *irq, int mode)
 Modify the interrupt mode.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/