dht22
2.0.0.0
|
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... | |
void cs_input | ( | dht22_t * | ctx, |
dht22_cfg_t * | cfg | ||
) |
Cs input.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes cs on input.
void cs_output | ( | dht22_t * | ctx, |
dht22_cfg_t * | cfg | ||
) |
Cs output.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes cs on output.
float dht22_calc_humidity | ( | dht22_t * | ctx, |
uint32_t | sensor_data | ||
) |
Calculate the humidity in percentage function.
ctx | Click object. |
sensor_data | 32-bit read value from the sensor ( temperature and humidity data ) |
The function calculate the percentage of humidity [ % RH ] from sensor data reading from the sensor AM2302 on the DHT22 Click.
float dht22_calc_temp_c | ( | dht22_t * | ctx, |
uint32_t | sensor_data | ||
) |
Calculate the temperature in degrees Celsius function.
ctx | Click object. |
sensor_data | 32-bit read value from the sensor ( temperature and humidity data ) |
The function calculate the temperature in degrees Celsius [ C ] from sensor data reading from the sensor AM2302 on the DHT22 Click.
uint16_t dht22_calculate_humidity | ( | dht22_t * | ctx, |
uint32_t | sensor_data | ||
) |
Calculate the humidity data function.
ctx | Click object. |
sensor_data | 32-bit read value from the sensor ( temperature and humidity data ) |
The function calculate the humidity data from sensor data reading from the sensor AM2302 on the DHT22 Click.
uint16_t dht22_calculate_temperature | ( | dht22_t * | ctx, |
uint32_t | sensor_data | ||
) |
Calculate the temperature data function.
ctx | Click object. |
sensor_data | 32-bit read value from the sensor ( temperature and humidity data ) |
The function calculate the temperature data from sensor data reading from the sensor AM2302 on the DHT22 Click.
void dht22_cfg_setup | ( | dht22_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t dht22_check_sensor_response | ( | dht22_t * | ctx | ) |
Release the bus to wait the sensor response signal function.
ctx | Click object. |
The function release the bus to wait the sensor response signal from the sensor AM2302 on the DHT22 Click.
uint32_t dht22_get_sensor_data | ( | dht22_t * | ctx | ) |
Reading data from the sensor function.
ctx | Click object. |
The function reading data from the sensor AM2302 on the DHT22 Click.
DHT22_RETVAL dht22_init | ( | dht22_t * | ctx, |
dht22_cfg_t * | cfg | ||
) |
Initialization function.
dht22 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void dht22_start_signal | ( | dht22_t * | ctx | ) |
Sends start signal to the sensor function.
ctx | Click object. |
The function sends the start signal to the tempemperature and humidity sensor AM2302 on the DHT22 Click.