BL4S200 User’s Manual
79
setLimit
int setLimit(int channel, word limit);
FUNCTION DESCRIPTION
Sets the value of the limit register within the counter block hosting the given channel.
This new value will take effect on the next counter overflow or by resetting the counter
via the
resetCounter()
function call.
PARAMETERS
channel
a channel that uses the desired counter block
limit
new value for the limit register
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, setCapture, resetCounter
electronic components distributor