#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_NONE 0
#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
#define NUT_IRQMODE_LEVEL 8
struct | |
{ | |
void* ir_arg; | |
void (*ir_handler)(void*); | |
int (*ir_ctl)(int cmd,void* param); | |
} |