Struct rp2040_pac2::dma::Channel [−][src]
Implementations
impl Channel
[src]
pub fn read_addr(self) -> Reg<u32, RW>
[src]
DMA Channel 1 Read Address pointer This register updates automatically each time a read completes. The current value is the next address to be read by this channel.
pub fn write_addr(self) -> Reg<u32, RW>
[src]
DMA Channel 1 Write Address pointer This register updates automatically each time a write completes. The current value is the next address to be written by this channel.
pub fn trans_count(self) -> Reg<u32, RW>
[src]
DMA Channel 1 Transfer Count Program the number of bus transfers a channel will perform before halting. Note that, if transfers are larger than one byte in size, this is not equal to the number of bytes transferred (see CTRL_DATA_SIZE). When the channel is active, reading this register shows the number of transfers remaining, updating automatically each time a write transfer completes. Writing this register sets the RELOAD value for the transfer counter. Each time this channel is triggered, the RELOAD value is copied into the live transfer counter. The channel can be started multiple times, and will perform the same number of transfers each time, as programmed by most recent write. The RELOAD value can be observed at CHx_DBG_TCR. If TRANS_COUNT is used as a trigger, the written value is used immediately as the length of the new transfer sequence, as well as being written to RELOAD.
pub fn ctrl_trig(self) -> Reg<CtrlTrig, RW>
[src]
DMA Channel 1 Control and Status
pub fn al1_ctrl(self) -> Reg<u32, R>
[src]
Alias for channel 1 CTRL register
pub fn al1_read_addr(self) -> Reg<u32, R>
[src]
Alias for channel 1 READ_ADDR register
pub fn al1_write_addr(self) -> Reg<u32, R>
[src]
Alias for channel 1 WRITE_ADDR register
pub fn al1_trans_count_trig(self) -> Reg<u32, R>
[src]
Alias for channel 1 TRANS_COUNT register This is a trigger register (0xc). Writing a nonzero value will reload the channel counter and start the channel.
pub fn al2_ctrl(self) -> Reg<u32, R>
[src]
Alias for channel 1 CTRL register
pub fn al2_trans_count(self) -> Reg<u32, R>
[src]
Alias for channel 1 TRANS_COUNT register
pub fn al2_read_addr(self) -> Reg<u32, R>
[src]
Alias for channel 1 READ_ADDR register
pub fn al2_write_addr_trig(self) -> Reg<u32, R>
[src]
Alias for channel 1 WRITE_ADDR register This is a trigger register (0xc). Writing a nonzero value will reload the channel counter and start the channel.
pub fn al3_ctrl(self) -> Reg<u32, R>
[src]
Alias for channel 1 CTRL register
pub fn al3_write_addr(self) -> Reg<u32, R>
[src]
Alias for channel 1 WRITE_ADDR register
pub fn al3_trans_count(self) -> Reg<u32, R>
[src]
Alias for channel 1 TRANS_COUNT register
pub fn al3_read_addr_trig(self) -> Reg<u32, R>
[src]
Alias for channel 1 READ_ADDR register This is a trigger register (0xc). Writing a nonzero value will reload the channel counter and start the channel.
pub fn dbg_ctdreq(self) -> Reg<DbgCtdreq, RW>
[src]
Read: get channel DREQ counter (i.e. how many accesses the DMA expects it can perform on the peripheral without overflow/underflow. Write any value: clears the counter, and cause channel to re-initiate DREQ handshake.
pub fn dbg_tcr(self) -> Reg<u32, R>
[src]
Read to get channel TRANS_COUNT reload value, i.e. the length of the next transfer
Trait Implementations
impl Clone for Channel
[src]
fn clone(&self) -> Channel
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Channel
[src]
impl Send for Channel
[src]
impl Sync for Channel
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,