dht22
2.0.0.0
|
This file contains API for DHT22 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | dht22_t |
Click ctx object definition. More... | |
struct | dht22_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DHT22_MAP_MIKROBUS(cfg, mikrobus) |
#define | DHT22_RETVAL uint8_t |
#define | DHT22_OK 0x00 |
#define | DHT22_INIT_ERROR 0xFF |
Functions | |
void | dht22_cfg_setup (dht22_cfg_t *cfg) |
Config Object Initialization function. More... | |
DHT22_RETVAL | dht22_init (dht22_t *ctx, dht22_cfg_t *cfg) |
Initialization function. More... | |
void | dht22_start_signal (dht22_t *ctx) |
Sends start signal to the sensor function. More... | |
uint8_t | dht22_check_sensor_response (dht22_t *ctx) |
Release the bus to wait the sensor response signal function. More... | |
uint32_t | dht22_get_sensor_data (dht22_t *ctx) |
Reading data from the sensor function. More... | |
uint16_t | dht22_calculate_temperature (dht22_t *ctx, uint32_t sensor_data) |
Calculate the temperature data function. More... | |
float | dht22_calc_temp_c (dht22_t *ctx, uint32_t sensor_data) |
Calculate the temperature in degrees Celsius function. More... | |
uint16_t | dht22_calculate_humidity (dht22_t *ctx, uint32_t sensor_data) |
Calculate the humidity data function. More... | |
float | dht22_calc_humidity (dht22_t *ctx, uint32_t sensor_data) |
Calculate the humidity in percentage function. More... | |
void | cs_input (dht22_t *ctx, dht22_cfg_t *cfg) |
Cs input. More... | |
void | cs_output (dht22_t *ctx, dht22_cfg_t *cfg) |
Cs output. More... | |
This file contains API for DHT22 Click driver.