mux 2.0.0.0
|
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. | |
void mux_active_mux_channel | ( | mux_t * | ctx, |
uint8_t | sel_ch ) |
Seelect active MUX channel.
ctx | Click 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.
void mux_cfg_setup | ( | mux_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mux_device_disable | ( | mux_t * | ctx | ) |
Disable MUX device function.
ctx | Click object. |
@description This function disable MUX device for Mux click.
void mux_device_enable | ( | mux_t * | ctx | ) |
Enable MUX device function.
ctx | Click object. |
@description This function enable MUX device for Mux click.
MUX_RETVAL mux_init | ( | mux_t * | ctx, |
mux_cfg_t * | cfg ) |
Initialization function.
mux | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.