Expand description
rusty_rtos_sntp-core — the pure heart of rusty_rtos_sntp.
Rules this crate lives by (from the Kairos mission plan):
no_stdby default;allocis a feature, never an assumption.- No CPU, no registers, no allocator, no operating system. Ports and backends are separate WRAP crates.
- Every type that crosses to another Kairos package comes from
rusty_rtos_core, so packages compose without conversions. - Handles are indices, never pointers; nothing on a hot path allocates.
forbid(unsafe). The C kernel’s trace is the oracle; the scalar path is the oracle; any faster path is gated identical against it.
Re-exports§
pub use client::AuthError;pub use client::Authenticator;pub use client::Client;pub use client::InitError;pub use client::NetworkError;pub use client::NoAuth;pub use client::ReceiveError;pub use client::Reception;pub use client::SendError;pub use client::ServerInfo;pub use client::SntpHost;pub use serializer::FRACTION_VALUE_PER_MICROSECOND;pub use serializer::KISS_OF_DEATH_CODE_LENGTH;pub use serializer::PACKET_BASE_SIZE;pub use serializer::TIME_AT_UNIX_EPOCH_SECS;pub use serializer::UNIX_TIME_SECS_AT_SNTP_ERA_1_SMALLEST_TIME;pub use serializer::calculate_poll_interval;pub use serializer::convert_to_unix_time;pub use serializer::deserialize_response;pub use serializer::serialize_request;pub use types::Accepted;pub use types::DeserializeError;pub use types::LeapSecond;pub use types::PollIntervalError;pub use types::Rejected;pub use types::Rejection;pub use types::SerializeError;pub use types::Timestamp;pub use types::Verdict;pub use rusty_rtos_core as rtos_core;
Modules§
- client
core_sntp_client.c: the polling client over a UDP transport.core_sntp_client.cremade: the polling client over a UDP transport.- prelude
- The names a firmware wants in scope.
- serializer
core_sntp_serializer.c: the SNTPv4 packet codec and its arithmetic.core_sntp_serializer.cremade: the SNTPv4 packet codec and its arithmetic.- types
- The types that cross the SNTP surface. The types that cross the SNTP surface.
Constants§
- VERSION
- Crate version, for manifests and logs.