Skip to main content

FieldSetValue

Enum FieldSetValue 

Source
pub enum FieldSetValue {
Show 16 variants ControlStatus1(ControlStatus1), ControlStatus2(ControlStatus2), Seconds(Seconds), Minutes(Minutes), Hours(Hours), Days(Days), Weekdays(Weekdays), CenturyMonths(CenturyMonths), Years(Years), MinuteAlarm(MinuteAlarm), HourAlarm(HourAlarm), DayAlarm(DayAlarm), WeekdayAlarm(WeekdayAlarm), ClkoutControl(ClkoutControl), TimerControl(TimerControl), Timer(Timer),
}
Expand description

Enum containing all possible field set types

Variants§

§

ControlStatus1(ControlStatus1)

Control and status register 1. Controls clock operation, test modes, and power-on reset override.

§

ControlStatus2(ControlStatus2)

Control and status register 2. Controls timer/alarm interrupts and flags.

§

Seconds(Seconds)

Seconds register with voltage-low flag. Seconds are BCD encoded (0-59).

§

Minutes(Minutes)

Minutes register. Minutes are BCD encoded (0-59).

§

Hours(Hours)

Hours register. Hours are BCD encoded (0-23, 24-hour format).

§

Days(Days)

Days register. Days are BCD encoded (1-31).

§

Weekdays(Weekdays)

Weekdays register. Weekday value (0-6, user-definable assignment).

§

CenturyMonths(CenturyMonths)

Century flag and months register. Months are BCD encoded (1-12).

§

Years(Years)

Years register. Years are BCD encoded (0-99).

§

MinuteAlarm(MinuteAlarm)

Minute alarm register. Minutes are BCD encoded (0-59).

§

HourAlarm(HourAlarm)

Hour alarm register. Hours are BCD encoded (0-23).

§

DayAlarm(DayAlarm)

Day alarm register. Days are BCD encoded (1-31).

§

WeekdayAlarm(WeekdayAlarm)

Weekday alarm register.

§

ClkoutControl(ClkoutControl)

CLKOUT frequency control register.

§

TimerControl(TimerControl)

Timer control register.

§

Timer(Timer)

Timer countdown value register. 8-bit binary countdown timer (0-255). Countdown period = n / source_clock_frequency When read, returns current countdown value.

Trait Implementations§

Source§

impl Debug for FieldSetValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CenturyMonths> for FieldSetValue

Source§

fn from(val: CenturyMonths) -> Self

Converts to this type from the input type.
Source§

impl From<ClkoutControl> for FieldSetValue

Source§

fn from(val: ClkoutControl) -> Self

Converts to this type from the input type.
Source§

impl From<ControlStatus1> for FieldSetValue

Source§

fn from(val: ControlStatus1) -> Self

Converts to this type from the input type.
Source§

impl From<ControlStatus2> for FieldSetValue

Source§

fn from(val: ControlStatus2) -> Self

Converts to this type from the input type.
Source§

impl From<DayAlarm> for FieldSetValue

Source§

fn from(val: DayAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<Days> for FieldSetValue

Source§

fn from(val: Days) -> Self

Converts to this type from the input type.
Source§

impl From<HourAlarm> for FieldSetValue

Source§

fn from(val: HourAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<Hours> for FieldSetValue

Source§

fn from(val: Hours) -> Self

Converts to this type from the input type.
Source§

impl From<MinuteAlarm> for FieldSetValue

Source§

fn from(val: MinuteAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<Minutes> for FieldSetValue

Source§

fn from(val: Minutes) -> Self

Converts to this type from the input type.
Source§

impl From<Seconds> for FieldSetValue

Source§

fn from(val: Seconds) -> Self

Converts to this type from the input type.
Source§

impl From<Timer> for FieldSetValue

Source§

fn from(val: Timer) -> Self

Converts to this type from the input type.
Source§

impl From<TimerControl> for FieldSetValue

Source§

fn from(val: TimerControl) -> Self

Converts to this type from the input type.
Source§

impl From<WeekdayAlarm> for FieldSetValue

Source§

fn from(val: WeekdayAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<Weekdays> for FieldSetValue

Source§

fn from(val: Weekdays) -> Self

Converts to this type from the input type.
Source§

impl From<Years> for FieldSetValue

Source§

fn from(val: Years) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.