Board Support  Version 1.0
Functions available when using the Board Software Components
 All Data Structures Functions Variables Groups Pages
D/A Converter

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...
 

Description

Digital to Analog Converter Interface.

Function Documentation

uint32_t DAC_GetResolution ( void  )

Get resolution of Digital-to-Analog Converter.

Returns
Resolution (in bits)

The function returns the number of the resolution bits of the D/A converter.

int32_t DAC_Initialize ( void  )

Initialize Digital-to-Analog Converter.

Returns
  • 0: function succeeded
  • -1: function failed

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.

Parameters
[in]valvalue to convert
Returns
  • 0: function succeeded
  • -1: function failed

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.

Returns
  • 0: function succeeded
  • -1: function failed

The function de-initializes the D/A converter interface. The function returns an integer value of 0 on success, and -1 on error.