#[repr(transparent)]pub struct Sm0captctrla(pub u16);Expand description
Capture Control A Register
Tuple Fields§
§0: u16Implementations§
Source§impl Sm0captctrla
impl Sm0captctrla
Sourcepub const fn oneshota(&self) -> Sm0captctrlaOneshota
pub const fn oneshota(&self) -> Sm0captctrlaOneshota
One Shot Mode A
Sourcepub const fn set_oneshota(&mut self, val: Sm0captctrlaOneshota)
pub const fn set_oneshota(&mut self, val: Sm0captctrlaOneshota)
One Shot Mode A
Sourcepub const fn edga0(&self) -> Sm0captctrlaEdga0
pub const fn edga0(&self) -> Sm0captctrlaEdga0
Edge A 0
Sourcepub const fn set_edga0(&mut self, val: Sm0captctrlaEdga0)
pub const fn set_edga0(&mut self, val: Sm0captctrlaEdga0)
Edge A 0
Sourcepub const fn edga1(&self) -> Sm0captctrlaEdga1
pub const fn edga1(&self) -> Sm0captctrlaEdga1
Edge A 1
Sourcepub const fn set_edga1(&mut self, val: Sm0captctrlaEdga1)
pub const fn set_edga1(&mut self, val: Sm0captctrlaEdga1)
Edge A 1
Sourcepub const fn inp_sela(&self) -> Sm0captctrlaInpSela
pub const fn inp_sela(&self) -> Sm0captctrlaInpSela
Input Select A
Sourcepub const fn set_inp_sela(&mut self, val: Sm0captctrlaInpSela)
pub const fn set_inp_sela(&mut self, val: Sm0captctrlaInpSela)
Input Select A
Sourcepub const fn edgcnta_en(&self) -> bool
pub const fn edgcnta_en(&self) -> bool
Edge Counter A Enable
Sourcepub const fn set_edgcnta_en(&mut self, val: bool)
pub const fn set_edgcnta_en(&mut self, val: bool)
Edge Counter A Enable
Sourcepub const fn set_ca0cnt(&mut self, val: u8)
pub const fn set_ca0cnt(&mut self, val: u8)
Capture A0 FIFO Word Count
Sourcepub const fn set_ca1cnt(&mut self, val: u8)
pub const fn set_ca1cnt(&mut self, val: u8)
Capture A1 FIFO Word Count
Trait Implementations§
Source§impl Clone for Sm0captctrla
impl Clone for Sm0captctrla
Source§fn clone(&self) -> Sm0captctrla
fn clone(&self) -> Sm0captctrla
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Sm0captctrla
impl Debug for Sm0captctrla
Source§impl Default for Sm0captctrla
impl Default for Sm0captctrla
Source§fn default() -> Sm0captctrla
fn default() -> Sm0captctrla
Returns the “default value” for a type. Read more
Source§impl PartialEq for Sm0captctrla
impl PartialEq for Sm0captctrla
impl Copy for Sm0captctrla
impl Eq for Sm0captctrla
impl StructuralPartialEq for Sm0captctrla
Auto Trait Implementations§
impl Freeze for Sm0captctrla
impl RefUnwindSafe for Sm0captctrla
impl Send for Sm0captctrla
impl Sync for Sm0captctrla
impl Unpin for Sm0captctrla
impl UnwindSafe for Sm0captctrla
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more