mux 2.0.0.0
mux.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  mux_t
 Click ctx object definition. More...
 
struct  mux_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MUX_MAP_MIKROBUS(cfg, mikrobus)
 
#define MUX_RETVAL   uint8_t
 
#define MUX_OK   0x00
 
#define MUX_INIT_ERROR   0xFF
 
#define MUX_CHANNEL_1A_AND_1B   0x01
 
#define MUX_CHANNEL_2A_AND_2B   0x02
 
#define MUX_CHANNEL_3A_AND_3B   0x03
 
#define MUX_CHANNEL_4A_AND_4B   0x04
 
#define MUX_CHANNEL_END   0x05
 

Functions

void mux_cfg_setup (mux_cfg_t *cfg)
 Config Object Initialization function.
 
MUX_RETVAL mux_init (mux_t *ctx, mux_cfg_t *cfg)
 Initialization function.
 
void mux_device_enable (mux_t *ctx)
 Enable MUX device function.
 
void mux_device_disable (mux_t *ctx)
 Disable MUX device function.
 
void mux_active_mux_channel (mux_t *ctx, uint8_t sel_ch)
 Seelect active MUX channel.
 

Detailed Description

This file contains API for MUX Click driver.