#[repr(transparent)]pub struct DmaCh0TxdescRingLength(pub u32);Expand description
F70RM Rev. 1 section 51.7.5.9; manual text line 156399.
Tuple Fields§
§0: u32Implementations§
Source§impl DmaCh0TxdescRingLength
impl DmaCh0TxdescRingLength
Sourcepub const fn tdrl(&self) -> u16
pub const fn tdrl(&self) -> u16
Transmit Descriptor Ring Length. This field sets the maximum number of Tx descriptors in the circular descriptor ring. The maximum number of descriptors is limited to 1K descriptors. It is recommended that a minimum ring descriptor length of 4. 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_tdrl(&mut self, val: u16)
pub const fn set_tdrl(&mut self, val: u16)
Transmit Descriptor Ring Length. This field sets the maximum number of Tx descriptors in the circular descriptor ring. The maximum number of descriptors is limited to 1K descriptors. It is recommended that a minimum ring descriptor length of 4. 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.
Trait Implementations§
Source§impl Clone for DmaCh0TxdescRingLength
impl Clone for DmaCh0TxdescRingLength
Source§fn clone(&self) -> DmaCh0TxdescRingLength
fn clone(&self) -> DmaCh0TxdescRingLength
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more