BL4S200 User’s Manual
76
setCapture (continued)
options
options based on mode:
BL_CNT_TIL_END
— begin input and edge can be selected
all others modes — end input and edge can be selected.
For all modes, the prescale clock and save limit flags can be used
(OR in).
For input and edge selection, use:
low 5 bits for channel to use for begin/end input
BL_SAME_CHANNEL
— begin and end both from same channel
BL_EVENT_RISE
— begin/end event on rising edge
BL_EVENT_FALL
— begin/end event on falling edge
BL_EVENT_BOTH
— begin/end event on any edge
For clock and limit options use:
BL_PRESCALE
— use prescaled clock
BL_SAVE_LIMIT
— save current limit register value (other-
wise limit set to 0xFFFF)
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— pin type does not permit this function.
-EACCESS
— 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, getBegin, getEnd, getCounter, resetCounter, setLimit
electronic components distributor