thermo2 2.0.0.0
|
This file contains API for Thermo 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_one_wire.h"
Go to the source code of this file.
Data Structures | |
struct | thermo2_t |
Thermo 2 Click context object. More... | |
struct | thermo2_cfg_t |
Thermo 2 Click configuration object. More... | |
Enumerations | |
enum | thermo2_gpio_sel_t { THERMO2_GPIO_0 , THERMO2_GPIO_1 } |
Thermo 2 Click gpio selector. More... | |
enum | thermo2_return_value_t { THERMO2_OK = 0 , THERMO2_ERROR = -1 } |
Thermo 2 Click return value data. More... | |
Functions | |
void | thermo2_cfg_setup (thermo2_cfg_t *cfg) |
Thermo 2 configuration object setup function. | |
void | thermo2_gpio_selection (thermo2_cfg_t *cfg, thermo2_gpio_sel_t gpio_sel) |
Thermo 2 driver interface setup function. | |
err_t | thermo2_init (thermo2_t *ctx, thermo2_cfg_t *cfg) |
Thermo 2 initialization function. | |
err_t | thermo2_default_cfg (thermo2_t *ctx) |
Thermo 2 default configuration function. | |
err_t | thermo2_check_communication (thermo2_t *ctx) |
Thermo 2 check communication function. | |
err_t | thermo2_select_device (thermo2_t *ctx) |
Thermo 2 select device function. | |
err_t | thermo2_start_measurement (thermo2_t *ctx) |
Thermo 2 start measurement function. | |
err_t | thermo2_read_scratchpad (thermo2_t *ctx, uint8_t *scratchpad) |
Thermo 2 read scratchpad function. | |
err_t | thermo2_write_scratchpad (thermo2_t *ctx, uint8_t temp_high, uint8_t temp_low, uint8_t config) |
Thermo 2 write scratchpad function. | |
err_t | thermo2_read_temperature (thermo2_t *ctx, float *temperature) |
Thermo 2 read temperature function. | |
This file contains API for Thermo 2 Click Driver.
enum thermo2_gpio_sel_t |