mux2 2.0.0.0
Public function

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

Function Documentation

◆ mux2_active_mux_channel()

void mux2_active_mux_channel ( mux2_t * ctx,
uint8_t sel_ch )

Seelect active MUX channel.

Parameters
ctxClick object.
sel_ch
Currently active channel:
0x01 ( MUX2_CHANNEL_S1 ) : Enable channel S1;
0x02 ( MUX2_CHANNEL_S2 ) : Enable channel S2;
0x03 ( MUX2_CHANNEL_S3 ) : Enable channel S3;
0x04 ( MUX2_CHANNEL_S4 ) : Enable channel S4;
0x05 ( MUX2_CHANNEL_S5 ) : Enable channel S5;
0x06 ( MUX2_CHANNEL_S6 ) : Enable channel S6;
0x07 ( MUX2_CHANNEL_S7 ) : Enable channel S7;
0x08 ( MUX2_CHANNEL_S8 ) : Enable channel S8;

@description This function active sel_ch MUX channel for Mux 2 click.

◆ mux2_cfg_setup()

void mux2_cfg_setup ( mux2_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.

◆ mux2_device_disable()

void mux2_device_disable ( mux2_t * ctx)

Disable MUX device function.

Parameters
ctxClick object.

@description This function disable MUX device for Mux 2 click.

◆ mux2_device_enable()

void mux2_device_enable ( mux2_t * ctx)

Enable MUX device function.

Parameters
ctxClick object.

@description This function enable MUX device for Mux 2 click.

◆ mux2_init()

MUX2_RETVAL mux2_init ( mux2_t * ctx,
mux2_cfg_t * cfg )

Initialization function.

Parameters
mux2Click object.
cfgClick configuration structure.

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