expand10 2.0.0.0
|
This file contains API for Expand 10 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 | expand10_t |
Expand 10 Click context object. More... | |
struct | expand10_cfg_t |
Expand 10 Click configuration object. More... | |
Enumerations | |
enum | expand10_return_value_t { EXPAND10_OK = 0 , EXPAND10_ERROR = -1 } |
Expand 10 Click return value data. More... | |
Functions | |
void | expand10_cfg_setup (expand10_cfg_t *cfg) |
Expand 10 configuration object setup function. | |
err_t | expand10_init (expand10_t *ctx, expand10_cfg_t *cfg) |
Expand 10 initialization function. | |
err_t | expand10_default_cfg (expand10_t *ctx) |
Expand 10 default configuration function. | |
err_t | expand10_generic_write (expand10_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Expand 10 I2C writing function. | |
err_t | expand10_generic_read (expand10_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Expand 10 I2C reading function. | |
void | expand10_set_rst_pin (expand10_t *ctx, uint8_t logic_level) |
Expand 10 set RST pin function. | |
uint8_t | expand10_get_int_pin (expand10_t *ctx) |
Expand 10 get INT pin function. | |
err_t | expand10_write_register (expand10_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 10 write register function. | |
err_t | expand10_read_register (expand10_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 10 read register function. | |
err_t | expand10_check_device_id (expand10_t *ctx) |
Expand 10 check device ID function. | |
err_t | expand10_software_reset (expand10_t *ctx) |
Expand 10 software reset function. | |
err_t | expand10_set_pin_direction (expand10_t *ctx, uint8_t direction, uint8_t port, uint8_t pin_mask) |
Expand 10 set pin direction function. | |
err_t | expand10_set_all_pins_direction (expand10_t *ctx, uint8_t direction) |
Expand 10 set all pins direction function. | |
err_t | expand10_set_all_pins_value (expand10_t *ctx, uint8_t set_mask) |
Expand 10 set all pins value function. | |
err_t | expand10_set_pin_value (expand10_t *ctx, uint8_t port, uint8_t clr_mask, uint8_t set_mask) |
Expand 10 set pin value function. | |
err_t | expand10_read_port_value (expand10_t *ctx, uint8_t port, uint8_t *data_out) |
Expand 10 read port value function. | |
This file contains API for Expand 10 Click Driver.