expand17
2.1.0.0
|
This file contains API for Expand 17 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 | expand17_t |
Expand 17 Click context object. More... | |
struct | expand17_cfg_t |
Expand 17 Click configuration object. More... | |
Enumerations | |
enum | expand17_return_value_t { EXPAND17_OK = 0, EXPAND17_ERROR = -1 } |
Expand 17 Click return value data. More... | |
Functions | |
void | expand17_cfg_setup (expand17_cfg_t *cfg) |
Expand 17 configuration object setup function. More... | |
err_t | expand17_init (expand17_t *ctx, expand17_cfg_t *cfg) |
Expand 17 initialization function. More... | |
err_t | expand17_default_cfg (expand17_t *ctx) |
Expand 17 default configuration function. More... | |
err_t | expand17_generic_write (expand17_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Expand 17 I2C writing function. More... | |
err_t | expand17_generic_read (expand17_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Expand 17 I2C reading function. More... | |
void | expand17_set_rst_pin (expand17_t *ctx, uint8_t pin_state) |
Expand 17 set reset pin state function. More... | |
uint8_t | expand17_get_int_pin (expand17_t *ctx) |
Expand 17 get interrupt pin state function. More... | |
void | expand17_hw_reset (expand17_t *ctx) |
Expand 17 hardware reset function. More... | |
err_t | expand17_set_io_dir (expand17_t *ctx, uint8_t input_pins, uint8_t output_pins) |
Expand 17 set pin input or output direction function. More... | |
err_t | expand17_set_output_state (expand17_t *ctx, uint8_t clr_mask, uint8_t set_mask) |
Expand 17 set output pins state function. More... | |
err_t | expand17_get_input_state (expand17_t *ctx, uint8_t *input_state) |
Expand 17 get input pins state function. More... | |
This file contains API for Expand 17 Click Driver.