expand4 2.0.0.0
|
This file contains API for Expand 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | expand4_t |
Click ctx object definition. More... | |
struct | expand4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | EXPAND4_MAP_MIKROBUS(cfg, mikrobus) |
#define | EXPAND4_RETVAL uint8_t |
#define | EXPAND4_OK 0x00 |
#define | EXPAND4_INIT_ERROR 0xFF |
#define | EXPAND4_D0 0x01 |
#define | EXPAND4_D1 0x02 |
#define | EXPAND4_D2 0x04 |
#define | EXPAND4_D3 0x08 |
#define | EXPAND4_D4 0x10 |
#define | EXPAND4_D5 0x20 |
#define | EXPAND4_D6 0x40 |
#define | EXPAND4_D7 0x80 |
Functions | |
void | expand4_cfg_setup (expand4_cfg_t *cfg) |
Config Object Initialization function. | |
EXPAND4_RETVAL | expand4_init (expand4_t *ctx, expand4_cfg_t *cfg) |
Initialization function. | |
void | expand4_enable_output (expand4_t *ctx) |
Enable output function. | |
void | expand4_disable_output (expand4_t *ctx) |
Disable output function. | |
void | expand4_reset (expand4_t *ctx) |
Clear register function. | |
void | expand4_write_data (expand4_t *ctx, uint8_t write_command) |
void | expand4_turn_on_by_position (expand4_t *ctx, uint8_t position) |
This file contains API for Expand 4 Click driver.