RRH46410 Firmware Documentation
hsxxxx.h
Go to the documentation of this file.
1 
10 #ifndef HSXXXX_H
11 #define HSXXXX_H
12 
13 #include <stdbool.h>
14 #include "hal/hal.h"
15 
19 typedef struct {
20  float temperature;
21  float humidity;
23 
27 typedef struct {
29  uint8_t i2cAddress;
30 } HSxxxx_t;
31 
48 int
49 HSxxxx_Init ( HSxxxx_t* sensor, Interface_t* hal );
50 
67 int
68 HSxxxx_Measure ( HSxxxx_t* sensor, HSxxxx_Results_t* results );
69 
83 char const*
84 HSxxxx_Name ( HSxxxx_t* sensor );
85 
86 #endif /* HSXXXX_H */
87 
Renesas Environmental Sensor HAL definitions.
Data structure holding information required for HSxxxx API operation.
Definition: hsxxxx.h:27
Data structure holding humidity/temperature results.
Definition: hsxxxx.h:19
Interface_t * interface
Definition: hsxxxx.h:28
char const * HSxxxx_Name(HSxxxx_t *sensor)
Return the temperature/humidity sensor type name.
int HSxxxx_Init(HSxxxx_t *sensor, Interface_t *hal)
Initialize the sensor object.
float humidity
Definition: hsxxxx.h:21
uint8_t i2cAddress
Definition: hsxxxx.h:29
int HSxxxx_Measure(HSxxxx_t *sensor, HSxxxx_Results_t *results)
Perform one temperature measurement.
A structure of pointers to hardware specific functions.
Definition: hal.h:69
float temperature
Definition: hsxxxx.h:20