adswio3 2.1.0.0
|
This file contains API for AD-SWIO 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | adswio3_t |
AD-SWIO 3 Click context object. More... | |
struct | adswio3_cfg_t |
AD-SWIO 3 Click configuration object. More... | |
struct | adswio3_adc_cfg_t |
AD-SWIO 3 Click ADC configuration object. More... | |
struct | adswio3_output_cfg_t |
AD-SWIO 3 Click output configuration object. More... | |
struct | adswio3_adc_cnv_ctrl_t |
AD-SWIO 3 Click ADC conversion control object. More... | |
struct | adswio3_alert_status_t |
AD-SWIO 3 Click the alert status object. More... | |
struct | adswio3_live_status_t |
AD-SWIO 3 Click live status object. More... | |
Enumerations | |
enum | adswio3_return_value_t { ADSWIO3_OK = 0 , ADSWIO3_ERROR = -1 } |
AD-SWIO 3 Click return value data. More... | |
Functions | |
void | adswio3_cfg_setup (adswio3_cfg_t *cfg) |
AD-SWIO 3 configuration object setup function. | |
err_t | adswio3_init (adswio3_t *ctx, adswio3_cfg_t *cfg) |
AD-SWIO 3 initialization function. | |
err_t | adswio3_default_cfg (adswio3_t *ctx) |
AD-SWIO 3 default configuration function. | |
void | adswio3_hw_reset (adswio3_t *ctx) |
AD-SWIO 3 HW reset function. | |
err_t | adswio3_register_write (adswio3_t *ctx, uint8_t reg, uint16_t data_in) |
AD-SWIO 3 data writing function. | |
err_t | adswio3_register_read (adswio3_t *ctx, uint8_t reg, uint16_t *data_out) |
AD-SWIO 3 data reading function. | |
err_t | adswio3_function_setup (adswio3_t *ctx, uint8_t ch_fun) |
AD-SWIO 3 select the channel function. | |
err_t | adswio3_adc_config (adswio3_t *ctx, adswio3_adc_cfg_t adc_config) |
AD-SWIO 3 select the ADC config function. | |
err_t | adswio3_pwr_optim_config (adswio3_t *ctx, uint8_t buff_sel, uint8_t buff_mode) |
AD-SWIO 3 set power optimization function. | |
err_t | adswio3_output_config (adswio3_t *ctx, adswio3_output_cfg_t out_cfg) |
AD-SWIO 3 configures the output settings function. | |
err_t | adswio3_rtd_config (adswio3_t *ctx, uint8_t rtd_mode_sel, uint8_t rtd_exc_swap, uint8_t rtd_current) |
AD-SWIO 3 RTD configuration function. | |
err_t | adswio3_set_dac_code (adswio3_t *ctx, uint16_t dac_code) |
AD-SWIO 3 sets the DAC code for the output function. | |
err_t | adswio3_set_gpio_config (adswio3_t *ctx, uint8_t gpio_sel, uint8_t gpo_data, uint8_t gp_wk_pd_en, uint8_t out_mode) |
AD-SWIO 3 GPIO configuration function. | |
err_t | adswio3_set_adc_cnv (adswio3_t *ctx, adswio3_adc_cnv_ctrl_t adc_cnv_ctrl) |
AD-SWIO 3 ADC conversion control function. | |
err_t | adswio3_set_diag_assign (adswio3_t *ctx, uint8_t diag_0, uint8_t diag_1, uint8_t diag_2, uint8_t diag_3) |
AD-SWIO 3 assigns diagnostics function. | |
err_t | adswio3_get_status (adswio3_t *ctx, adswio3_alert_status_t *alert_status, adswio3_live_status_t *live_status) |
AD-SWIO 3 get status function. | |
err_t | adswio3_get_adc_res (adswio3_t *ctx, uint8_t adc_sel, uint16_t *adc_data) |
AD-SWIO 3 gets the ADC conversion result function. | |
err_t | adswio3_get_voltage_input (adswio3_t *ctx, uint8_t adc_sel, float *voltage) |
AD-SWIO 3 gets the voltage input function. | |
err_t | adswio3_get_diag_res (adswio3_t *ctx, uint8_t diag_sel, uint16_t *adc_diag_data) |
AD-SWIO 3 gets the diagnostic conversion results function. | |
err_t | adswio3_get_diag_vtg (adswio3_t *ctx, uint8_t diag_sel, float *diag_vtg) |
AD-SWIO 3 gets the diagnostic conversion results function. | |
err_t | adswio3_get_ntc_temp (adswio3_t *ctx, uint8_t diag_sel, float *ntc_temp) |
AD-SWIO 3 gets the NTC temperature function. | |
err_t | adswio3_set_alert_mask (adswio3_t *ctx, uint16_t alert_mask) |
AD-SWIO 3 sets the alert mask function. | |
err_t | adswio3_set_ppc_vtg (adswio3_t *ctx, float ppc_vtg) |
AD-SWIO 3 power control voltage configuration function. | |
uint8_t | adswio3_get_ready (adswio3_t *ctx) |
AD-SWIO 3 gets the ready pin function. | |
uint8_t | adswio3_get_alarm (adswio3_t *ctx) |
AD-SWIO 3 gets the alarm pin function. | |
This file contains API for AD-SWIO 3 Click Driver.