#[repr(transparent)]pub struct TcdCsrEight(pub u16);Expand description
Eight-channel DMA1 TCD control, with three-bit major-loop channel selector. BWC encoding 1 is reserved.
Tuple Fields§
§0: u16Implementations§
Source§impl TcdCsrEight
impl TcdCsrEight
Sourcepub const fn start(&self) -> bool
pub const fn start(&self) -> bool
Channel Start. Raw bit values: false (0) = ChannelNotStarted: Channel not explicitly started.; true (1) = ChannelStarted: Channel explicitly started via a software-initiated service request.
Sourcepub const fn set_start(&mut self, val: bool)
pub const fn set_start(&mut self, val: bool)
Channel Start. Raw bit values: false (0) = ChannelNotStarted: Channel not explicitly started.; true (1) = ChannelStarted: Channel explicitly started via a software-initiated service request.
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 dreq(&self) -> bool
pub const fn dreq(&self) -> bool
Disable Request. Raw bit values: false (0) = ChannelNotAffected: No operation.; true (1) = ErqFieldClear: Clear the ERQ field to 0 upon major loop completion, thus disabling hardware service requests.
Sourcepub const fn set_dreq(&mut self, val: bool)
pub const fn set_dreq(&mut self, val: bool)
Disable Request. Raw bit values: false (0) = ChannelNotAffected: No operation.; true (1) = ErqFieldClear: Clear the ERQ field to 0 upon major loop completion, thus disabling hardware service requests.
Sourcepub const fn esg(&self) -> bool
pub const fn esg(&self) -> bool
Enable Scatter/Gather Processing. Raw bit values: false (0) = NormalFormat: Current channel’s TCD is normal format.; true (1) = ScatterGatherFormat: Current channel’s TCD specifies scatter/gather format.
Sourcepub const fn set_esg(&mut self, val: bool)
pub const fn set_esg(&mut self, val: bool)
Enable Scatter/Gather Processing. Raw bit values: false (0) = NormalFormat: Current channel’s TCD is normal format.; true (1) = ScatterGatherFormat: Current channel’s TCD specifies scatter/gather format.
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 target channel 0 through 7.
Sourcepub const fn set_majorlinkch(&mut self, val: u8)
pub const fn set_majorlinkch(&mut self, val: u8)
Major-loop link target channel 0 through 7.
Trait Implementations§
Source§impl Clone for TcdCsrEight
impl Clone for TcdCsrEight
Source§fn clone(&self) -> TcdCsrEight
fn clone(&self) -> TcdCsrEight
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more