i2cextend 2.0.0.0
|
This file contains API for I2C Extend Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | i2cextend_t |
I2C Extend Click context object. More... | |
struct | i2cextend_cfg_t |
I2C Extend Click configuration object. More... | |
struct | i2cextend_status_data_t |
I2C Extend Click status data. More... | |
struct | i2cextend_fault_data_t |
I2C Extend Click fault data. More... | |
Enumerations | |
enum | i2cextend_return_value_t { I2CEXTEND_OK = 0 , I2CEXTEND_ERROR = -1 } |
I2C Extend Click return value data. More... | |
Functions | |
void | i2cextend_cfg_setup (i2cextend_cfg_t *cfg) |
I2C Extend configuration object setup function. | |
err_t | i2cextend_init (i2cextend_t *ctx, i2cextend_cfg_t *cfg) |
I2C Extend initialization function. | |
void | i2cextend_generic_write (i2cextend_t *ctx, uint8_t reg, uint8_t tx_data) |
Generic write data function. | |
uint8_t | i2cextend_generic_read (i2cextend_t *ctx, uint8_t reg) |
Generic read data function. | |
void | i2cextend_rmt_write (i2cextend_t *ctx, uint8_t rmt_slave_addr, uint8_t reg, uint8_t tx_data) |
Generic write data in Remote Mode function. | |
uint8_t | i2cextend_rmt_read (i2cextend_t *ctx, uint8_t rmt_slave_addr, uint8_t reg) |
Generic read data in Remote Mode function. | |
void | i2cextend_rmt_multi_write (i2cextend_t *ctx, uint8_t rmt_slave_addr, uint8_t reg, uint8_t *p_tx_data, uint8_t n_bytes) |
Generic multi write data in Remote Mode function. | |
void | i2cextend_rmt_multi_read (i2cextend_t *ctx, uint8_t rmt_slave_addr, uint8_t reg, uint8_t *p_rx_data, uint8_t n_bytes) |
Generic multi read data in Remote Mode function. | |
void | i2cextend_set_config (i2cextend_t *ctx, uint8_t intr_mode, uint8_t ctrl_sel) |
Set the configuration function. | |
void | i2cextend_status (i2cextend_t *ctx, i2cextend_status_data_t *status_data) |
Check the status function. | |
void | i2cextend_enable_alerts (i2cextend_t *ctx, uint8_t link_good, uint8_t link_lost, uint8_t fault) |
Set enable alerts function. | |
void | i2cextend_fault (i2cextend_t *ctx, i2cextend_fault_data_t *fault_data) |
Check the fault state function. | |
uint8_t | i2cextend_get_scratch (i2cextend_t *ctx) |
Get scratch function. | |
void | i2cextend_set_out_slave_address (i2cextend_t *ctx, uint8_t out_slave_address) |
Set out slave address function. | |
void | i2cextend_set_out_ctrl (i2cextend_t *ctx, uint8_t out_ctrl) |
Set out CTRL function. | |
void | i2cextend_set_rst (i2cextend_t *ctx, uint8_t en_rst) |
Set RTS pin state function. | |
void | i2cextend_set_cs (i2cextend_t *ctx, uint8_t en_cs) |
Set CS pin state function. | |
void | i2cextend_set_on (i2cextend_t *ctx, uint8_t on_state) |
Set ON pin state function. | |
uint8_t | i2cextend_check_int (i2cextend_t *ctx) |
Check interrupt ststus function. | |
This file contains API for I2C Extend Click Driver.