expand6 2.0.0.0
|
This file contains API for Expand 6 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 | expand6_pwm_cfg_t |
PWM Configuration. More... | |
struct | expand6_t |
Click ctx object definition. More... | |
struct | expand6_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | expand6_cfg_setup (expand6_cfg_t *cfg) |
Config Object Initialization function. | |
EXPAND6_RETVAL | expand6_init (expand6_t *ctx, expand6_cfg_t *cfg) |
Initialization function. | |
void | expand6_generic_write (expand6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | expand6_generic_read (expand6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | expand6_write_byte (expand6_t *ctx, uint8_t reg_adr, uint8_t wr_data) |
Write byte function. | |
uint8_t | expand6_read_byte (expand6_t *ctx, uint8_t reg_adr) |
Read byte function. | |
void | expand6_write_port_exp (expand6_t *ctx, uint8_t reg, uint8_t *buf, uint8_t len) |
Port Expander Write function. | |
void | expand6_read_port_exp (expand6_t *ctx, uint8_t reg, uint8_t *buf, uint8_t len) |
Port Expander Read function. | |
void | expand6_send_eeprom_cmd (expand6_t *ctx, uint8_t cmd) |
Send Command function. | |
void | expand6_write_eeprom (expand6_t *ctx, uint16_t mem_adr, uint8_t *buf, uint8_t len) |
EEPROM Write function. | |
void | expand6_read_eeprom (expand6_t *ctx, uint16_t mem_adr, uint8_t *buf, uint8_t len) |
EEPROM Read function. | |
uint8_t | expand6_read_bit (expand6_t *ctx, uint8_t reg_adr, uint8_t bit_num) |
Read bit function. | |
void | expand6_write_bit (expand6_t *ctx, uint8_t reg_adr, uint8_t bit_num, uint8_t pin_val) |
Write bit function. | |
uint8_t | expand6_read_pin (expand6_t *ctx, uint16_t pin, uint8_t inv) |
Get a single INPUT pin's logic level function. | |
uint8_t | expand6_read_port (expand6_t *ctx, uint8_t port, uint8_t inv) |
Get all pin logic levels from one port function. | |
uint8_t | expand6_get_pin_out_lvl (expand6_t *ctx, uint16_t pin) |
Get a single OUTPUT pin's setting function. | |
uint8_t | expand6_get_port_out_lvl (expand6_t *ctx, uint8_t port) |
Get all pin output settings from one port function. | |
void | expand6_write_pin (expand6_t *ctx, uint16_t pin, uint8_t pin_val) |
Set a single OUTPUT pin's logic level function. | |
void | expand6_write_port (expand6_t *ctx, uint8_t port, uint8_t value) |
Set all OUTPUT pins' logic levels in one port function. | |
void | expand6_sel_pwm_pin (expand6_t *ctx, uint16_t pin, uint8_t pwm_en) |
Select a PWM output pin function. | |
void | expand6_pwm_cfg (expand6_t *ctx, expand6_pwm_cfg_t pwm_cfg, float *duty_cyc, float *freq) |
PWM Configuration function. | |
void | expand6_eeprom_enable (expand6_t *ctx, uint8_t cmd) |
Enable Register Configuration function. | |
void | expand6_reset (expand6_t *ctx) |
Reset function. | |
uint8_t | expand6_check_int (expand6_t *ctx) |
Get Interrupt state function. | |
This file contains API for Expand 6 Click driver.