#[repr(transparent)]pub struct Sm2captctrlx(pub u16);Expand description
Capture Control X Register
Tuple Fields§
§0: u16Implementations§
Source§impl Sm2captctrlx
impl Sm2captctrlx
Sourcepub const fn oneshotx(&self) -> Sm2captctrlxOneshotx
pub const fn oneshotx(&self) -> Sm2captctrlxOneshotx
One Shot Mode Aux
Sourcepub const fn set_oneshotx(&mut self, val: Sm2captctrlxOneshotx)
pub const fn set_oneshotx(&mut self, val: Sm2captctrlxOneshotx)
One Shot Mode Aux
Sourcepub const fn edgx0(&self) -> Sm2captctrlxEdgx0
pub const fn edgx0(&self) -> Sm2captctrlxEdgx0
Edge X 0
Sourcepub const fn set_edgx0(&mut self, val: Sm2captctrlxEdgx0)
pub const fn set_edgx0(&mut self, val: Sm2captctrlxEdgx0)
Edge X 0
Sourcepub const fn edgx1(&self) -> Sm2captctrlxEdgx1
pub const fn edgx1(&self) -> Sm2captctrlxEdgx1
Edge X 1
Sourcepub const fn set_edgx1(&mut self, val: Sm2captctrlxEdgx1)
pub const fn set_edgx1(&mut self, val: Sm2captctrlxEdgx1)
Edge X 1
Sourcepub const fn inp_selx(&self) -> Sm2captctrlxInpSelx
pub const fn inp_selx(&self) -> Sm2captctrlxInpSelx
Input Select X
Sourcepub const fn set_inp_selx(&mut self, val: Sm2captctrlxInpSelx)
pub const fn set_inp_selx(&mut self, val: Sm2captctrlxInpSelx)
Input Select X
Sourcepub const fn edgcntx_en(&self) -> bool
pub const fn edgcntx_en(&self) -> bool
Edge Counter X Enable
Sourcepub const fn set_edgcntx_en(&mut self, val: bool)
pub const fn set_edgcntx_en(&mut self, val: bool)
Edge Counter X Enable
Sourcepub const fn set_cx0cnt(&mut self, val: u8)
pub const fn set_cx0cnt(&mut self, val: u8)
Capture X0 FIFO Word Count
Sourcepub const fn set_cx1cnt(&mut self, val: u8)
pub const fn set_cx1cnt(&mut self, val: u8)
Capture X1 FIFO Word Count
Trait Implementations§
Source§impl Clone for Sm2captctrlx
impl Clone for Sm2captctrlx
Source§fn clone(&self) -> Sm2captctrlx
fn clone(&self) -> Sm2captctrlx
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 Sm2captctrlx
impl Debug for Sm2captctrlx
Source§impl Default for Sm2captctrlx
impl Default for Sm2captctrlx
Source§fn default() -> Sm2captctrlx
fn default() -> Sm2captctrlx
Returns the “default value” for a type. Read more
Source§impl PartialEq for Sm2captctrlx
impl PartialEq for Sm2captctrlx
impl Copy for Sm2captctrlx
impl Eq for Sm2captctrlx
impl StructuralPartialEq for Sm2captctrlx
Auto Trait Implementations§
impl Freeze for Sm2captctrlx
impl RefUnwindSafe for Sm2captctrlx
impl Send for Sm2captctrlx
impl Sync for Sm2captctrlx
impl Unpin for Sm2captctrlx
impl UnwindSafe for Sm2captctrlx
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