BL4S200 User’s Manual
78
getEnd
int getEnd(int channel, word *end);
FUNCTION DESCRIPTION
Reads the current value of the end register within the counter block hosting the given
channel.
PARAMETERS
channel
a channel that uses the desired counter block
begin
pointer to word variable to place end register reading
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, setCapture, resetCounter
resetCounter
int resetCounter(int channel);
FUNCTION DESCRIPTION
Resets the current count of the counter register within the counter block hosting the
given channel. The active block is determined by the function the configurable I/O
channel is set up to perform.
PARAMETER
channel
a channel that uses the desired counter block
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, getCounter, setDecoder
electronic components distributor