#[repr(transparent)]pub struct Dmactrl(pub u32);Expand description
DMA Control. Two external DMA request channels, with ports 0-4 or Port80. Software primes the first block; DMA enable refills. The function says “up to 3 ports” but 52.3.1.9 and the register expose two DMA requests. The DMA1EN/DMA0EN tables mention action 3 for mailbox while their encoding lists reserve 3; no variant 3 is provided.
Tuple Fields§
§0: u32Implementations§
Source§impl Dmactrl
impl Dmactrl
Sourcepub const fn dma0en(&self) -> DmactrlDma0en
pub const fn dma0en(&self) -> DmactrlDma0en
DMA 0 Enable. Encodings: 0: Disabled. The DMA channel is not used.; 1: Triggers on Host Read empty (whether endpoint and a byte or mailbox and many bytes). Allows reload of memory.; 2: Triggers on Host Write complete/ready (whether endpoint and a byte, or mailbox and many bytes).
Sourcepub const fn set_dma0en(&mut self, val: DmactrlDma0en)
pub const fn set_dma0en(&mut self, val: DmactrlDma0en)
DMA 0 Enable. Encodings: 0: Disabled. The DMA channel is not used.; 1: Triggers on Host Read empty (whether endpoint and a byte or mailbox and many bytes). Allows reload of memory.; 2: Triggers on Host Write complete/ready (whether endpoint and a byte, or mailbox and many bytes).
Sourcepub const fn dma1en(&self) -> DmactrlDma1en
pub const fn dma1en(&self) -> DmactrlDma1en
DMA 1 Enable. Encodings: 0: Disabled. The DMA channel is not used.; 1: Triggers on Host Read empty (whether endpoint and a byte or mailbox and many bytes). Allows reload of memory.; 2: Triggers on Host Write complete/ready (whether endpoint and a byte or mailbox and many bytes).
Sourcepub const fn set_dma1en(&mut self, val: DmactrlDma1en)
pub const fn set_dma1en(&mut self, val: DmactrlDma1en)
DMA 1 Enable. Encodings: 0: Disabled. The DMA channel is not used.; 1: Triggers on Host Read empty (whether endpoint and a byte or mailbox and many bytes). Allows reload of memory.; 2: Triggers on Host Write complete/ready (whether endpoint and a byte or mailbox and many bytes).
Sourcepub const fn dma0port(&self) -> DmactrlDma0port
pub const fn dma0port(&self) -> DmactrlDma0port
DMA 0 Port
Sourcepub const fn set_dma0port(&mut self, val: DmactrlDma0port)
pub const fn set_dma0port(&mut self, val: DmactrlDma0port)
DMA 0 Port
Sourcepub const fn dma1port(&self) -> DmactrlDma1port
pub const fn dma1port(&self) -> DmactrlDma1port
Selects port operating DMA. Encodings: 0: Port 0; 1: Port 1; 2: Port 2; 3: Port 3; 4: Port 4; 8: Port80. Used to offload the Port80 bytes (only host writes apply to Port80).
Sourcepub const fn set_dma1port(&mut self, val: DmactrlDma1port)
pub const fn set_dma1port(&mut self, val: DmactrlDma1port)
Selects port operating DMA. Encodings: 0: Port 0; 1: Port 1; 2: Port 2; 3: Port 3; 4: Port 4; 8: Port80. Used to offload the Port80 bytes (only host writes apply to Port80).