analogmux4 2.0.0.0
|
This file contains API for Analog MUX 4 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 | analogmux4_t |
Analog MUX 4 Click context object. More... | |
struct | analogmux4_cfg_t |
Analog MUX 4 Click configuration object. More... | |
Macros | |
#define | ANALOGMUX4_CHANNEL_0 0x00 |
Analog MUX 4 ADC channel number. | |
#define | ANALOGMUX4_CHANNEL_1 0x01 |
#define | ANALOGMUX4_CHANNEL_2 0x02 |
#define | ANALOGMUX4_CHANNEL_3 0x03 |
#define | ANALOGMUX4_CHANNEL_4 0x04 |
#define | ANALOGMUX4_CHANNEL_5 0x05 |
#define | ANALOGMUX4_CHANNEL_6 0x06 |
#define | ANALOGMUX4_CHANNEL_7 0x07 |
#define | ANALOGMUX4_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | analogmux4_return_value_t { ANALOGMUX4_OK = 0 , ANALOGMUX4_ERROR = -1 } |
Analog MUX 4 Click return value data. More... | |
Functions | |
void | analogmux4_cfg_setup (analogmux4_cfg_t *cfg) |
Analog MUX 4 configuration object setup function. | |
err_t | analogmux4_init (analogmux4_t *ctx, analogmux4_cfg_t *cfg) |
Analog MUX 4 initialization function. | |
err_t | analogmux4_read_an_pin_value (analogmux4_t *ctx, uint16_t *data_out) |
Analog MUX 4 read AN pin value function. | |
err_t | analogmux4_read_an_pin_voltage (analogmux4_t *ctx, float *data_out) |
Analog MUX 4 read AN pin voltage level function. | |
void | analogmux4_enable_input (analogmux4_t *ctx) |
Analog MUX 4 enable input function. | |
void | analogmux4_disable_input (analogmux4_t *ctx) |
Analog MUX 4 disable input function. | |
void | analogmux4_set_input_channel (analogmux4_t *ctx, uint8_t channel) |
Analog MUX 4 set input channel function. | |
This file contains API for Analog MUX 4 Click Driver.