daq3 2.0.0.0
|
This file contains API for DAQ 3 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 | daq3_t |
DAQ 3 Click context object. More... | |
struct | daq3_reg_cfg_t |
DAQ 3 Click configuration object. More... | |
struct | daq3_cfg_t |
DAQ 3 Click configuration object. More... | |
Macros | |
#define | DAQ3_REG_0 0x00 |
DAQ 3 description register. | |
#define | DAQ3_REG_1 0x01 |
#define | DAQ3_REG_2 0x02 |
#define | DAQ3_REG_3 0x03 |
#define | DAQ3_REG_CMD 0x14 |
#define | DAQ3_CMD_WEN 0x00 |
DAQ 3 description setting. | |
#define | DAQ3_CMD_REG_READ 0x40 |
#define | DAQ3_CMD_REG_WRITE 0x00 |
#define | DAQ3_CMD_REG_DEFAULT 0xE1 |
DAQ 3 command register default setting. | |
#define | DAQ3_LOW_POWER_MODE 0x00 |
DAQ 3 power mode setting. | |
#define | DAQ3_FULL_PERFORMANCE_MODE 0x01 |
#define | DAQ3_PD_REF_POWER_DOWN 0x00 |
DAQ 3 power-down reference buffer setting. | |
#define | DAQ3_PD_REF_POWER_UP 0x01 |
#define | DAQ3_PD_AMP_POWER_DOWN 0x00 |
DAQ 3 power-down amplifier setting. | |
#define | DAQ3_PD_AMP_POWER_UP 0x01 |
#define | DAQ3_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Functions | |
void | daq3_cfg_setup (daq3_cfg_t *cfg) |
DAQ 3 configuration object setup function. | |
err_t | daq3_init (daq3_t *ctx, daq3_cfg_t *cfg) |
DAQ 3 initialization function. | |
void | daq3_default_cfg (daq3_t *ctx) |
DAQ 3 default configuration function. | |
void | daq3_set_pwr_mode (daq3_t *ctx, uint8_t mode) |
DAQ 3 set power mode function. | |
void | daq3_set_pwr_down_ref_buf (daq3_t *ctx, uint8_t pd_ref) |
DAQ 3 set power reference buffer function. | |
void | daq3_set_pwr_down_amp (daq3_t *ctx, uint8_t pd_amp) |
DAQ 3 set power Amplifier function. | |
uint8_t | daq3_get_sdo (daq3_t *ctx) |
DAQ 3 get state of SDO function. | |
err_t | daq3_generic_write (daq3_t *ctx, uint8_t reg, uint8_t data_in) |
DAQ 3 data writing function. | |
err_t | daq3_generic_read (daq3_t *ctx, uint8_t reg, uint8_t *data_out) |
DAQ 3 data reading function. | |
err_t | daq3_set_reg_cfg (daq3_t *ctx, daq3_reg_cfg_t cfg_data) |
DAQ 3 set command register function. | |
err_t | daq3_get_reg_cfg (daq3_t *ctx, daq3_reg_cfg_t *cfg_data) |
DAQ 3 get command register function. | |
int32_t | daq3_get_conversion_result (daq3_t *ctx, daq3_reg_cfg_t cfg_data) |
DAQ 3 get conversion result function. | |
float | daq3_get_voltage (daq3_t *ctx) |
DAQ 3 get voltage function. | |
This file contains API for DAQ 3 Click Driver.