rtc-hal
A platform-agnostic Hardware Abstraction Layer (HAL) for Real-Time Clock (RTC) devices in embedded Rust systems. This crate provides traits and utilities for implementing RTC drivers following the embedded-hal design patterns.
Architecture
This crate is organized into several modules:
datetime- CoreDateTimestruct with validation and utility functionsrtc- MainRtctrait defining the RTC interfacenvram-RtcNvramtrait for RTCs with non-volatile memoryerror- Error handling framework andRtcErrortraitbcd- Binary Coded Decimal conversion utilities
License
This project is licensed under the MIT License.