vacuum 2.0.0.0
|
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. | |
void vacuum_calibration | ( | vacuum_t * | ctx | ) |
Sensor calibration.
ctx | Click object. |
@description This function sensor calibration.
void vacuum_cfg_setup | ( | vacuum_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void vacuum_default_cfg | ( | vacuum_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Vacuum click.
float vacuum_get_percentage_of_vacuum | ( | vacuum_t * | ctx | ) |
Function for converting ADC value to percentage of Vacuum.
ctx | Click object. |
@description This function gets percentage of vacuum.
float vacuum_get_pressure | ( | vacuum_t * | ctx | ) |
Function for converting ADC value to pressure data.
ctx | Click object. |
@description This function gets pressure.
float vacuum_get_voltage | ( | vacuum_t * | ctx | ) |
Voltage reading function.
ctx | Click object. |
@description This function gets voltage.
VACCUM_RETVAL vacuum_init | ( | vacuum_t * | ctx, |
vacuum_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t vacuum_read_data | ( | vacuum_t * | ctx | ) |
Function for reads 12 bit ADC data.
ctx | Click object. |
@description This function reads data.