NetBurner 3.5.0
PDF Version |
|
Macros | |
#define | DEVICE_INTERRUPT_MAXIMUM (8) |
Fixed interrupt sources. | |
Typedefs | |
typedef enum _DeviceInterruptTrigger | DeviceInterruptTrigger |
DeviceSetupIsr interrupt trigger. | |
typedef void | DeviceIsrFn() |
ISR function. | |
Enumerations | |
enum | _DeviceInterruptTrigger { InterruptTriggerNone , InterruptTriggerSensitive , InterruptTriggerRisingEdge , InterruptTriggerFallingEdge , InterruptTriggerBothEdge } |
DeviceSetupIsr interrupt trigger. More... | |
Functions | |
BOOL | DeviceIsValid (int irq) |
Verify availability and support for device. (Only verifies IRQ is valid) | |
BOOL | DeviceSetupIsr (int irq, DeviceInterruptTrigger trigger, DeviceIsrFnPtr isrPtr) |
Set interrupt controller and attach function to interrupt. | |
void | DeviceAckInterrupt (int irq) |
Acknowledge interrupt. | |
void | DeviceDisableInterrupt (int irq) |
Disable interrupt. | |
void | DeviceEnableInterrupt (int irq) |
Enable interrupt. | |
OS_SEM * | DeviceGetQspiSem (void) |
Acquire QSPI semaphore for sharing access to SPI devices. | |
OS_SEM * | DeviceGetI2cSem (void) |
Acquire I2C semaphore for sharing access to I2C devices. | |
#include< device.h >
#include <device.h>
DeviceSetupIsr interrupt trigger.
void DeviceAckInterrupt | ( | int | irq | ) |
void DeviceDisableInterrupt | ( | int | irq | ) |
void DeviceEnableInterrupt | ( | int | irq | ) |
OS_SEM * DeviceGetI2cSem | ( | void | ) |
OS_SEM * DeviceGetQspiSem | ( | void | ) |
#include <device.h>
Acquire QSPI semaphore for sharing access to SPI devices.
NULL | for non-existent device |
BOOL DeviceIsValid | ( | int | irq | ) |
#include <device.h>
Verify availability and support for device. (Only verifies IRQ is valid)
irq | Fixed level interrupt source |
TRUE | Support and available on module |
FALSE | Option not supported |
BOOL DeviceSetupIsr | ( | int | irq, |
DeviceInterruptTrigger | trigger, | ||
DeviceIsrFnPtr | isrPtr ) |
#include <device.h>
Set interrupt controller and attach function to interrupt.
irq | Fixed level interrupt source |
trigger | Triggering edge level |
isrPtr | ISR function |
TRUE | Set |
FALSE | Not valid interrupt source |