expand14 2.0.0.0
|
This file contains API for Expand 14 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 | expand14_t |
Expand 14 Click context object. More... | |
struct | expand14_cfg_t |
Expand 14 Click configuration object. More... | |
Enumerations | |
enum | expand14_return_value_t { EXPAND14_OK = 0 , EXPAND14_ERROR = -1 } |
Expand 14 Click return value data. More... | |
Functions | |
void | expand14_cfg_setup (expand14_cfg_t *cfg) |
Expand 14 configuration object setup function. | |
err_t | expand14_init (expand14_t *ctx, expand14_cfg_t *cfg) |
Expand 14 initialization function. | |
err_t | expand14_default_cfg (expand14_t *ctx) |
Expand 14 default configuration function. | |
err_t | expand14_generic_write (expand14_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Expand 14 I2C writing function. | |
err_t | expand14_generic_read (expand14_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Expand 14 I2C reading function. | |
err_t | expand14_write_register (expand14_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 14 write register function. | |
err_t | expand14_read_register (expand14_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 14 read register function. | |
err_t | expand14_set_pin_direction (expand14_t *ctx, uint8_t direction, uint8_t port, uint8_t pin_mask) |
Expand 14 set pin direction function. | |
err_t | expand14_set_all_pins_direction (expand14_t *ctx, uint8_t direction) |
Expand 14 set all pins direction function. | |
err_t | expand14_set_all_pins_value (expand14_t *ctx, uint8_t set_mask) |
Expand 14 set all pins value function. | |
err_t | expand14_set_pin_value (expand14_t *ctx, uint8_t port, uint8_t clr_mask, uint8_t set_mask) |
Expand 14 set pin value function. | |
err_t | expand14_read_port_value (expand14_t *ctx, uint8_t port, uint8_t *data_out) |
Expand 14 read port value function. | |
uint8_t | expand14_get_int_pin (expand14_t *ctx) |
Expand 14 get INT pin function. | |
This file contains API for Expand 14 Click Driver.