expand15 2.1.0.0
|
This file contains API for Expand 15 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 | expand15_t |
Expand 15 Click context object. More... | |
struct | expand15_cfg_t |
Expand 15 Click configuration object. More... | |
Enumerations | |
enum | expand15_return_value_t { EXPAND15_OK = 0 , EXPAND15_ERROR = -1 } |
Expand 15 Click return value data. More... | |
Functions | |
void | expand15_cfg_setup (expand15_cfg_t *cfg) |
Expand 15 configuration object setup function. | |
err_t | expand15_init (expand15_t *ctx, expand15_cfg_t *cfg) |
Expand 15 initialization function. | |
err_t | expand15_default_cfg (expand15_t *ctx) |
Expand 15 default configuration function. | |
err_t | expand15_generic_write (expand15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Expand 15 I2C writing function. | |
err_t | expand15_generic_read (expand15_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Expand 15 I2C reading function. | |
uint8_t | expand15_get_int_pin_state (expand15_t *ctx) |
Expand 15 get interrupt function. | |
void | expand15_hw_reset (expand15_t *ctx) |
Expand 15 hardware reset function. | |
err_t | expand15_get_in_pin_state (expand15_t *ctx, uint8_t port, uint8_t *pin_state) |
Expand 15 get input pin state function. | |
err_t | expand15_get_out_pin_state (expand15_t *ctx, uint8_t port, uint8_t *pin_state) |
Expand 15 get output pin state function. | |
err_t | expand15_set_out_pin_state (expand15_t *ctx, uint8_t port, uint8_t pin_state) |
Expand 15 set output pin state function. | |
err_t | expand15_get_in_pin_polarity (expand15_t *ctx, uint8_t port, uint8_t *pin_polarity) |
Expand 15 get input pin polarity function. | |
err_t | expand15_set_in_pin_polarity (expand15_t *ctx, uint8_t port, uint8_t pin_polarity) |
Expand 15 set input pin polarity function. | |
err_t | expand15_get_pin_config (expand15_t *ctx, uint8_t port, uint8_t *pin_config) |
Expand 15 get pin configuration function. | |
err_t | expand15_set_pin_as_in (expand15_t *ctx, uint8_t port, uint8_t pin_config) |
Expand 15 set pin as input function. | |
err_t | expand15_set_pin_as_out (expand15_t *ctx, uint8_t port, uint8_t pin_config) |
Expand 15 set pin as output function. | |
err_t | expand15_get_out_level (expand15_t *ctx, uint8_t port, uint16_t *pin_output_level) |
Expand 15 get output level function. | |
err_t | expand15_set_out_level (expand15_t *ctx, uint8_t port, uint16_t pin_output_level) |
Expand 15 set output level function. | |
err_t | expand15_set_out_pin_strength (expand15_t *ctx, uint8_t port, uint8_t pin, uint8_t strength) |
Expand 15 set pin output strength function. | |
err_t | expand15_set_en_pull_up_down (expand15_t *ctx, uint8_t port, uint8_t port_config) |
Expand 15 set enable pull up/down function. | |
err_t | expand15_get_en_pull_up_down (expand15_t *ctx, uint8_t port, uint8_t *port_config) |
Expand 15 get enable pull up/down function. | |
err_t | expand15_set_pull_up_down (expand15_t *ctx, uint8_t port, uint8_t pin_config) |
Expand 15 set pull up/down function. | |
err_t | expand15_get_pull_up_down (expand15_t *ctx, uint8_t port, uint8_t *pin_config) |
Expand 15 get pull up/down function. | |
err_t | expand15_set_int_mask (expand15_t *ctx, uint8_t port, uint8_t int_config) |
Expand 15 set interrupt mask function. | |
err_t | expand15_get_int_mask (expand15_t *ctx, uint8_t port, uint8_t *int_config) |
Expand 15 get interrupt mask function. | |
err_t | expand15_get_int_status (expand15_t *ctx, uint8_t port, uint8_t *int_status) |
Expand 15 get interrupt status function. | |
err_t | expand15_get_out_port_config (expand15_t *ctx, uint8_t *port0_cfg, uint8_t *port1_cfg) |
Expand 15 get output port configuration function. | |
err_t | expand15_set_out_port_config (expand15_t *ctx, uint8_t port0_cfg, uint8_t port1_cfg) |
Expand 15 set output port configuration function. | |
This file contains API for Expand 15 Click Driver.