mux3 2.0.0.0
Public function

Functions

void mux3_cfg_setup (mux3_cfg_t *cfg)
 Config Object Initialization function.
 
MUX3_RETVAL mux3_init (mux3_t *ctx, mux3_cfg_t *cfg)
 Initialization function.
 
void mux3_set_channel (mux3_t *ctx, uint8_t select_channel)
 Set active MUX channel function.
 

Detailed Description

Function Documentation

◆ mux3_cfg_setup()

void mux3_cfg_setup ( mux3_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ mux3_init()

MUX3_RETVAL mux3_init ( mux3_t * ctx,
mux3_cfg_t * cfg )

Initialization function.

Parameters
mux3Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ mux3_set_channel()

void mux3_set_channel ( mux3_t * ctx,
uint8_t select_channel )

Set active MUX channel function.

Parameters
ctxClick object.
select_channelCurrently active channel:
  • 0x00 ( MUX3_DISABLE_ALL_CHANNELS ): Disable all channels;
  • 0x01 ( MUX3_ENABLE_CHANNEL_S1 ) : Enable channel S1;
  • 0x02 ( MUX3_ENABLE_CHANNEL_S2 ) : Enable channel S2;
  • 0x03 ( MUX3_ENABLE_CHANNEL_S3 ) : Enable channel S3;
  • 0x04 ( MUX3_ENABLE_CHANNEL_S4 ) : Enable channel S4;
  • 0x05 ( MUX3_ENABLE_CHANNEL_S5 ) : Enable channel S5;
  • 0x06 ( MUX3_ENABLE_CHANNEL_S6 ) : Enable channel S6;
  • 0x07 ( MUX3_ENABLE_CHANNEL_S7 ) : Enable channel S7;
  • 0x08 ( MUX3_ENABLE_CHANNEL_S8 ) : Enable channel S8;

@description Function enable MUX channel of the TMUX1208 Bidirectional 8-Channel Multiplexer on the MUX 3 Click board.