#[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 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 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.