#[repr(transparent)]pub struct TcdCsr(pub u16);Expand description
TCD Control and Status
Tuple Fields§
§0: u16Implementations§
Source§impl TcdCsr
impl TcdCsr
Sourcepub const fn set_intmajor(&mut self, val: bool)
pub const fn set_intmajor(&mut self, val: bool)
Enable Interrupt If Major count complete
Sourcepub const fn set_inthalf(&mut self, val: bool)
pub const fn set_inthalf(&mut self, val: bool)
Enable Interrupt If Major Counter Half-complete
Sourcepub const fn majorelink(&self) -> bool
pub const fn majorelink(&self) -> bool
Enable Link When Major Loop Complete
Sourcepub const fn set_majorelink(&mut self, val: bool)
pub const fn set_majorelink(&mut self, val: bool)
Enable Link When Major Loop Complete
Sourcepub const fn majorlinkch(&self) -> u8
pub const fn majorlinkch(&self) -> u8
Major Loop Link Channel Number
Sourcepub const fn set_majorlinkch(&mut self, val: u8)
pub const fn set_majorlinkch(&mut self, val: u8)
Major Loop Link Channel Number
Trait Implementations§
impl Copy for TcdCsr
impl Eq for TcdCsr
impl StructuralPartialEq for TcdCsr
Auto Trait Implementations§
impl Freeze for TcdCsr
impl RefUnwindSafe for TcdCsr
impl Send for TcdCsr
impl Sync for TcdCsr
impl Unpin for TcdCsr
impl UnwindSafe for TcdCsr
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