expand7 2.0.0.0
|
This file contains API for Expand 7 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 | expand7_pwm_cfg_t |
PWM Configuration. More... | |
struct | expand7_t |
Click ctx object definition. More... | |
struct | expand7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | expand7_cfg_setup (expand7_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | expand7_init (expand7_t *ctx, expand7_cfg_t *cfg) |
Initialization function. | |
void | expand7_generic_write (expand7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | expand7_generic_read (expand7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | expand7_write_byte (expand7_t *ctx, uint8_t reg_adr, uint8_t wr_data) |
Write byte function. | |
uint8_t | expand7_read_byte (expand7_t *ctx, uint8_t reg_adr) |
Read byte function. | |
void | expand7_write_port_exp (expand7_t *ctx, uint8_t reg, uint8_t *buf, uint8_t len) |
Port Expander Write function. | |
void | expand7_read_port_exp (expand7_t *ctx, uint8_t reg, uint8_t *buf, uint8_t len) |
Port Expander Read function. | |
void | expand7_send_eeprom_cmd (expand7_t *ctx, uint8_t cmd) |
Send Command function. | |
void | expand7_write_eeprom (expand7_t *ctx, uint16_t mem_adr, uint8_t *buf, uint8_t len) |
EEPROM Write function. | |
void | expand7_read_eeprom (expand7_t *ctx, uint16_t mem_adr, uint8_t *buf, uint8_t len) |
EEPROM Read function. | |
uint8_t | expand7_read_bit (expand7_t *ctx, uint8_t reg_adr, uint8_t bit_num) |
Read bit function. | |
void | expand7_write_bit (expand7_t *ctx, uint8_t reg_adr, uint8_t bit_num, uint8_t pin_val) |
Write bit function. | |
uint8_t | expand7_read_pin (expand7_t *ctx, uint8_t pin, uint8_t inv) |
Get a single INPUT pin's logic level function. | |
uint8_t | expand7_read_port (expand7_t *ctx, uint8_t port, uint8_t inv) |
Get all pin logic levels from one port function. | |
uint8_t | expand7_get_pin_out_lvl (expand7_t *ctx, uint8_t pin) |
Get a single OUTPUT pin's setting function. | |
uint8_t | expand7_get_port_out_lvl (expand7_t *ctx, uint8_t port) |
Get all pin output settings from one port function. | |
void | expand7_write_pin (expand7_t *ctx, uint8_t pin, uint8_t pin_val) |
Set a single OUTPUT pin's logic level function. | |
void | expand7_write_port (expand7_t *ctx, uint8_t port, uint8_t value) |
Set all OUTPUT pins' logic levels in one port function. | |
void | expand7_write_all (expand7_t *ctx, uint8_t value) |
Set all OUTPUT pins' logic levels function. | |
void | expand7_sel_pwm_pin (expand7_t *ctx, uint8_t pin, uint8_t pwm_en) |
Select a PWM output pin function. | |
void | expand7_pwm_cfg (expand7_t *ctx, expand7_pwm_cfg_t pwm_cfg, float *duty_cyc, float *freq) |
PWM Configuration function. | |
void | expand7_eeprom_enable (expand7_t *ctx, uint8_t cmd) |
Enable Register Configuration function. | |
void | expand7_reset (expand7_t *ctx) |
Reset function. | |
uint8_t | expand7_check_int (expand7_t *ctx) |
Get Interrupt state function. | |
This file contains API for Expand 7 Click driver.