|
void | hih_mr (void) |
| Humidity and Temperature Measurement Request. Mehr ...
|
|
uint8_t | hih_df (uint16_t *hum, uint16_t *tmp) |
| Humidity and Temperature Data Fetch. Mehr ...
|
|
uint8_t | hih_scanaddr (void) |
| Scan the i2C Address, only for a Single Device on Bus. Mehr ...
|
|
void | hih_setaddr (uint8_t addr) |
| Set the i2C Address. Mehr ...
|
|
uint8_t | hih_getrht (float *rh, float *t) |
| Make a complete Measurement Cycle and convert RH in % and T in C° Mehr ...
|
|
Communication with the Honeywell HumidIconTM Digital Humidity/Temperature Sensors. Use's the I2C Master library from Peter Fleury pfleu.nosp@m.ry@g.nosp@m.mx.ch http://jump.to/fleury
Example usage:
void main(void){
float hr, t;
if(status<0x40){ printf("RH = %f T = %f", rh, t);}
else {printf("ERROR %i,status);}
}
uint8_t hih_df |
( |
uint16_t * |
hum, |
|
|
uint16_t * |
tmp |
|
) |
| |
Humidity and Temperature Data Fetch.
- Parameter
-
hum | a Pointer to Humidity Data 14 Bit |
tmp | a Pointer to Temperature Data 14 Bit |
- Rückgabewerte
-
0 | Normal Operation |
1 | Stale Data |
2 | Device in Command Mode |
3 | Not Used |
uint8_t hih_getrht |
( |
float * |
rh, |
|
|
float * |
t |
|
) |
| |
Make a complete Measurement Cycle and convert RH in % and T in C°
- Parameter
-
rh | a Pointer to Relativ Humidity Data in % |
t | a Pointer to Temperature Data in C° |
- Rückgabewerte
-
<0x40 | Normal Operation |
0x7F | Stale Data |
0xBF | Device in Command Mode |
0xFF | Not Used |
Humidity and Temperature Measurement Request.
uint8_t hih_scanaddr |
( |
void |
| ) |
|
Scan the i2C Address, only for a Single Device on Bus.
- Rückgabe
- i2c Address
void hih_setaddr |
( |
uint8_t |
addr | ) |
|
Set the i2C Address.
- Parameter
-