htu21d 2.0.0.0
|
This file contains API for HTU21D Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | htu21d_t |
Click ctx object definition. More... | |
struct | htu21d_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | htu21d_cfg_setup (htu21d_cfg_t *cfg) |
Config Object Initialization function. | |
HTU21D_RETVAL | htu21d_init (htu21d_t *ctx, htu21d_cfg_t *cfg) |
Initialization function. | |
void | htu21d_generic_write (htu21d_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | htu21d_generic_read (htu21d_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint32_t | htu21d_read_data (htu21d_t *ctx, uint8_t reg_adr) |
Generic read 24-bit data function. | |
void | htu21d_send_cmd (htu21d_t *ctx, uint8_t cmd_byte) |
Send command function. | |
float | htu21d_get_temperature (htu21d_t *ctx) |
Get temperature value function. | |
float | htu21d_get_humidity (htu21d_t *ctx) |
Get humidity value function. | |
This file contains API for HTU21D Click driver.