pub struct DMAC { /* private fields */ }Expand description
DMAC peripheral abstraction
Implementations§
Source§impl DMAC
impl DMAC
Sourcepub fn read_version(&self) -> u64
pub fn read_version(&self) -> u64
Get DMAC version
Sourcepub fn read_channel_id(&self, channel_num: dma_channel) -> u64
pub fn read_channel_id(&self, channel_num: dma_channel) -> u64
Get AXI ID for channel
pub fn src_transaction_complete_int_enable(&self, channel_num: dma_channel)
Sourcepub fn channel_enable(&self, channel_num: dma_channel)
pub fn channel_enable(&self, channel_num: dma_channel)
Enable a DMA channel.
Sourcepub fn channel_disable(&self, channel_num: dma_channel)
pub fn channel_disable(&self, channel_num: dma_channel)
Disable a DMA channel.
Sourcepub fn check_channel_busy(&self, channel_num: dma_channel) -> bool
pub fn check_channel_busy(&self, channel_num: dma_channel) -> bool
Check if a DMA channel is busy.
pub fn set_list_master_select( &self, channel_num: dma_channel, sd_sel: src_dst_select, mst_num: master_number, ) -> Result<(), ()>
pub fn enable_common_interrupt_status(&self)
pub fn enable_common_interrupt_signal(&self)
pub fn disable_channel_interrupt(&self, channel_num: dma_channel)
Sourcepub fn set_channel_param(
&self,
channel_num: dma_channel,
src: u64,
dest: u64,
src_inc: address_increment,
dest_inc: address_increment,
burst_size: burst_length,
trans_width: transfer_width,
block_size: u32,
)
pub fn set_channel_param( &self, channel_num: dma_channel, src: u64, dest: u64, src_inc: address_increment, dest_inc: address_increment, burst_size: burst_length, trans_width: transfer_width, block_size: u32, )
Set DMA channel parameters.
Sourcepub fn set_single_mode(
&self,
channel_num: dma_channel,
src: u64,
dest: u64,
src_inc: address_increment,
dest_inc: address_increment,
burst_size: burst_length,
trans_width: transfer_width,
block_size: u32,
)
pub fn set_single_mode( &self, channel_num: dma_channel, src: u64, dest: u64, src_inc: address_increment, dest_inc: address_increment, burst_size: burst_length, trans_width: transfer_width, block_size: u32, )
Start a single DMA transfer.
Sourcepub fn wait_done(&self, channel_num: dma_channel)
pub fn wait_done(&self, channel_num: dma_channel)
Wait for dmac work done.
Sourcepub fn is_idle(&self, channel_num: dma_channel) -> bool
pub fn is_idle(&self, channel_num: dma_channel) -> bool
Determine if a DMA channel is idle or not.
Sourcepub fn wait_idle(&self, channel_num: dma_channel)
pub fn wait_idle(&self, channel_num: dma_channel)
Wait for a DMA channel to be idle.
Auto Trait Implementations§
impl Freeze for DMAC
impl RefUnwindSafe for DMAC
impl Send for DMAC
impl !Sync for DMAC
impl Unpin for DMAC
impl UnwindSafe for DMAC
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