dac5 2.0.0.0
|
This file contains API for DAC 5 Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | dac5_t |
Click ctx object definition. More... | |
struct | dac5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | dac5_cfg_setup (dac5_cfg_t *cfg) |
Config Object Initialization function. | |
DAC5_RETVAL | dac5_init (dac5_t *ctx, dac5_cfg_t *cfg) |
Initialization function. | |
void | dac5_generic_write (dac5_t *ctx, uint8_t reg, uint16_t data_buf) |
Generic write function. | |
uint16_t | dac5_generic_read (dac5_t *ctx, uint8_t reg) |
Generic read function. | |
void | dac5_config (dac5_t *ctx, uint16_t config_data) |
Function for configurating click. | |
uint16_t | dac5_get_device_id (dac5_t *ctx) |
Function for reading device id. | |
void | dac5_software_reset (dac5_t *ctx) |
Function for software reset. | |
void | dac5_clear (dac5_t *ctx) |
Function for clearing sent data. | |
uint8_t | dac5_set_ldac_pin (dac5_t *ctx, uint8_t status) |
Function for setting LDAC pin status. | |
uint8_t | dac5_send_data (dac5_t *ctx, uint8_t data_reg, uint16_t data_buf) |
Function for sending data to one output. | |
This file contains API for DAC 5 Click driver.