templog2 2.0.0.0
|
This file contains API for Temp-Log 2 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | templog2_t |
Click context object definition. More... | |
struct | templog2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | templog2_cfg_setup (templog2_cfg_t *cfg) |
Configuration Object Setup function. | |
TEMPLOG2_RETVAL | templog2_init (templog2_t *ctx, templog2_cfg_t *cfg) |
Click Initialization function. | |
void | templog2_default_config (templog2_t *ctx) |
Click Default Configuration function. | |
TEMPLOG2_RETVAL | templog2_write_reg (templog2_t *ctx, uint8_t reg_addr, uint16_t transfer_data) |
Write Register function. | |
TEMPLOG2_RETVAL | templog2_read_reg (templog2_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Read Register function. | |
uint8_t | templog2_data_ready (templog2_t *ctx) |
Data Ready function. | |
uint8_t | templog2_check_alert (templog2_t *ctx) |
Alert Checking function. | |
float | templog2_read_temp (templog2_t *ctx) |
Read Temperature function. | |
TEMPLOG2_RETVAL | templog2_set_mode (templog2_t *ctx, uint8_t op_mode, uint8_t alert_mode) |
Mode Setting function. | |
TEMPLOG2_RETVAL | templog2_write_eeprom (templog2_t *ctx, uint8_t eeprom_addr, uint16_t data_in) |
EEPROM Writing function. | |
void | templog2_reset (templog2_t *ctx) |
Reset function. | |
This file contains API for Temp-Log 2 Click driver.