2.18 Comparator with DAC (CMP DAC)
This Plib implements software abstraction for CMP DAC Peripheral.
Library Interface
Comparator with DAC peripheral library provides the following interfaces:
Functions
Name | Description |
---|---|
CMPx_Initialize | Initializes CMPx module of the device |
CMPx_Deinitialize | Deinitializes the CMPx module of the device to POR values |
CMPx_Calibrate | Calibrates the CMPx module and enables ripple reduction mode |
CMPx_StatusGet | Returns the output status of a comparator |
CMPx_Enable | Enables the common DAC module |
CMPx_Disable | Disables the common DAC module |
CMPx_DACEnable | Enables the individual DAC module |
CMPx_DACDisable | Disables the individual DAC module |
CMPx_DACDataWrite | Writes DAC data to register |
CMPx_DACDataHighWrite | Sets higher limit of the slope |
CMPx_DACDataLowWrite | Sets lower limit of the slope |
CMPx_DACSlopeWrite | Sets slope rate |
CMPx_DACSlopeUpdateMode | Sets slope rateUpdates slope modes specified in CMP_DAC_SLOPE_UPDATE_MODE |
Data types and constants
Name | Type | Description |
---|---|---|
CMP_DAC_SLOPE_UPDATE_MODE | Enum | CMP slope data registers update mode |
CMP_CALLBACK | Typedef | Defines the function pointer data type and function signature for the CMP callback function |
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.