dac8 2.0.0.0
|
This file contains API for DAC 8 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | dac8_s |
Click ctx object definition. More... | |
struct | dac8_cfg_t |
Click configuration structure definition. More... | |
struct | dac8_cfg_data_t |
Typedefs | |
typedef uint8_t | dac8_select_t |
Communication type. | |
typedef void(* | dac8_master_io_t) (struct dac8_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct dac8_s | dac8_t |
Click ctx object definition. | |
Functions | |
void | dac8_cfg_setup (dac8_cfg_t *cfg) |
Config Object Initialization function. | |
DAC8_RETVAL | dac8_init (dac8_t *ctx, dac8_cfg_t *cfg, uint8_t master_mode) |
Initialization function. | |
void | dac8_generic_write (dac8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | dac8_generic_read (dac8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
DAC8_RETVAL | dac8_enable_sync (dac8_t *ctx, uint8_t en_sync) |
Enable synchronous function. | |
DAC8_RETVAL | dac8_set_config (dac8_t *ctx, uint16_t en_ref_pwdwn, uint16_t en_dac_pwdwn) |
Set config function. | |
DAC8_RETVAL | dac8_set_gain (dac8_t *ctx, uint16_t en_ref_div, uint16_t en_buff_gain) |
Set gain function. | |
void | dac8_set_synchronously_load (dac8_t *ctx) |
Set synchronously load function. | |
void | dac8_soft_reset (dac8_t *ctx) |
Set reset function. | |
uint8_t | dac8_get_ref_alarm (dac8_t *ctx) |
Get ref alarm function. | |
DAC8_RETVAL | dac8_set_vref (dac8_t *ctx, uint16_t vref_mv) |
Set vref function. | |
void | dac8_device_enable (dac8_t *ctx, uint8_t en_sel) |
Device enable function. | |
void | dac8_set_ldac (dac8_t *ctx, uint8_t ldac_sel) |
Set LDAC function. | |
void | dac8_load_dac (dac8_t *ctx) |
Load DAC function. | |
void | dac8_generic_spi_write (dac8_t *ctx, uint32_t tx_data) |
Generic SPI write function. | |
void | dac8_device_config (dac8_t *ctx, dac8_cfg_data_t cfg_data) |
Set device config function. | |
This file contains API for DAC 8 Click driver.