LoRa-BLE-Sensor
Loading...
Searching...
No Matches
sensor_id.h
Go to the documentation of this file.
1
14#ifndef SENSOR_ID_H
15#define SENSOR_ID_H
16
21 SENSOR_1 = 0,
22 SENSOR_2,
23 SENSOR_INDEX_LIMIT // This is used to get the size of the enum
24};
25
30 /* No sensor configuration is set. */
31 NULL_SENSOR = 0,
32 /* Sensor is set to read from voltage_read pin. */
33 VOLTAGE_SENSOR,
34 /* Sensor is set to read from current_read pin. */
35 CURRENT_SENSOR,
36 /* Sensor is set to read low pulses from d1 pin. */
37 PULSE_SENSOR,
38 /* Used to denote size of enum. */
39 SENSOR_TYPE_LIMIT
40};
41
46 SENSOR_POWER_1 = 0,
47 SENSOR_POWER_2,
48 SENSOR_POWER_INDEX_LIMIT // This is used to get the size of the enum
49};
50
55 SENSOR_VOLTAGE_OFF = 0,
56 SENSOR_VOLTAGE_3V3,
57 SENSOR_VOLTAGE_5V,
58 SENSOR_VOLTAGE_6V,
59 SENSOR_VOLTAGE_12V,
60 SENSOR_VOLTAGE_24V,
61 SENSOR_VOLTAGE_INDEX_LIMIT
62};
63
64#endif
sensor_id
Sensor identifiers.
Definition sensor_id.h:20
sensor_power_id
Sensor power identifiers.
Definition sensor_id.h:45
sensor_types
Types of sensors that can be configured.
Definition sensor_id.h:29
sensor_voltage
Voltage levels for sensor power.
Definition sensor_id.h:54