BL4S200 User’s Manual
71
setExtInterrupt
int setExtInterrupt(int channel, char edge, int handle);
FUNCTION DESCRIPTION
Sets the specified channel to be an interrupt. The interrupt can be configured as a rising
edge, falling edge, or either edge.
PARAMETERS
channel
input channel to be configured as an interrupt channel
edge
macro to set edge of the interrupt:
BL_IRQ_RISE
— interrupt event on rising edge
BL_IRQ_FALL
— interrupt event on falling edge
BL_IRQ_BOTH
— interrupt events on both edges
handle
handle for the ISR handler to service this interrupt
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— pin type does not permit this function.
-EACCES
— resource needed by this function is not available.
-EFAULT
— internal data fault detected.
positive number — Mode Conflict — the positive number is a bitmap that corresponds
to the pins on a particular block of a RIO chip that have not been configured to support
this function call. Appendix D provides the details of the pin and block associations to
allow you to identify the channels that need to be reconfigured to support this function
call.
SEE ALSO
brdInit, digIn, setDigIn
electronic components distributor