analogmux5 2.0.0.0
|
This file contains API for Analog MUX 5 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | analogmux5_t |
Analog MUX 5 Click context object. More... | |
struct | analogmux5_cfg_t |
Analog MUX 5 Click configuration object. More... | |
Macros | |
#define | ANALOGMUX5_SEL_CH_1 0x01 |
List of Muxs of Analog MUX 5 Click driver. | |
#define | ANALOGMUX5_SEL_CH_2 0x02 |
#define | ANALOGMUX5_SEL_CH_3 0x03 |
#define | ANALOGMUX5_SEL_CH_4 0x04 |
#define | ANALOGMUX5_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | analogmux5_return_value_t { ANALOGMUX5_OK = 0 , ANALOGMUX5_ERROR = -1 } |
Analog MUX 5 Click return value data. More... | |
Functions | |
void | analogmux5_cfg_setup (analogmux5_cfg_t *cfg) |
Analog MUX 5 configuration object setup function. | |
err_t | analogmux5_init (analogmux5_t *ctx, analogmux5_cfg_t *cfg) |
Analog MUX 5 initialization function. | |
err_t | analogmux5_default_cfg (analogmux5_t *ctx) |
Analog MUX 5 default configuration function. | |
err_t | analogmux5_read_an_pin_value (analogmux5_t *ctx, uint16_t *data_out) |
Analog MUX 5 read AN pin value function. | |
err_t | analogmux5_read_an_pin_voltage (analogmux5_t *ctx, float *data_out) |
Analog MUX 5 read AN pin voltage level function. | |
void | analogmux5_enable (analogmux5_t *ctx) |
Analog MUX 5 enable function. | |
void | analogmux5_disable (analogmux5_t *ctx) |
Analog MUX 5 disable function. | |
err_t | analogmux5_select_ch (analogmux5_t *ctx, uint8_t ch_select) |
Analog MUX 5 set channel function. | |
This file contains API for Analog MUX 5 Click Driver.