aquarium_control/relays.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 main functionality for the actuator control
11pub mod relay_manager;
12
13/// Contains the trait implementation for the communication with real hardware
14pub mod actuate_controllino;
15
16/// Contains the trait implementation for the communication with the test server
17pub mod actuate_simulator;
18
19/// Contains the functionality to translate an actuator command into the relay actuation command
20pub mod device_relay_logic;
21
22/// Contains the trait implementation for the relay actuation via GPIO
23pub mod actuate_gpio;
24
25/// Container for message content sent to Controllino
26pub mod controllino_message;
27
28/// Enum codifies the errors which the program may encounter in preparation or execution of communication with the relay manager
29pub mod relay_error;
30
31/// Container for channels used by relay manager
32pub mod relay_manager_channels;
33
34/// Container for the channel used by ActuateSimulator
35pub mod actuate_simulator_channels;
36
37/// Configuration data for RelayManager
38pub mod relay_manager_config;
39
40/// Configuration of ActuateControllino
41pub mod actuate_controllino_config;