BL4S200 User’s Manual
77
getCounter
int getCounter(int channel, word *count);
FUNCTION DESCRIPTION
Reads the current count of the counter register within the counter block hosting the
given channel.
PARAMETERS
channel
a channel that uses the desired counter block
count
pointer to word variable to place count register reading
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, setCounter, setDecoder, setCapture, resetCounter
getBegin
int getBegin(int channel, word *begin);
FUNCTION DESCRIPTION
Reads the current value of the begin 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 begin register reading
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, setCapture, resetCounter
electronic components distributor