opto_get_intrmask
int opto_get_intrmask (
int fd;
unsigned char* im;
);
|
Description
Returns the currently applied interupt mask.
Parameters
This function accepts the following parameters:
- fd is the device file descriptor obtained through the open(2) call.
- im is a pointer to an unsigned char which receives the interrupt
mask. The bits 0-7 in the interrupt mask returned correspond
to internal interrupt channels IN0-IN7. If a bit is set, the
corresponding interrupt channel is enabled, otherwise it is
disabled. Note that this behaviour is exactly the opposite of what the hardware documentation
mummles about..
Return Values
On success, the function will return 0. On failure, it will return
a non-null value, which is one of standard error codes.