dac2 2.0.0.0
|
This file contains API for DAC 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | dac2_t |
Click ctx object definition. More... | |
struct | dac2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DAC2_MAP_MIKROBUS(cfg, mikrobus) |
#define | DAC2_RETVAL uint8_t |
#define | DAC2_OK 0x00 |
#define | DAC2_INIT_ERROR 0xFF |
Functions | |
void | dac2_cfg_setup (dac2_cfg_t *cfg) |
Config Object Initialization function. | |
DAC2_RETVAL | dac2_init (dac2_t *ctx, dac2_cfg_t *cfg) |
Initialization function. | |
void | dac2_generic_transfer (dac2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | dac2_default_cfg (dac2_t *ctx) |
Click Default Configuration function. | |
void | dac2_clr_dac_2_reg (dac2_t *ctx) |
Asynchronous Clear Input function. | |
void | dac2_write_output_voltage_procentage (dac2_t *ctx, uint8_t value_pct) |
Procentage generic write function. | |
void | dac2_write_output_voltage_data (dac2_t *ctx, uint16_t value_data) |
Data generic write function. | |
This file contains API for DAC 2 Click driver.