Struct atsamv71q20b::tc0::tc_channel::TC_CHANNEL
source · [−]#[repr(C)]pub struct TC_CHANNEL {
pub ccr: CCR,
pub smmr: SMMR,
pub rab: RAB,
pub cv: CV,
pub ra: RA,
pub rb: RB,
pub rc: RC,
pub sr: SR,
pub ier: IER,
pub idr: IDR,
pub imr: IMR,
pub emr: EMR,
/* private fields */
}
Expand description
Register block
Fields
ccr: CCR
0x00 - Channel Control Register (channel = 0)
smmr: SMMR
0x08 - Stepper Motor Mode Register (channel = 0)
rab: RAB
0x0c - Register AB (channel = 0)
cv: CV
0x10 - Counter Value (channel = 0)
ra: RA
0x14 - Register A (channel = 0)
rb: RB
0x18 - Register B (channel = 0)
rc: RC
0x1c - Register C (channel = 0)
sr: SR
0x20 - Status Register (channel = 0)
ier: IER
0x24 - Interrupt Enable Register (channel = 0)
idr: IDR
0x28 - Interrupt Disable Register (channel = 0)
imr: IMR
0x2c - Interrupt Mask Register (channel = 0)
emr: EMR
0x30 - Extended Mode Register (channel = 0)
Implementations
sourceimpl TC_CHANNEL
impl TC_CHANNEL
sourcepub fn cmr_waveform_mode(&self) -> &CMR_WAVEFORM_MODE
pub fn cmr_waveform_mode(&self) -> &CMR_WAVEFORM_MODE
0x04 - Channel Mode Register (channel = 0)
sourcepub fn cmr_capture_mode(&self) -> &CMR_CAPTURE_MODE
pub fn cmr_capture_mode(&self) -> &CMR_CAPTURE_MODE
0x04 - Channel Mode Register (channel = 0)
Auto Trait Implementations
impl !RefUnwindSafe for TC_CHANNEL
impl Send for TC_CHANNEL
impl !Sync for TC_CHANNEL
impl Unpin for TC_CHANNEL
impl UnwindSafe for TC_CHANNEL
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more