expand5 2.0.0.0
|
This file contains API for Expand 5 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 | expand5_t |
Click ctx object definition. More... | |
struct | expand5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | expand5_cfg_setup (expand5_cfg_t *cfg) |
Config Object Initialization function. | |
EXPAND5_RETVAL | expand5_init (expand5_t *ctx, expand5_cfg_t *cfg) |
Initialization function. | |
void | expand5_generic_write (expand5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | expand5_generic_read (expand5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | expand5_read_bit (expand5_t *ctx, uint8_t reg_adr, uint8_t bit_num) |
Read bit function. | |
void | expand5_write_bit (expand5_t *ctx, uint8_t reg_adr, uint8_t bit_num, uint8_t pin_val) |
Write bit function. | |
uint8_t | expand5_read_pin (expand5_t *ctx, uint16_t pin) |
Get a single INPUT pin's logic level function. | |
uint8_t | expand5_read_bank (expand5_t *ctx, uint8_t bank) |
Get all pin logic levels from one bank function. | |
void | expand5_read_all_banks (expand5_t *ctx, uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) |
Get all pins logic levels from all banks function. | |
uint8_t | expand5_get_pin_out_lvl (expand5_t *ctx, uint16_t pin) |
Get a single OUTPUT pin's setting function. | |
uint8_t | expand5_get_bank_out_lvl (expand5_t *ctx, uint8_t bank) |
Get all pin output settings from one bank function. | |
void | expand5_get_all_banks_out_lvl (expand5_t *ctx, uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) |
Get all pin output settings from all banks function. | |
void | expand5_write_pin (expand5_t *ctx, uint16_t pin, uint8_t pin_val) |
Set a single OUTPUT pin's logic level function. | |
void | expand5_write_bank (expand5_t *ctx, uint8_t bank, uint8_t value) |
Set all OUTPUT pins' logic levels in one bank function. | |
void | expand5_write_all_banks (expand5_t *ctx, uint8_t bank0, uint8_t bank1, uint8_t bank2) |
Set all OUTPUT pins' logic levels in all banks function. | |
uint8_t | expand5_get_pin_pol (expand5_t *ctx, uint16_t pin) |
Get a single pin's polarity ( normal/inverted ) setting function. | |
uint8_t | expand5_get_bank_pol (expand5_t *ctx, uint8_t bank) |
Get all pin polarity ( normal/inverted ) settings from one bank function. | |
void | expand5_get_all_banks_pol (expand5_t *ctx, uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) |
Get all pin polarity ( normal/inverted ) settings from all banks function. | |
void | expand5_set_pin_pol (expand5_t *ctx, uint16_t pin, uint8_t polarity) |
Set a single pin's polarity ( normal/inverted ) setting function. | |
void | expand5_set_bank_pol (expand5_t *ctx, uint8_t bank, uint8_t polarity) |
Set all pin polarity ( normal/inverted ) settings in one bank function. | |
void | expand5_set_all_banks_pol (expand5_t *ctx, uint8_t bank0, uint8_t bank1, uint8_t bank2) |
Set all pin polarity ( normal/inverted ) settings in all banks function. | |
uint8_t | expand5_get_pin_dir (expand5_t *ctx, uint16_t pin) |
Get a single pin's direction ( I/O ) setting function. | |
uint8_t | expand5_get_bank_dir (expand5_t *ctx, uint8_t bank) |
Get all pin direction ( I/O ) settings from one bank function. | |
void | expand5_get_all_dir (expand5_t *ctx, uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) |
Get all pin direction ( I/O ) settings from all banks function. | |
void | expand5_set_pin_dir (expand5_t *ctx, uint16_t pin, uint8_t direction) |
Set a single pin's direction ( I/O ) setting function. | |
void | expand5_set_bank_dir (expand5_t *ctx, uint8_t bank, uint8_t direction) |
Set all pin direction ( I/O ) settings in one bank function. | |
void | expand5_set_all_dir (expand5_t *ctx, uint8_t bank0, uint8_t bank1, uint8_t bank2) |
Set all pin direction ( I/O ) settings in all banks function. | |
void | expand5_reset (expand5_t *ctx) |
Reset function. | |
uint8_t | expand5_check_int (expand5_t *ctx) |
Get Interrupt state function. | |
This file contains API for Expand 5 Click driver.