dac14 2.1.0.0
|
This file contains API for DAC 14 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | dac14_s |
DAC 14 Click context object. More... | |
struct | dac14_cfg_t |
DAC 14 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | dac14_master_io_t) (struct dac14_s *, uint8_t, uint16_t *) |
DAC 14 Click driver interface. | |
typedef struct dac14_s | dac14_t |
DAC 14 Click context object. | |
Enumerations | |
enum | dac14_drv_t { DAC14_DRV_SEL_SPI , DAC14_DRV_SEL_I2C } |
DAC 14 Click driver selector. More... | |
enum | dac14_return_value_t { DAC14_OK = 0 , DAC14_ERROR = -1 } |
DAC 14 Click return value data. More... | |
Functions | |
void | dac14_cfg_setup (dac14_cfg_t *cfg) |
DAC 14 configuration object setup function. | |
void | dac14_drv_interface_selection (dac14_cfg_t *cfg, dac14_drv_t drv_sel) |
DAC 14 driver interface setup function. | |
err_t | dac14_init (dac14_t *ctx, dac14_cfg_t *cfg) |
DAC 14 initialization function. | |
err_t | dac14_default_cfg (dac14_t *ctx) |
DAC 14 default configuration function. | |
err_t | dac14_write_register (dac14_t *ctx, uint8_t reg, uint16_t data_in) |
DAC 14 write register function. | |
err_t | dac14_read_register (dac14_t *ctx, uint8_t reg, uint16_t *data_out) |
DAC 14 read register function. | |
uint8_t | dac14_get_int_pin (dac14_t *ctx) |
DAC 14 get int pin function. | |
err_t | dac14_check_communication (dac14_t *ctx) |
DAC 14 check communication function. | |
err_t | dac14_set_dac_vout_enable (dac14_t *ctx, uint8_t dac, uint8_t vout_pdn) |
DAC 14 set dac vout enable function. | |
err_t | dac14_set_dac_vref (dac14_t *ctx, uint8_t dac, uint8_t vref) |
DAC 14 set dac vref function. | |
err_t | dac14_set_dac_margins (dac14_t *ctx, uint8_t dac, uint16_t margin_l, uint16_t margin_h) |
DAC 14 set dac margins function. | |
err_t | dac14_set_dac_data (dac14_t *ctx, uint8_t dac, uint16_t dac_data) |
DAC 14 set dac data function. | |
err_t | dac14_start_function_gen (dac14_t *ctx, uint8_t dac) |
DAC 14 start function gen function. | |
err_t | dac14_stop_function_gen (dac14_t *ctx, uint8_t dac) |
DAC 14 stop function gen function. | |
err_t | dac14_config_function_gen (dac14_t *ctx, uint8_t dac, uint8_t waveform, uint8_t code_step, uint8_t slew_rate) |
DAC 14 config function gen function. | |
This file contains API for DAC 14 Click Driver.
typedef err_t(* dac14_master_io_t) (struct dac14_s *, uint8_t, uint16_t *) |
DAC 14 Click driver interface.
Definition of driver interface of DAC 14 Click driver. Driver serial interface.
DAC 14 Click context object.
Context object definition of DAC 14 Click driver.
enum dac14_drv_t |
enum dac14_return_value_t |