fever 2.0.0.0
|
This file contains API for Fever Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | fever_t |
Click ctx object definition. More... | |
struct | fever_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FEVER_MAP_MIKROBUS(cfg, mikrobus) |
#define | FEVER_RETVAL uint8_t |
#define | FEVER_OK 0x00 |
#define | FEVER_INIT_ERROR 0xFF |
#define | FEVER_TEMP 0x00 |
#define | FEVER_CONFIG 0x01 |
#define | FEVER_THYST 0x02 |
#define | FEVER_TOS 0x03 |
#define | FEVER_SHUTDOWN 0x01 |
#define | FEVER_POWERUP 0xFE |
#define | FEVER_INTERUPT_MODE 0x02 |
#define | FEVER_COMPARATOR_MODE 0xFD |
#define | FEVER_OS_ACTIVE_HIGH 0x04 |
#define | FEVER_OS_ACTIVE_LOW 0xFB |
#define | FEVER_FAULT_QUEUE_1 0xE7 |
#define | FEVER_FAULT_QUEUE_2 0x08 |
#define | FEVER_FAULT_QUEUE_4 0x10 |
#define | FEVER_FAULT_QUEUE_6 0x18 |
#define | FEVER_EXTENDED_DATA_FORMAT 0x20 |
#define | FEVER_NORMAL_DATA_FORMAT 0xDF |
#define | FEVER_TIMEOUT_DISABLE 0x40 |
#define | FEVER_TIMEOUT_ENABLE 0xBF |
#define | FEVER_ONE_SHOT_MEASURE 0x80 |
Functions | |
void | fever_cfg_setup (fever_cfg_t *cfg) |
Config Object Initialization function. | |
FEVER_RETVAL | fever_init (fever_t *ctx, fever_cfg_t *cfg) |
Initialization function. | |
void | fever_default_cfg (fever_t *ctx) |
Click Default Configuration function. | |
void | fever_generic_write (fever_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | fever_generic_read (fever_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | fever_get_temperature (fever_t *ctx) |
Get temperature. | |
This file contains API for Fever Click driver.