expand11 2.1.0.0
|
This file contains API for Expand 11 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 | expand11_t |
Expand 11 Click context object. More... | |
struct | expand11_cfg_t |
Expand 11 Click configuration object. More... | |
Macros | |
#define | EXPAND11_REG_INPUT_PORT 0x00 |
Expand 11 register list. | |
#define | EXPAND11_REG_OUTPUT_PORT 0x01 |
#define | EXPAND11_REG_POLARITY_INV 0x02 |
#define | EXPAND11_REG_CONFIG 0x03 |
#define | EXPAND11_REG_SPECIAL_FUNC 0x50 |
#define | EXPAND11_NO_PIN_MASK 0x00 |
Expand 11 pin mask values. | |
#define | EXPAND11_PIN_0_MASK 0x01 |
#define | EXPAND11_PIN_1_MASK 0x02 |
#define | EXPAND11_PIN_2_MASK 0x04 |
#define | EXPAND11_PIN_3_MASK 0x08 |
#define | EXPAND11_ALL_PINS_MASK 0x0F |
#define | EXPAND11_OUTPUT_DIRECTION 0x00 |
Expand 11 pin direction values. | |
#define | EXPAND11_INPUT_DIRECTION 0x01 |
#define | EXPAND11_POLARITY_NO_INV 0x00 |
Expand 11 pin polarity values. | |
#define | EXPAND11_POLARITY_INV 0x01 |
#define | EXPAND11_SPECIAL_FUNC_P3_AS_INT 0x80 |
Expand 11 special function register values. | |
#define | EXPAND11_SPECIAL_FUNC_PU_DISABLED 0x40 |
#define | EXPAND11_P3_AS_P3 0x00 |
Expand 11 P3 function settings. | |
#define | EXPAND11_P3_AS_INT 0x01 |
#define | EXPAND11_DEVICE_ADDRESS 0x41 |
Expand 11 device address setting. | |
#define | EXPAND11_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | expand11_return_value_t { EXPAND11_OK = 0 , EXPAND11_ERROR = -1 } |
Expand 11 Click return value data. More... | |
Functions | |
void | expand11_cfg_setup (expand11_cfg_t *cfg) |
Expand 11 configuration object setup function. | |
err_t | expand11_init (expand11_t *ctx, expand11_cfg_t *cfg) |
Expand 11 initialization function. | |
err_t | expand11_default_cfg (expand11_t *ctx) |
Expand 11 default configuration function. | |
err_t | expand11_write_register (expand11_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 11 write register function. | |
err_t | expand11_read_register (expand11_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 11 read register function. | |
err_t | expand11_set_pin_direction (expand11_t *ctx, uint8_t direction, uint8_t pin_mask) |
Expand 11 set pin direction function. | |
err_t | expand11_set_all_pins_direction (expand11_t *ctx, uint8_t direction) |
Expand 11 set all pins direction function. | |
err_t | expand11_set_pin_polarity (expand11_t *ctx, uint8_t polarity, uint8_t pin_mask) |
Expand 11 set pin polarity function. | |
err_t | expand11_set_all_pins_polarity (expand11_t *ctx, uint8_t polarity) |
Expand 11 set all pins polarity function. | |
err_t | expand11_set_pin_value (expand11_t *ctx, uint8_t clr_mask, uint8_t set_mask) |
Expand 11 set pin value function. | |
err_t | expand11_set_all_pins_value (expand11_t *ctx, uint8_t set_mask) |
Expand 11 set all pins value function. | |
err_t | expand11_read_port_value (expand11_t *ctx, uint8_t *data_out) |
Expand 11 read port value function. | |
err_t | expand11_set_p3_function (expand11_t *ctx, uint8_t p3_func) |
Expand 11 set p3 function function. | |
err_t | expand11_disable_pull_up (expand11_t *ctx) |
Expand 11 disable pull up function. | |
err_t | expand11_enable_pull_up (expand11_t *ctx) |
Expand 11 enable pull up function. | |
uint8_t | expand11_get_int_pin (expand11_t *ctx) |
Expand 11 get int pin function. | |
This file contains API for Expand 11 Click Driver.