mux 2.0.0.0
Public function

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

Function Documentation

◆ mux_active_mux_channel()

void mux_active_mux_channel ( mux_t * ctx,
uint8_t sel_ch )

Seelect active MUX channel.

Parameters
ctxClick object.
sel_ch
Currently active channel:
0x01 ( MUX_CHANNEL_1A_AND_1B ) : Enable channel 1A and 1B;
0x02 ( MUX_CHANNEL_2A_AND_2B ) : Enable channel 2A and 2B;
0x03 ( MUX_CHANNEL_3A_AND_3B ) : Enable channel 3A and 3B;
0x04 ( MUX_CHANNEL_4A_AND_4B ) : Enable channel 4A and 4B;

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

◆ mux_cfg_setup()

void mux_cfg_setup ( mux_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.

◆ mux_device_disable()

void mux_device_disable ( mux_t * ctx)

Disable MUX device function.

Parameters
ctxClick object.

@description This function disable MUX device for Mux click.

◆ mux_device_enable()

void mux_device_enable ( mux_t * ctx)

Enable MUX device function.

Parameters
ctxClick object.

@description This function enable MUX device for Mux click.

◆ mux_init()

MUX_RETVAL mux_init ( mux_t * ctx,
mux_cfg_t * cfg )

Initialization function.

Parameters
muxClick object.
cfgClick configuration structure.

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