aquarium_control/
sensors.rs

1/* Copyright 2024 Uwe Martin
2
3Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
5The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
7THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8*/
9
10/// Contains the functionality for triggering regular DHT sensor communication and caching of data
11pub mod sensor_manager;
12
13/// Contains the functionality for triggering regular Atlas Scientific sensor communication and caching of data
14pub mod atlas_scientific;
15
16/// Contains communication with DHT sensor hardware
17pub mod dht;
18
19/// Contains management of GPIO pins
20pub mod gpio_handler;
21
22/// Contains communication with Atlas Scientific sensor via I2C interface
23pub mod i2c_interface;
24
25/// Contains the functionality for reading from DS18B20 sensor
26pub mod ds18b20;
27
28/// Contains the functionality for reading and postprocessing tank level switch position by reading GPIO pin state
29pub mod tank_level_switch;
30
31/// Contains error definition for Atlas Scientific sensor communication
32pub mod atlas_scientific_error;
33
34/// Contains error definition for DHT sensor communication
35pub mod dht_error;
36
37/// Contains error definition for DS18B20 sensor communication
38pub mod ds18b20_error;
39
40/// Contains error definition occurring in communication via I2C
41pub mod i2c_error;
42
43/// Container for channels used by atlas_scientific module
44pub mod atlas_scientific_channels;
45
46/// Container for channels used by i2c_interface module
47pub mod i2c_interface_channels;
48
49/// Container for channels used by sensor manager module
50pub mod sensor_manager_channels;
51
52/// Container for channels used by tank level switch module
53pub mod tank_level_switch_channels;
54
55/// Container for channels used by Ds18b20 module
56pub mod ds18b20_channels;
57
58/// Container for channels used by Dht module
59pub mod dht_channels;
60
61/// Configuration of AtlasScientific
62pub mod atlas_scientific_config;
63
64/// Configuration of Dht
65pub mod dht_config;
66
67/// Configuration of Ds18b20
68pub mod ds18b20_config;
69
70/// Configuration of I2cInterface
71pub mod i2c_interface_config;
72
73/// Configuration of SensorManager
74pub mod sensor_manager_config;
75
76/// Configuration of TankLevelSwitch
77pub mod tank_level_switch_config;
78
79/// Configuration of GpioHandler
80pub mod gpio_handler_config;