Expand description
§Deimos - Shared Module
Packet formats and byte-serialization for the Deimos data acquisition ecosystem.
See the project readme for contact details as well as commentary about the goals and state of the project.
This library is shared with both the peripheral firmware and the control program so that critical data structures and constants maintain parity at all times.
Re-exports§
pub use states::OperatingMetrics;
Modules§
- peripherals
- states
- I/O formatting for each peripheral state.
Macros§
- enum_
with_ unknown - Derive To/From with an added “Unknown” variant catch-all for converting from numerical values that do not match a valid variant in order to avoid either panicking or cumbersome error handling.
Constants§
- CONTROLLER_
RX_ PORT - The UDP port on which the control machine expects to receive packets from hardware peripherals
- PERIPHERAL_
RX_ PORT - The UDP port on which the hardware peripherals expect to receive packets from the control machine
- STATIC_
FALLBACK_ CANDIDATE_ COUNT - Number of deterministic fallback IPv4 candidates generated for each peripheral.
- STATIC_
FALLBACK_ IPV4_ PREFIX_ LEN - Prefix length for the direct-connect static IPv4 fallback subnet.
Functions§
- static_
fallback_ ipv4_ candidate_ from_ mac - Derive one deterministic direct-connect IPv4 fallback candidate from a peripheral MAC address.