expand12 2.0.0.0
|
This file contains API for Expand 12 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 | expand12_t |
Expand 12 Click context object. More... | |
struct | expand12_cfg_t |
Expand 12 Click configuration object. More... | |
Enumerations | |
enum | expand12_return_value_t { EXPAND12_OK = 0 , EXPAND12_ERROR = -1 } |
Expand 12 Click return value data. More... | |
Functions | |
void | expand12_cfg_setup (expand12_cfg_t *cfg) |
Expand 12 configuration object setup function. | |
err_t | expand12_init (expand12_t *ctx, expand12_cfg_t *cfg) |
Expand 12 initialization function. | |
err_t | expand12_default_cfg (expand12_t *ctx) |
Expand 12 default configuration function. | |
err_t | expand12_generic_write (expand12_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Expand 12 I2C writing function. | |
err_t | expand12_generic_read (expand12_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Expand 12 I2C reading function. | |
err_t | expand12_write_register (expand12_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 12 write register function. | |
err_t | expand12_read_register (expand12_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 12 read register function. | |
err_t | expand12_set_operating_mode (expand12_t *ctx, uint8_t state) |
Expand 12 set operating mode function. | |
err_t | expand12_set_pin_direction (expand12_t *ctx, uint8_t pin, uint8_t direction) |
Expand 12 set pin direction function. | |
err_t | expand12_set_port_direction (expand12_t *ctx, uint8_t port, uint8_t direction) |
Expand 12 set port direction function. | |
err_t | expand12_set_all_pins_direction (expand12_t *ctx, uint8_t direction) |
Expand 12 set all pins direction function. | |
err_t | expand12_set_pin_value (expand12_t *ctx, uint8_t pin, uint8_t pin_value) |
Expand 12 set pin value function. | |
err_t | expand12_set_port_value (expand12_t *ctx, uint8_t port, uint8_t clr_mask, uint8_t set_mask) |
Expand 12 set port value function. | |
err_t | expand12_set_all_pins_value (expand12_t *ctx, uint8_t pin_value) |
Expand 12 set all pins value function. | |
err_t | expand12_read_pin_value (expand12_t *ctx, uint8_t pin, uint8_t *pin_value) |
Expand 12 read pin value function. | |
err_t | expand12_read_port_value (expand12_t *ctx, uint8_t port, uint8_t *port_value) |
Expand 12 read port value function. | |
err_t | expand12_read_all_pins_value (expand12_t *ctx, uint32_t *pins_value) |
Expand 12 read all pins value function. | |
This file contains API for Expand 12 Click Driver.