2.24 Digital-to-Analog Converter (DAC)
This Plib implements software abstraction for DAC Peripheral.
Library Interface
Digital Analog Converter peripheral library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| DAC_Initialize | Initializes given instance of the DAC peripheral |
| DAC_DataWrite | This function will write the specified value to the DAC and start the conversion |
| DAC_IsReady | Checks whether DAC is ready for receiving next sample value |
| DAC_Channel0ResultGet | Returns the Channel 0 Filter output |
| DAC_Channel1ResultGet | Returns the Channel 1 Filter output |
Data types and constants
| Name | Type | Description |
|---|---|---|
| DAC_CHANNEL_NUM | Enum | Identifies the Channel index of DAC module |
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.
