analogmux 2.0.0.0
|
This file contains API for Analog MUX 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 | analogmux_t |
Click ctx object definition. More... | |
struct | analogmux_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | ANALOGMUX_MAP_MIKROBUS(cfg, mikrobus) |
#define | ANALOGMUX_RETVAL uint8_t |
#define | ANALOGMUX_OK 0x00 |
#define | ANALOGMUX_INIT_ERROR 0xFF |
#define | ANALOGMUX_CHANNEL_0 0x00 |
#define | ANALOGMUX_CHANNEL_1 0x01 |
#define | ANALOGMUX_CHANNEL_2 0x02 |
#define | ANALOGMUX_CHANNEL_3 0x03 |
#define | ANALOGMUX_CHANNEL_4 0x04 |
#define | ANALOGMUX_CHANNEL_5 0x05 |
#define | ANALOGMUX_CHANNEL_6 0x06 |
#define | ANALOGMUX_CHANNEL_7 0x07 |
#define | ANALOGMUX_CHANNEL_8 0x08 |
#define | ANALOGMUX_CHANNEL_9 0x09 |
#define | ANALOGMUX_CHANNEL_10 0x10 |
#define | ANALOGMUX_CHANNEL_11 0x11 |
#define | ANALOGMUX_CHANNEL_12 0x12 |
#define | ANALOGMUX_CHANNEL_13 0x13 |
#define | ANALOGMUX_CHANNEL_14 0x14 |
#define | ANALOGMUX_CHANNEL_15 0x15 |
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. | |
This file contains API for Analog MUX Click driver.