expand16 2.1.0.0
|
This file contains API for Expand 16 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 | expand16_t |
Expand 16 Click context object. More... | |
struct | expand16_cfg_t |
Expand 16 Click configuration object. More... | |
Enumerations | |
enum | expand16_return_value_t { EXPAND16_OK = 0 , EXPAND16_ERROR = -1 } |
Expand 16 Click return value data. More... | |
Functions | |
void | expand16_cfg_setup (expand16_cfg_t *cfg) |
Expand 16 configuration object setup function. | |
err_t | expand16_init (expand16_t *ctx, expand16_cfg_t *cfg) |
Expand 16 initialization function. | |
err_t | expand16_default_cfg (expand16_t *ctx) |
Expand 16 default configuration function. | |
err_t | expand16_generic_write (expand16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Expand 16 I2C writing function. | |
err_t | expand16_generic_read (expand16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Expand 16 I2C reading function. | |
void | expand16_set_rst_pin (expand16_t *ctx, uint8_t pin_state) |
Expand 16 set RST pin state function. | |
void | expand16_hw_reset (expand16_t *ctx) |
Expand 16 Hardware reset function. | |
uint8_t | expand16_get_int_pin (expand16_t *ctx) |
Expand 16 get INT pin function. | |
err_t | expand16_write_reg (expand16_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 16 register write function. | |
err_t | expand16_read_reg (expand16_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 16 register read function. | |
err_t | expand16_set_io_dir (expand16_t *ctx, uint8_t input_pins, uint8_t output_pins) |
Expand 16 set pin input or output direction function. | |
err_t | expand16_set_output_state (expand16_t *ctx, uint8_t clr_mask, uint8_t set_mask) |
Expand 16 set output pins state function. | |
This file contains API for Expand 16 Click Driver.