dac6 2.0.0.0
|
This file contains API for DAC 6 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 | dac6_t |
Click ctx object definition. More... | |
struct | dac6_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DAC6_MAP_MIKROBUS(cfg, mikrobus) |
#define | DAC6_RETVAL uint8_t |
#define | DAC6_OK 0x00 |
#define | DAC6_INIT_ERROR 0xFF |
#define | DAC6_CHANNEL_A 0x00 |
#define | DAC6_CHANNEL_B 0x01 |
#define | DAC6_CHANNEL_C 0x02 |
#define | DAC6_CHANNEL_D 0x03 |
#define | DAC6_WRITE_SPEC_UPDATE_NO 0x00 |
#define | DAC6_WRITE_SPEC_UPDATE_OUTPUT 0x01 |
#define | DAC6_WRITE_ALL_AND_UPDATE 0x02 |
#define | DAC6_POWER_DOWN_OUTPUTS 0x03 |
#define | DAC6_V_REF_2048 2048 |
#define | DAC6_OUTPUT_SHORT_CIRC_CURR 0x03FF |
Functions | |
void | dac6_cfg_setup (dac6_cfg_t *cfg) |
Config Object Initialization function. | |
DAC6_RETVAL | dac6_init (dac6_t *ctx, dac6_cfg_t *cfg) |
Initialization function. | |
void | dac6_generic_transfer (dac6_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | dac6_write_data (dac6_t *ctx, uint16_t wr_data) |
Generic write function. | |
float | dac6_set_output (dac6_t *ctx) |
Set DAC output function. | |
This file contains API for DAC 6 Click driver.