ammonia 2.0.0.0
|
This file contains API for Ammonia Click driver. More...
#include "drv_analog_in.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | ammonia_t |
Click ctx object definition. More... | |
struct | ammonia_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | AMMONIA_MAP_MIKROBUS(cfg, mikrobus) |
#define | AMMONIA_OK 0 |
#define | AMMONIA_INIT_ERROR (-1) |
Enumerations | |
enum | ammonia_adc_sel_t { AMMONIA_ADC_SEL_AN , AMMONIA_ADC_SEL_SPI } |
Click AD conversion type selectors. More... | |
Functions | |
void | ammonia_cfg_setup (ammonia_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | ammonia_init (ammonia_t *ctx, ammonia_cfg_t *cfg) |
Initialization function. | |
err_t | ammonia_read_signal_voltage (ammonia_t *ctx, float *data_out) |
Measurement Voltage Read function. | |
err_t | ammonia_read_measurement (ammonia_t *ctx, uint16_t *data_out) |
Measurement Read function. | |
This file contains API for Ammonia Click driver.