2 * rd_sensors.h: Include file used to read sensors statistics
3 * (C) 1999-2022 by Sebastien Godard (sysstat <at> orange.fr)
10 ***************************************************************************
11 * Definitions of structures for sensors statistics
12 ***************************************************************************
16 * Structure for fan statistics.
18 struct stats_pwr_fan {
19 double rpm __attribute__ ((aligned (8)));
20 double rpm_min __attribute__ ((aligned (8)));
21 char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
24 #define STATS_PWR_FAN_SIZE (sizeof(struct stats_pwr_fan))
25 #define STATS_PWR_FAN_ULL 2
26 #define STATS_PWR_FAN_UL 0
27 #define STATS_PWR_FAN_U 0
30 * Structure for device temperature statistics.
32 struct stats_pwr_temp {
33 double temp __attribute__ ((aligned (8)));
34 double temp_min __attribute__ ((aligned (8)));
35 double temp_max __attribute__ ((aligned (8)));
36 char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
39 #define STATS_PWR_TEMP_SIZE (sizeof(struct stats_pwr_temp))
40 #define STATS_PWR_TEMP_ULL 3
41 #define STATS_PWR_TEMP_UL 0
42 #define STATS_PWR_TEMP_U 0
45 * Structure for voltage inputs statistics.
48 double in __attribute__ ((aligned (8)));
49 double in_min __attribute__ ((aligned (8)));
50 double in_max __attribute__ ((aligned (8)));
51 char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
54 #define STATS_PWR_IN_SIZE (sizeof(struct stats_pwr_in))
55 #define STATS_PWR_IN_ULL 3
56 #define STATS_PWR_IN_UL 0
57 #define STATS_PWR_IN_U 0
60 ***************************************************************************
61 * Prototypes for functions used to read sensors statistics
62 ***************************************************************************
66 (struct stats_pwr_fan *, __nr_t);
68 (struct stats_pwr_temp *, __nr_t);
70 (struct stats_pwr_in *, __nr_t);
73 ***************************************************************************
74 * Prototypes for functions used to count number of items
75 ***************************************************************************
85 #endif /* _RD_SENSORS_H */