Type Alias rp2040_pac::usbctrl_dpram::ep_buffer_control::R
source · pub type R = R<EP_BUFFER_CONTROL_SPEC>;
Expand description
Register EP_BUFFER_CONTROL%s
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn length_0(&self) -> LENGTH_0_R
pub fn length_0(&self) -> LENGTH_0_R
Bits 0:9 - The length of the data in buffer 0.
sourcepub fn available_0(&self) -> AVAILABLE_0_R
pub fn available_0(&self) -> AVAILABLE_0_R
Bit 10 - Buffer 0 is available. This bit is set to indicate the buffer can be used by the controller. The controller clears the available bit when writing the status back.
sourcepub fn full_0(&self) -> FULL_0_R
pub fn full_0(&self) -> FULL_0_R
Bit 15 - Buffer 0 is full. For an IN transfer (TX to the host) the bit is set to indicate the data is valid. For an OUT transfer (RX from the host) this bit should be left as a 0. The host will set it when it has filled the buffer with data.
sourcepub fn length_1(&self) -> LENGTH_1_R
pub fn length_1(&self) -> LENGTH_1_R
Bits 16:25 - The length of the data in buffer 1.
sourcepub fn available_1(&self) -> AVAILABLE_1_R
pub fn available_1(&self) -> AVAILABLE_1_R
Bit 26 - Buffer 1 is available. This bit is set to indicate the buffer can be used by the controller. The controller clears the available bit when writing the status back.
sourcepub fn double_buffer_iso_offset(&self) -> DOUBLE_BUFFER_ISO_OFFSET_R
pub fn double_buffer_iso_offset(&self) -> DOUBLE_BUFFER_ISO_OFFSET_R
Bits 27:28 - The number of bytes buffer 1 is offset from buffer 0 in Isochronous mode. Only valid in double buffered mode for an Isochronous endpoint.
For a non Isochronous endpoint the offset is always 64 bytes.