manometer 2.0.0.0
|
This file contains API for Manometer 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 | manometer_t |
Click ctx object definition. More... | |
struct | manometer_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MANOMETER_MAP_MIKROBUS(cfg, mikrobus) |
#define | MANOMETER_RETVAL uint8_t |
#define | MANOMETER_OK 0x00 |
#define | MANOMETER_INIT_ERROR 0xFF |
#define | MANOMETER_CMD_RESET 0x1E |
#define | MANOMETER_CMD_ADC_READ 0x00 |
#define | MANOMETER_CMD_ADC_CONV 0x40 |
#define | MANOMETER_CMD_ADC_D1 0x00 |
#define | MANOMETER_CMD_ADC_D2 0x10 |
#define | MANOMETER_CMD_ADC_256 0x00 |
#define | MANOMETER_CMD_ADC_512 0x02 |
#define | MANOMETER_CMD_ADC_1024 0x04 |
#define | MANOMETER_CMD_ADC_2048 0x06 |
#define | MANOMETER_CMD_ADC_4096 0x08 |
#define | MANOMETER_CMD_PROM_RD 0xA0 |
#define | MANOMETER_OUTPUT_ADDRESS 0x38 |
#define | MANOMETER_I2C_ADDRESS 0x38 |
Functions | |
void | manometer_cfg_setup (manometer_cfg_t *cfg) |
Config Object Initialization function. | |
MANOMETER_RETVAL | manometer_init (manometer_t *ctx, manometer_cfg_t *cfg) |
Initialization function. | |
void | manometer_default_cfg (manometer_t *ctx) |
Click Default Configuration function. | |
void | manometer_generic_write (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | manometer_generic_read (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | manometer_get_pressure (manometer_t *ctx) |
Function read 16-bit data and convert to pressure in mbar. | |
float | manometer_get_temperature (manometer_t *ctx) |
Function read 11-bit data and convert to temperature in degrees Celsius [ �C ]. | |
This file contains API for Manometer Click driver.