adswio2 2.0.0.0
|
This file contains API for AD SWIO 2 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 | adswio2_t |
Click ctx object definition. More... | |
struct | adswio2_read_t |
Click ctx object definition. More... | |
struct | adswio2_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | adswio2_handler_t) (uint8_t *) |
Click error handler definition. | |
Functions | |
void | adswio2_cfg_setup (adswio2_cfg_t *cfg) |
Config Object Initialization function. | |
ADSWIO2_RETVAL | adswio2_init (adswio2_t *ctx, adswio2_cfg_t *cfg) |
Initialization function. | |
void | adswio2_default_cfg (adswio2_t *ctx) |
Click Default Configuration function. | |
void | adswio2_generic_transfer (adswio2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | adswio2_reset (adswio2_t *ctx) |
Click Reset function. | |
uint8_t | adswio2_status_pin_ready (adswio2_t *ctx) |
Ready Pin Status Check function. | |
uint8_t | adswio2_status_pin_alert (adswio2_t *ctx) |
Alert Pin Status Check function. | |
void | adswio2_set_handler (adswio2_t *ctx, adswio2_handler_t handler) |
Error Handler Setup function. | |
void | adswio2_clear_handler (adswio2_t *ctx) |
Error Handler Clear function. | |
adswio2_err_t | adswio2_generic_write (adswio2_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Generic Write function. | |
adswio2_err_t | adswio2_generic_read (adswio2_t *ctx, uint8_t reg_addr, uint16_t *data_out, uint8_t *rd_status) |
Generic Read function. | |
adswio2_err_t | adswio2_generic_multi_read (adswio2_t *ctx, adswio2_read_t *rd) |
Generic Multi Read function. | |
adswio2_err_t | adswio2_exe_command (adswio2_t *ctx, uint16_t cmd_key) |
Command Execute function. | |
void | adswio2_mask_alert_set (adswio2_t *ctx, uint16_t alert_mask) |
Alert Mask function. | |
adswio2_err_t | adswio2_status_live (adswio2_t *ctx, uint16_t *status, uint16_t status_mask) |
Live Status function. | |
adswio2_err_t | adswio2_status_data_ready (adswio2_t *ctx, uint8_t *drdy, uint16_t *conv_target) |
Data Ready Status function. | |
adswio2_err_t | adswio2_status_alert (adswio2_t *ctx, uint16_t *status, uint16_t status_mask) |
Alert Status function. | |
adswio2_err_t | adswio2_set_conv_mode (adswio2_t *ctx, uint8_t mode) |
Conversion Mode Setup function. | |
adswio2_err_t | adswio2_enable_ch (adswio2_t *ctx, uint8_t channel) |
Channel Enable function. | |
adswio2_err_t | adswio2_enable_diag (adswio2_t *ctx, uint8_t diagnostic) |
Diagnostic Enable function. | |
adswio2_err_t | adswio2_set_ch_func (adswio2_t *ctx, uint8_t channel, uint8_t ch_func) |
Channel Function Setup function. | |
adswio2_err_t | adswio2_assign_diag (adswio2_t *ctx, uint8_t diagnostic, uint8_t duty) |
Diagnostic Assign function. | |
adswio2_err_t | adswio2_get_conv_results (adswio2_t *ctx, uint8_t channel, uint16_t *data_out) |
Channel Results Get function. | |
adswio2_err_t | adswio2_get_diag_results (adswio2_t *ctx, uint8_t diagnostic, uint16_t *data_out) |
Diagnostic Results Get function. | |
This file contains API for AD SWIO 2 Click driver.