Synergy Software Package User's Manual

Interface for D/A converters. More...

Data Structures

struct  dac_info_t
 
struct  dac_cfg_t
 
struct  dac_api_t
 
struct  dac_instance_t
 

Typedefs

typedef uint16_t dac_size_t
 
typedef void dac_ctrl_t
 

Enumerations

enum  dac_data_format_t { DAC_DATA_FORMAT_FLUSH_RIGHT = 0, DAC_DATA_FORMAT_FLUSH_LEFT = 1 }
 

Detailed Description

Interface for D/A converters.

Summary

The DAC interface provides standard Digital/Analog Converter functionality. A DAC application writes digital sample data to the device and generates analog output on the DAC output pin.

Related SSP architecture topics:

DAC Interface description: DAC Driver

Typedef Documentation

◆ dac_ctrl_t

typedef void dac_ctrl_t

DAC control block. Allocate an instance specific control block to pass into the DAC API calls.

Implemented as

◆ dac_size_t

typedef uint16_t dac_size_t

Data type to store DAC output value.

Enumeration Type Documentation

◆ dac_data_format_t

DAC Open API AD/DA data format settings.

Enumerator
DAC_DATA_FORMAT_FLUSH_RIGHT 

LSB of data is flush to the right leaving the top 4 bits unused.

DAC_DATA_FORMAT_FLUSH_LEFT 

MSB of data is flush to the left leaving the bottom 4 bits unused.