slider2 2.0.0.0
|
This file contains API for Slider 2 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 | slider2_t |
Click ctx object definition. More... | |
struct | slider2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | SLIDER2_MAP_MIKROBUS(cfg, mikrobus) |
#define | SLIDER2_RETVAL uint8_t |
#define | SLIDER2_OK 0x00 |
#define | SLIDER2_INIT_ERROR 0xFF |
#define | SLIDER2_DEVICE_ENABLE 1 |
#define | SLIDER2_DEVICE_DISABLE 0 |
#define | SLIDER2_MAX_VOLTAGE_2_048V 1 |
#define | SLIDER2_MAX_VOLTAGE_4_096V 0 |
Typedefs | |
typedef uint16_t | slider2_data_t |
Analog data type. | |
Functions | |
void | slider2_cfg_setup (slider2_cfg_t *cfg) |
Config Object Initialization function. | |
SLIDER2_RETVAL | slider2_init (slider2_t *ctx, slider2_cfg_t *cfg) |
Initialization function. | |
void | slider2_default_cfg (slider2_t *ctx) |
Click Default Configuration function. | |
slider2_data_t | slider2_generic_read (slider2_t *ctx) |
Generic read function. | |
void | slider2_enable (slider2_t *ctx, uint8_t state) |
Setting state function. | |
void | slider2_set_reference (slider2_t *ctx, uint8_t ref) |
Setting reference function. | |
This file contains API for Slider 2 Click driver.