![]() |
Board Support
Version 1.0
Functions available when using the Board Software Components
|
Digital to Analog Converter Interface. More...
Functions | |
| int32_t | DAC_Initialize (void) |
| Initialize Digital-to-Analog Converter. More... | |
| int32_t | DAC_Uninitialize (void) |
| De-initialize Digital-to-Analog Converter. More... | |
| int32_t | DAC_SetValue (uint32_t val) |
| Set value to be converted. More... | |
| uint32_t | DAC_GetResolution (void) |
| Get resolution of Digital-to-Analog Converter. More... | |
Digital to Analog Converter Interface.
| uint32_t DAC_GetResolution | ( | void | ) |
Get resolution of Digital-to-Analog Converter.
The function returns the number of the resolution bits of the D/A converter.
| int32_t DAC_Initialize | ( | void | ) |
Initialize Digital-to-Analog Converter.
The function initializes the D/A converter interface. The function returns an integer value of 0 on success, and -1 on error.
| int32_t DAC_SetValue | ( | uint32_t | val | ) |
Set value to be converted.
| [in] | val | value to convert |
The function sets the value that should be converted. The parameter val is the integer value that gets converted. The function returns an integer value of 0 on success, and -1 on error.
| int32_t DAC_Uninitialize | ( | void | ) |
De-initialize Digital-to-Analog Converter.
The function de-initializes the D/A converter interface. The function returns an integer value of 0 on success, and -1 on error.