dac3 2.0.0.0
|
This file contains API for DAC 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | dac3_conf_t |
DAC configuration object. More... | |
struct | dac3_t |
Click ctx object definition. More... | |
struct | dac3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DAC3_MAP_MIKROBUS(cfg, mikrobus) |
#define | DAC3_RETVAL uint8_t |
#define | DAC3_OK 0x00 |
#define | DAC3_INIT_ERROR 0xFF |
#define | DAC3_RESET 0x06 |
#define | DAC3_WAKE_UP 0x09 |
#define | DAC3_VOLATILE_MEM 0x40 |
#define | DAC3_VOLATILE_ALL_MEM 0x60 |
#define | DAC3_VOLATILE_CONF 0x80 |
Enumerations | |
enum | dac3_vrl_t { VDD = 0 , VREF_UNBUFFERED = 2 , VREF_BUFFERED = 3 } |
VRL configuration enumeration. More... | |
enum | dac3_pd_t { NORMAL , PD_1 , PD_100 , PD_500 } |
Power configuration enumeration. More... | |
enum | dac3_gain_t { GAIN_1x , GAIN_2x } |
Gain configuration enumeration. More... | |
Functions | |
void | dac3_cfg_setup (dac3_cfg_t *cfg) |
Config Object Initialization function. | |
DAC3_RETVAL | dac3_init (dac3_t *ctx, dac3_cfg_t *cfg) |
Initialization function. | |
void | dac3_set_out_voltage (dac3_t *ctx, uint16_t output) |
Set output voltage function. | |
void | dac3_send_command (dac3_t *ctx, uint8_t cmd) |
Send command function. | |
void | dac3_write_all_mem (dac3_t *ctx, uint16_t value) |
Send command function. | |
This file contains API for DAC 3 Click driver.