Struct dcf77_utils::DCF77Utils
source · [−]pub struct DCF77Utils {
pub first_minute: bool,
pub new_minute: bool,
pub second: u8,
pub radio_datetime: RadioDateTimeUtils,
pub parity_1: Option<bool>,
pub parity_2: Option<bool>,
pub parity_3: Option<bool>,
pub frame_counter: u8,
pub led_time: bool,
pub led_bit: bool,
pub led_error: bool,
/* private fields */
}Expand description
DCF77 decoder class
Fields
first_minute: boolnew_minute: boolsecond: u8radio_datetime: RadioDateTimeUtilsparity_1: Option<bool>parity_2: Option<bool>parity_3: Option<bool>frame_counter: u8led_time: boolled_bit: boolled_error: boolImplementations
sourceimpl DCF77Utils
impl DCF77Utils
pub fn new(tps: u8) -> Self
pub fn handle_new_edge(&mut self, is_low_edge: bool, t0: u32, t1: u32)
sourcepub fn str_minute_length(&self) -> char
pub fn str_minute_length(&self) -> char
Return a character representation of the minute length status.
sourcepub fn str_call_bit(&self) -> char
pub fn str_call_bit(&self) -> char
Return a character representation of the call bit status
sourcepub fn str_weekday(&self) -> String<2>
pub fn str_weekday(&self) -> String<2>
Return a textual representation of the weekday
sourcepub fn increase_second(&mut self)
pub fn increase_second(&mut self)
Increase or reset second and clear first_minute when appropriate.
sourcepub fn handle_new_timer_tick(&mut self)
pub fn handle_new_timer_tick(&mut self)
Do things when a new timer tick arrives.
Auto Trait Implementations
impl RefUnwindSafe for DCF77Utils
impl Send for DCF77Utils
impl Sync for DCF77Utils
impl Unpin for DCF77Utils
impl UnwindSafe for DCF77Utils
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more