#rtc #hal-driver #hal #clock #real #driver

no-std rtc-hal

Platform-agnostic hardware abstraction for Real Time Clock peripherals

9 releases

Uses new Rust 2024

0.3.1 Sep 8, 2025
0.3.0 Sep 5, 2025
0.2.4 Sep 2, 2025
0.1.2 Aug 21, 2025

#1026 in Embedded development

Download history 97/week @ 2025-08-13 334/week @ 2025-08-20 293/week @ 2025-08-27 424/week @ 2025-09-03 55/week @ 2025-09-10 29/week @ 2025-09-17 23/week @ 2025-09-24 39/week @ 2025-10-01 3/week @ 2025-10-08 17/week @ 2025-10-15 8/week @ 2025-10-22

69 downloads per month
Used in 2 crates

MIT license

46KB
889 lines

RTC HAL - Platform-agnostic Real-Time Clock traits

This crate provides traits for implementing Real-Time Clock (RTC) drivers in a platform-agnostic way, following the embedded-hal design patterns.


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 - Core DateTime struct with validation and utility functions
  • rtc - Main Rtc trait defining the RTC interface
  • nvram - RtcNvram trait for RTCs with non-volatile memory
  • error - Error handling framework and RtcError trait
  • bcd - Binary Coded Decimal conversion utilities

License

This project is licensed under the MIT License.

Dependencies

~145KB