pollution 2.0.0.0
|
This file contains API for Pollution 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 | pollution_t |
Click ctx object definition. More... | |
struct | pollution_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | POLLUTION_MAP_MIKROBUS(cfg, mikrobus) |
#define | POLLUTION_RETVAL uint8_t |
#define | POLLUTION_OK 0x00 |
#define | POLLUTION_INIT_ERROR 0xFF |
Typedefs | |
typedef uint16_t | pollution_data_t |
Analog data type. | |
Functions | |
void | pollution_cfg_setup (pollution_cfg_t *cfg) |
Config Object Initialization function. | |
POLLUTION_RETVAL | pollution_init (pollution_t *ctx, pollution_cfg_t *cfg) |
Initialization function. | |
void | pollution_default_cfg (pollution_t *ctx) |
Click Default Configuration function. | |
pollution_data_t | pollution_generic_read (pollution_t *ctx) |
Generic read function. | |
void | pollution_enable (pollution_t *ctx) |
Enable sensor function. | |
void | pollution_disable (pollution_t *ctx) |
Disable sensor function. | |
void | pollution_reset (pollution_t *ctx) |
Reset sensor function. | |
float | pollution_measure_load_voltage (pollution_t *ctx) |
Measure load voltage form ADC function. | |
float | pollution_get_resistance (pollution_t *ctx) |
Get the resistance of the sensor function. | |
float | pollution_get_corrected_resistance (pollution_t *ctx) |
Get the corrected resistance of the sensor function. | |
This file contains API for Pollution Click driver.