expand18
2.1.0.0
|
This file contains API for Expand 18 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | expand18_t |
Expand 18 Click context object. More... | |
struct | expand18_cfg_t |
Expand 18 Click configuration object. More... | |
Enumerations | |
enum | expand18_return_value_t { EXPAND18_OK = 0, EXPAND18_ERROR = -1 } |
Expand 18 Click return value data. More... | |
Functions | |
void | expand18_cfg_setup (expand18_cfg_t *cfg) |
Expand 18 configuration object setup function. More... | |
err_t | expand18_init (expand18_t *ctx, expand18_cfg_t *cfg) |
Expand 18 initialization function. More... | |
err_t | expand18_default_cfg (expand18_t *ctx) |
Expand 18 default configuration function. More... | |
err_t | expand18_generic_write (expand18_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Expand 18 data writing function. More... | |
err_t | expand18_generic_read (expand18_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Expand 18 data reading function. More... | |
err_t | expand18_write_register (expand18_t *ctx, uint8_t reg, uint8_t data_in) |
Expand 18 write register function. More... | |
err_t | expand18_read_register (expand18_t *ctx, uint8_t reg, uint8_t *data_out) |
Expand 18 read register function. More... | |
void | expand18_set_rst_pin (expand18_t *ctx, uint8_t state) |
Expand 18 set RST pin function. More... | |
void | expand18_reset_device (expand18_t *ctx) |
Expand 18 reset device function. More... | |
uint8_t | expand18_get_int_pin (expand18_t *ctx) |
Expand 18 get INT pin function. More... | |
err_t | expand18_set_pin_direction (expand18_t *ctx, uint8_t direction, uint8_t port, uint8_t pin_mask) |
Expand 18 set pin direction function. More... | |
err_t | expand18_set_all_pins_direction (expand18_t *ctx, uint8_t direction) |
Expand 18 set all pins direction function. More... | |
err_t | expand18_set_all_pins_value (expand18_t *ctx, uint8_t set_mask) |
Expand 18 set all pins value function. More... | |
err_t | expand18_set_pin_value (expand18_t *ctx, uint8_t port, uint8_t clr_mask, uint8_t set_mask) |
Expand 18 set pin value function. More... | |
err_t | expand18_read_port_value (expand18_t *ctx, uint8_t port, uint8_t *data_out) |
Expand 18 read port value function. More... | |
This file contains API for Expand 18 Click Driver.