thermok 2.0.0.0
|
This file contains API for Thermo K 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 | thermok_t |
Click ctx object definition. More... | |
struct | thermok_cfg_t |
Click configuration structure definition. More... | |
struct | thermok_alert_t |
Alert structure definition. More... | |
Functions | |
void | thermok_cfg_setup (thermok_cfg_t *cfg) |
Config Object Initialization function. | |
THERMOK_RETVAL | thermok_init (thermok_t *ctx, thermok_cfg_t *cfg) |
Initialization function. | |
void | thermok_generic_write (thermok_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | thermok_generic_read (thermok_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | thermok_get_device_info (thermok_t *ctx) |
Functions for read device info. | |
void | thermok_get_status (thermok_t *ctx, thermok_alert_t *status) |
Get status. | |
float | thermok_get_temperature (thermok_t *ctx, uint8_t reg, uint8_t temp_format) |
Temperature data. | |
void | thermok_set_register_cfg (thermok_t *ctx, uint8_t reg_cfg, uint8_t cfg_data) |
Set register config. | |
uint8_t | thermok_get_alert_state_1 (thermok_t *ctx) |
Alert 1 pin state. | |
uint8_t | thermok_get_alert_state_2 (thermok_t *ctx) |
Alert 2 pin state. | |
uint8_t | thermok_get_alert_state_3 (thermok_t *ctx) |
Alert 3 pin state. | |
uint8_t | thermok_get_alert_state_4 (thermok_t *ctx) |
Alert 4 pin state. | |
This file contains API for Thermo K Click driver.