pub struct Channel {
idx: u8,
}
Fields§
§idx: u8
Implementations§
source§impl Channel
impl Channel
pub unsafe fn summon_channel(idx: u8) -> Channel
pub fn channel_index(&self) -> u8
pub unsafe fn desc_addr_reg(&self) -> &Reg<DMAC_DESC_ADDR_SPEC>
pub unsafe fn en_reg(&self) -> &Reg<DMAC_EN_SPEC>
pub unsafe fn mode_reg(&self) -> &Reg<DMAC_MODE_SPEC>
pub unsafe fn set_channel_modes(&mut self, src: ChannelMode, dst: ChannelMode)
pub unsafe fn start_descriptor(&mut self, desc: NonNull<Descriptor>)
pub unsafe fn stop_dma(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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