expand9 2.0.0.0
|
This file contains API for Expand 9 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 | expand9_t |
Expand 9 Click context object. More... | |
struct | expand9_cfg_t |
Expand 9 Click configuration object. More... | |
Enumerations | |
enum | expand9_return_value_t { EXPAND9_OK = 0 , EXPAND9_ERROR = -1 } |
Expand 9 Click return value data. More... | |
enum | expand9_direction_value_t { DIRECTION_INPUT = 0 , DIRECTION_OUTPUT = 1 } |
Expand 9 Click direction value data. More... | |
enum | expand9_ch_state_value_t { CH_OUTPUT_OFF = 0 , CH_OUTPUT_ON = 1 } |
Expand 9 Click channel state value data. More... | |
Functions | |
void | expand9_cfg_setup (expand9_cfg_t *cfg) |
Expand 9 configuration object setup function. | |
err_t | expand9_init (expand9_t *ctx, expand9_cfg_t *cfg) |
Expand 9 initialization function. | |
err_t | expand9_default_cfg (expand9_t *ctx) |
Expand 9 default configuration function. | |
err_t | expand9_set_slave_address (expand9_t *ctx, uint8_t slave_addr) |
Expand 9 set I2C Slave address function. | |
err_t | expand9_generic_write (expand9_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Expand 9 I2C writing function. | |
err_t | expand9_generic_read (expand9_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Expand 9 I2C reading function. | |
err_t | expand9_soft_reset (expand9_t *ctx) |
Expand 9 software reset function. | |
err_t | expand9_set_ch_direction (expand9_t *ctx, uint8_t ch_pos, expand9_direction_value_t direction) |
Expand 9 set channel direction function. | |
err_t | expand9_set_all_ch_output (expand9_t *ctx) |
Expand 9 set all channel output function. | |
err_t | expand9_set_all_ch_input (expand9_t *ctx) |
Expand 9 set all channel input function. | |
err_t | expand9_set_ch_output_state (expand9_t *ctx, uint8_t ch_pos, expand9_ch_state_value_t ch_state) |
Expand 9 set channel output state function. | |
err_t | expand9_get_ch_output_state (expand9_t *ctx, uint8_t ch_pos, expand9_ch_state_value_t *ch_state) |
Expand 9 get channel output state function. | |
err_t | expand9_write_ch (expand9_t *ctx, uint8_t ch_pos, expand9_ch_state_value_t ch_state) |
Expand 9 write channel function. | |
err_t | expand9_read_ch (expand9_t *ctx, uint8_t ch_pos, expand9_ch_state_value_t *ch_state) |
Expand 9 read channel function. | |
err_t | expand9_led_driver_config (expand9_t *ctx, uint8_t ch_pos, uint8_t freq_div, uint8_t lin_log) |
Expand 9 LED driver configuration function. | |
err_t | expand9_set_intensity (expand9_t *ctx, uint8_t ch_pos, uint8_t intensity) |
Expand 9 set intensity function. | |
err_t | expand9_sync (expand9_t *ctx) |
Expand 9 sync function. | |
err_t | expand9_debounce_config (expand9_t *ctx, uint8_t config_val) |
Expand 9 sync function. | |
err_t | expand9_enable_ch_interrupt (expand9_t *ctx, uint8_t ch_pos, uint8_t rise_fall) |
Expand 9 enable channel interrupt function. | |
err_t | expand9_clear_interrupt (expand9_t *ctx) |
Expand 9 clear all interrupt function. | |
err_t | expand9_check_ch_interrupt (expand9_t *ctx, uint8_t ch_pos, expand9_ch_state_value_t *int_state) |
Expand 9 check channel interrupt function. | |
uint8_t | expand9_check_interrupt_pin (expand9_t *ctx) |
Expand 9 check interrupt pin function. | |
This file contains API for Expand 9 Click Driver.