analogmux 2.0.0.0
|
Functions | |
void | analogmux_cfg_setup (analogmux_cfg_t *cfg) |
Config Object Initialization function. | |
ANALOGMUX_RETVAL | analogmux_init (analogmux_t *ctx, analogmux_cfg_t *cfg) |
Initialization function. | |
uint16_t | analogmux_generic_read (analogmux_t *ctx) |
Generic read function. | |
float | analogmux_generic_read_voltage (analogmux_t *ctx) |
Generic read voltage function. | |
void | analogmux_set_channel (analogmux_t *ctx, uint8_t cfg) |
Set channel function. | |
void analogmux_cfg_setup | ( | analogmux_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t analogmux_generic_read | ( | analogmux_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
float analogmux_generic_read_voltage | ( | analogmux_t * | ctx | ) |
Generic read voltage function.
ctx | Click object. |
@description This function read voltage value.
ANALOGMUX_RETVAL analogmux_init | ( | analogmux_t * | ctx, |
analogmux_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void analogmux_set_channel | ( | analogmux_t * | ctx, |
uint8_t | cfg ) |
Set channel function.
ctx | Click object. |
cfg | Configuration byte. |
@description This function sets the active channel on the MUX.