mux2 2.0.0.0
|
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. | |
void mux2_active_mux_channel | ( | mux2_t * | ctx, |
uint8_t | sel_ch ) |
Seelect active MUX channel.
ctx | Click 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.
void mux2_cfg_setup | ( | mux2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mux2_device_disable | ( | mux2_t * | ctx | ) |
Disable MUX device function.
ctx | Click object. |
@description This function disable MUX device for Mux 2 click.
void mux2_device_enable | ( | mux2_t * | ctx | ) |
Enable MUX device function.
ctx | Click object. |
@description This function enable MUX device for Mux 2 click.
MUX2_RETVAL mux2_init | ( | mux2_t * | ctx, |
mux2_cfg_t * | cfg ) |
Initialization function.
mux2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.