#[repr(transparent)]pub struct DmaCh0RxControl2(pub u32);Expand description
F70RM Rev. 1 section 51.7.5.10; manual text line 156452.
Tuple Fields§
§0: u32Implementations§
Source§impl DmaCh0RxControl2
impl DmaCh0RxControl2
Sourcepub const fn rdrl(&self) -> u16
pub const fn rdrl(&self) -> u16
Receive Descriptor Ring Length. This register sets the maximum number of Rx descriptors in the circular descriptor ring. The maximum number of descriptors is limited to 1K descriptors. For example, You can program any value up to 0x3FF in this field. This field is 10 bits wide, if you program 0x3FF, you can have 1024 descriptors. If you want to have 10 descriptors, program it to a value of 0x9.
Sourcepub const fn set_rdrl(&mut self, val: u16)
pub const fn set_rdrl(&mut self, val: u16)
Receive Descriptor Ring Length. This register sets the maximum number of Rx descriptors in the circular descriptor ring. The maximum number of descriptors is limited to 1K descriptors. For example, You can program any value up to 0x3FF in this field. This field is 10 bits wide, if you program 0x3FF, you can have 1024 descriptors. If you want to have 10 descriptors, program it to a value of 0x9.
Sourcepub const fn arbs(&self) -> u8
pub const fn arbs(&self) -> u8
Alternate Receive Buffer Size. Indicates size in bytes for Buffer 1 when ARBS is programmed to a non-zero value (when split header feature is not enabled). When split header feature is enabled, ARBS indicates the buffer size for header data. The maximum alternate buffer is limited to 1020 bytes. When ARBS=0, Rx Buffer1 and Rx Buffer2 sizes are based on RBSZ field of DMA_CH0_Rx_Control. Width of ARBS field is 8 bits.
Sourcepub const fn set_arbs(&mut self, val: u8)
pub const fn set_arbs(&mut self, val: u8)
Alternate Receive Buffer Size. Indicates size in bytes for Buffer 1 when ARBS is programmed to a non-zero value (when split header feature is not enabled). When split header feature is enabled, ARBS indicates the buffer size for header data. The maximum alternate buffer is limited to 1020 bytes. When ARBS=0, Rx Buffer1 and Rx Buffer2 sizes are based on RBSZ field of DMA_CH0_Rx_Control. Width of ARBS field is 8 bits.
Trait Implementations§
Source§impl Clone for DmaCh0RxControl2
impl Clone for DmaCh0RxControl2
Source§fn clone(&self) -> DmaCh0RxControl2
fn clone(&self) -> DmaCh0RxControl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more