rdif_clk/
lib.rs

1#![no_std]
2
3extern crate alloc;
4
5pub use rdif_base::{DriverGeneric, KError, custom_type};
6
7custom_type!(
8    #[doc = "Clock signal id"],
9    ClockId, usize, "{:#x}");
10
11pub trait Interface: DriverGeneric {
12    fn perper_enable(&mut self);
13
14    fn get_rate(&self, id: ClockId) -> Result<u64, KError>;
15
16    fn set_rate(&mut self, id: ClockId, rate: u64) -> Result<(), KError>;
17}