2.18.13 CMPx_DACSlopeWrite Function
C
// x is the instance number of the CMP peripheral
inline static void CMPx_DACSlopeWrite(uint16_t slopeRate)
{
DAC1SLPDATbits.SLPDAT = slopeRate;
}
Summary
Sets the slope rate.
Description
This inline function writes sets the slope rate.
Precondition
None.
Parameters
Param | Description |
slopeRate | inclination rate |
Returns
None.
Example
CMP1_DACSlopeWrite(0x10);
Remarks
Available only in slope mode.