#[repr(transparent)]pub struct Channelctrl(pub u32);Expand description
DCP channel control register
Tuple Fields§
§0: u32Implementations§
Source§impl Channelctrl
impl Channelctrl
Sourcepub const fn enable_channel(&self) -> ChannelctrlEnableChannel
pub const fn enable_channel(&self) -> ChannelctrlEnableChannel
Setting a bit in this field enables the DMA channel associated with it
Sourcepub const fn set_enable_channel(&mut self, val: ChannelctrlEnableChannel)
pub const fn set_enable_channel(&mut self, val: ChannelctrlEnableChannel)
Setting a bit in this field enables the DMA channel associated with it
Sourcepub const fn high_priority_channel(&self) -> ChannelctrlHighPriorityChannel
pub const fn high_priority_channel(&self) -> ChannelctrlHighPriorityChannel
Setting a bit in this field causes the corresponding channel to have high-priority arbitration
Sourcepub const fn set_high_priority_channel(
&mut self,
val: ChannelctrlHighPriorityChannel,
)
pub const fn set_high_priority_channel( &mut self, val: ChannelctrlHighPriorityChannel, )
Setting a bit in this field causes the corresponding channel to have high-priority arbitration
Sourcepub const fn ch0_irq_merged(&self) -> bool
pub const fn ch0_irq_merged(&self) -> bool
Indicates that the interrupt for channel 0 must be merged with the other interrupts on the shared dcp_irq interrupt
Sourcepub const fn set_ch0_irq_merged(&mut self, val: bool)
pub const fn set_ch0_irq_merged(&mut self, val: bool)
Indicates that the interrupt for channel 0 must be merged with the other interrupts on the shared dcp_irq interrupt
Trait Implementations§
Source§impl Clone for Channelctrl
impl Clone for Channelctrl
Source§fn clone(&self) -> Channelctrl
fn clone(&self) -> Channelctrl
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 Channelctrl
impl Debug for Channelctrl
Source§impl Default for Channelctrl
impl Default for Channelctrl
Source§fn default() -> Channelctrl
fn default() -> Channelctrl
Returns the “default value” for a type. Read more
Source§impl PartialEq for Channelctrl
impl PartialEq for Channelctrl
impl Copy for Channelctrl
impl Eq for Channelctrl
impl StructuralPartialEq for Channelctrl
Auto Trait Implementations§
impl Freeze for Channelctrl
impl RefUnwindSafe for Channelctrl
impl Send for Channelctrl
impl Sync for Channelctrl
impl Unpin for Channelctrl
impl UnwindSafe for Channelctrl
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