User`s manual
BL4S100 User’s Manual 58
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 digital input channel that uses the desired counter block,
0–11 (pins IN0–IN11)
begin pointer to word variable to place end register reading
RETURN VALUE
0 — success.
-EINVAL — invalid parameter value.
-EPERM — pin type does not permit this function.
SEE ALSO
brdInit, setCapture, resetCounter, getBegin
resetCounter
int resetCounter(int channel);
FUNCTION DESCRIPTION
Resets the current count of the counter register within the counter block hosting the
given channel.
PARAMETER
channel digital input channel that uses the desired counter block,
0–11 (pins IN0–IN11)
RETURN VALUE
0 — success.
-EINVAL — invalid parameter value.
-EPERM — pin type does not permit this function.
SEE ALSO
brdInit, getCounter, setDecoder