dac7 2.0.0.0
|
This file contains API for DAC 7 Click driver. More...
#include "drv_digital_out.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | dac7_t |
Click ctx object definition. More... | |
struct | dac7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | dac7_cfg_setup (dac7_cfg_t *cfg) |
Config Object Initialization function. | |
DAC7_RETVAL | dac7_init (dac7_t *ctx, dac7_cfg_t *cfg) |
Initialization function. | |
void | dac7_write_data (dac7_t *ctx, uint8_t def_cmd, uint8_t addr_cmd, uint16_t write_data) |
Generic write data function. | |
DAC7_RETVAL_T | dac7_set_channel (dac7_t *ctx, uint8_t set_cmd, uint8_t addr_ch, uint16_t write_data) |
Set the values of the specified channel function. | |
DAC7_RETVAL_T | dac7_set_ch_voltage (dac7_t *ctx, uint8_t addr_ch, uint16_t vol_val, uint16_t v_ref_mv) |
Set the voltage values of the specified channel function. | |
DAC7_RETVAL_T | dac7_update_channel (dac7_t *ctx, uint8_t addr_ch, uint16_t ch_data) |
Update channel function. | |
DAC7_RETVAL_T | dac7_set_power (dac7_t *ctx, uint8_t pwr_en, uint8_t sel_ch) |
Set power mode function. | |
DAC7_RETVAL_T | dac7_sw_reset (dac7_t *ctx) |
Software reset function. | |
DAC7_RETVAL_T | dac7_set_ldac (dac7_t *ctx, uint8_t sel_ch) |
Set LDAC setup function. | |
DAC7_RETVAL_T | dac7_set_internal_reference (dac7_t *ctx, uint8_t int_ref_en) |
Set internal reference function. | |
This file contains API for DAC 7 Click driver.