pub struct PitChannel {Show 13 fields
pub count: u16,
pub reload: u16,
pub mode: PitMode,
pub access_mode: u8,
pub bcd: bool,
pub latch_value: u16,
pub latch_valid: bool,
pub read_low: bool,
pub write_low: bool,
pub gate: bool,
pub output: bool,
pub enabled: bool,
pub accumulated_ns: u64,
}Expand description
State for a single PIT counter channel
Fields§
§count: u16Current counter value
reload: u16Reload value (initial count)
mode: PitModeOperating mode
access_mode: u8Access mode: 0=latch, 1=lo, 2=hi, 3=lo/hi
bcd: boolBCD mode if true
latch_value: u16Latch value (captured on latch command)
latch_valid: boolWhether latch is valid
read_low: boolWhether reading low byte next (for lo/hi mode)
write_low: boolWhether writing low byte next (for lo/hi mode)
gate: boolGate input state
output: boolOutput state
enabled: boolWhether the counter is enabled (counting)
accumulated_ns: u64Accumulated nanoseconds for tick tracking
Implementations§
Source§impl PitChannel
impl PitChannel
Trait Implementations§
Source§impl Clone for PitChannel
impl Clone for PitChannel
Source§fn clone(&self) -> PitChannel
fn clone(&self) -> PitChannel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PitChannel
impl Debug for PitChannel
Source§impl Default for PitChannel
impl Default for PitChannel
Source§fn default() -> PitChannel
fn default() -> PitChannel
Returns the “default value” for a type. Read more
impl Copy for PitChannel
Auto Trait Implementations§
impl Freeze for PitChannel
impl RefUnwindSafe for PitChannel
impl Send for PitChannel
impl Sync for PitChannel
impl Unpin for PitChannel
impl UnwindSafe for PitChannel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)