mux2 2.0.0.0
mux2.h File Reference

This file contains API for MUX 2 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  mux2_t
 Click ctx object definition. More...
 
struct  mux2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MUX2_MAP_MIKROBUS(cfg, mikrobus)
 
#define MUX2_RETVAL   uint8_t
 
#define MUX2_OK   0x00
 
#define MUX2_INIT_ERROR   0xFF
 
#define MUX2_CHANNEL_S1   0x01
 
#define MUX2_CHANNEL_S2   0x02
 
#define MUX2_CHANNEL_S3   0x03
 
#define MUX2_CHANNEL_S4   0x04
 
#define MUX2_CHANNEL_S5   0x05
 
#define MUX2_CHANNEL_S6   0x06
 
#define MUX2_CHANNEL_S7   0x07
 
#define MUX2_CHANNEL_S8   0x08
 
#define MUX2_CHANNEL_END   0x09
 

Functions

void mux2_cfg_setup (mux2_cfg_t *cfg)
 Config Object Initialization function.
 
MUX2_RETVAL mux2_init (mux2_t *ctx, mux2_cfg_t *cfg)
 Initialization function.
 
void mux2_device_enable (mux2_t *ctx)
 Enable MUX device function.
 
void mux2_device_disable (mux2_t *ctx)
 Disable MUX device function.
 
void mux2_active_mux_channel (mux2_t *ctx, uint8_t sel_ch)
 Seelect active MUX channel.
 

Detailed Description

This file contains API for MUX 2 Click driver.