1.28.5.6 EIC_SetPolarity Function
C
bool EIC_SetPolarity(EIC_PIN pin, EIC_POLARITY polarity)
Summary
Sets the polarity of detection.
Description
This function sets the polarity of the signal that need to be detected.
Precondition
EIC_Initialize() must have been called first for the associated instance.
Parameters
Param | Description |
---|---|
pin | EIC Pin number |
polarity | EIC polarity that need to be detected |
Returns
None.
Example
EIC_SetPolarity(EIC_PIN_0, EIC_POLARITY_FALLING_EDGE);
Remarks
None.