libmcp23016
1.1
Linux userspace driver for Microchip MCP23016 I/O expanders
|
Interrupt output functions. More...
Data Structures | |
struct | mcp23016_interrupt |
Handle to a MCP23016 interrupt. More... | |
Functions | |
struct mcp23016_interrupt * | mcp23016_interrupt_open (const char *path, unsigned int offset) |
Open the MCP23016 interrupt specified by path and offset . More... | |
void | mcp23016_interrupt_close (struct mcp23016_interrupt *intr) |
Close a MCP23016 interrupt handle and free associated memory. More... | |
int | mcp23016_has_interrupt (struct mcp23016_interrupt *intr) |
Check interrupt output status. More... | |
Interrupt output functions.
These functions manage the interrupt output functionality of the MCP23016, which can be shared by multiple devices. Use of these functions is considered optional and is only required if the caller wishes to be notified of input state changes.
int mcp23016_has_interrupt | ( | struct mcp23016_interrupt * | intr | ) |
Check interrupt output status.
intr | Pointer to a MCP23016 interrupt handle. |
errno
set appropriately. void mcp23016_interrupt_close | ( | struct mcp23016_interrupt * | intr | ) |
Close a MCP23016 interrupt handle and free associated memory.
intr | Pointer to a MCP23016 interrupt handle. |
Once closed, interrupt
is no longer valid for use.
struct mcp23016_interrupt* mcp23016_interrupt_open | ( | const char * | path, |
unsigned int | offset | ||
) |
Open the MCP23016 interrupt specified by path
and offset
.
path | Pointer to a GPIO character device. |
offset | GPIO line offset. |
NULL
on error with errno
set appropriately.