vacuum 2.0.0.0
|
This file contains API for Vacuum Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | vacuum_t |
Click ctx object definition. More... | |
struct | vacuum_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | VACCUM_MAP_MIKROBUS(cfg, mikrobus) |
#define | VACCUM_RETVAL uint8_t |
#define | VACCUM_OK 0x00 |
#define | VACCUM_INIT_ERROR 0xFF |
Functions | |
void | vacuum_cfg_setup (vacuum_cfg_t *cfg) |
Config Object Initialization function. | |
VACCUM_RETVAL | vacuum_init (vacuum_t *ctx, vacuum_cfg_t *cfg) |
Initialization function. | |
void | vacuum_default_cfg (vacuum_t *ctx) |
Click Default Configuration function. | |
uint16_t | vacuum_read_data (vacuum_t *ctx) |
Function for reads 12 bit ADC data. | |
float | vacuum_get_voltage (vacuum_t *ctx) |
Voltage reading function. | |
float | vacuum_get_pressure (vacuum_t *ctx) |
Function for converting ADC value to pressure data. | |
float | vacuum_get_percentage_of_vacuum (vacuum_t *ctx) |
Function for converting ADC value to percentage of Vacuum. | |
void | vacuum_calibration (vacuum_t *ctx) |
Sensor calibration. | |
This file contains API for Vacuum Click driver.