adswio 2.0.0.0
|
This file contains API for AD SWIO 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 | adswio_t |
Click ctx object definition. More... | |
struct | adswio_read_t |
Click ctx object definition. More... | |
struct | adswio_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | adswio_handler_t) (uint8_t *) |
Click error handler definition. | |
Functions | |
void | adswio_cfg_setup (adswio_cfg_t *cfg) |
Config Object Initialization function. | |
ADSWIO_RETVAL | adswio_init (adswio_t *ctx, adswio_cfg_t *cfg) |
Initialization function. | |
void | adswio_default_cfg (adswio_t *ctx) |
Click Default Configuration function. | |
void | adswio_generic_transfer (adswio_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | adswio_reset (adswio_t *ctx) |
Click Reset function. | |
uint8_t | adswio_status_pin_ready (adswio_t *ctx) |
Ready Pin Status Check function. | |
uint8_t | adswio_status_pin_alert (adswio_t *ctx) |
Alert Pin Status Check function. | |
void | adswio_set_handler (adswio_t *ctx, adswio_handler_t handler) |
Error Handler Setup function. | |
void | adswio_clear_handler (adswio_t *ctx) |
Error Handler Clear function. | |
adswio_err_t | adswio_generic_write (adswio_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Generic Write function. | |
adswio_err_t | adswio_generic_read (adswio_t *ctx, uint8_t reg_addr, uint16_t *data_out, uint8_t *rd_status) |
Generic Read function. | |
adswio_err_t | adswio_generic_multi_read (adswio_t *ctx, adswio_read_t *rd) |
Generic Multi Read function. | |
adswio_err_t | adswio_exe_command (adswio_t *ctx, uint16_t cmd_key) |
Command Execute function. | |
void | adswio_mask_alert_set (adswio_t *ctx, uint16_t alert_mask) |
Alert Mask function. | |
adswio_err_t | adswio_status_live (adswio_t *ctx, uint16_t *status, uint16_t status_mask) |
Live Status function. | |
adswio_err_t | adswio_status_data_ready (adswio_t *ctx, uint8_t *drdy, uint16_t *conv_target) |
Data Ready Status function. | |
adswio_err_t | adswio_status_alert (adswio_t *ctx, uint16_t *status, uint16_t status_mask) |
Alert Status function. | |
adswio_err_t | adswio_set_conv_mode (adswio_t *ctx, uint8_t mode) |
Conversion Mode Setup function. | |
adswio_err_t | adswio_enable_ch (adswio_t *ctx, uint8_t channel) |
Channel Enable function. | |
adswio_err_t | adswio_enable_diag (adswio_t *ctx, uint8_t diagnostic) |
Diagnostic Enable function. | |
adswio_err_t | adswio_set_ch_func (adswio_t *ctx, uint8_t channel, uint8_t ch_func) |
Channel Function Setup function. | |
adswio_err_t | adswio_assign_diag (adswio_t *ctx, uint8_t diagnostic, uint8_t duty) |
Diagnostic Assign function. | |
adswio_err_t | adswio_get_conv_results (adswio_t *ctx, uint8_t channel, uint16_t *data_out) |
Channel Results Get function. | |
adswio_err_t | adswio_get_diag_results (adswio_t *ctx, uint8_t diagnostic, uint16_t *data_out) |
Diagnostic Results Get function. | |
This file contains API for AD SWIO Click driver.