User`s manual
BL4S100 User’s Manual 74
getMatch
int getMatch(int channel, int source);
FUNCTION DESCRIPTION
Returns the block match register use for the given channel. May optionally be filtered
to specific sources by the
source parameter.
PARAMETERS
channel digital output channel about which to get match information,
0–7 (OUT0–OUT7)
source source filter:
BL_TRAIL_ONLY will filter only the Trail match register
BL_LEAD_ONLY will filter only the Lead match register
Note that counters will only use the Trail match register.
RETURN VALUE
Bit flags showing match use on success:
BL_IER_MATCH0 bit set if using Match Register 0
BL_IER_MATCH1 bit set if using Match Register 1
BL_IER_MATCH2 bit set if using Match Register 2
BL_IER_MATCH3 bit set if using Match Register 3
or
-EINVAL — invalid channel value.
SEE ALSO
brdInit, setPWM, setPPM, setCounter