Struct esp32c6::USB_DEVICE
source · pub struct USB_DEVICE { /* private fields */ }
Expand description
Full-speed USB Serial/JTAG Controller
Implementations§
source§impl USB_DEVICE
impl USB_DEVICE
sourcepub const PTR: *const RegisterBlock = {0x6000f000 as *const usb_device::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x6000f000 as *const usb_device::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn ep1_conf(&self) -> &EP1_CONF
pub fn ep1_conf(&self) -> &EP1_CONF
0x04 - Configuration and control registers for the CDC-ACM FIFOs.
sourcepub fn out_ep0_st(&self) -> &OUT_EP0_ST
pub fn out_ep0_st(&self) -> &OUT_EP0_ST
0x38 - Control OUT endpoint status information.
sourcepub fn out_ep1_st(&self) -> &OUT_EP1_ST
pub fn out_ep1_st(&self) -> &OUT_EP1_ST
0x3c - CDC-ACM OUT endpoint status information.
sourcepub fn out_ep2_st(&self) -> &OUT_EP2_ST
pub fn out_ep2_st(&self) -> &OUT_EP2_ST
0x40 - JTAG OUT endpoint status information.
sourcepub fn set_line_code_w0(&self) -> &SET_LINE_CODE_W0
pub fn set_line_code_w0(&self) -> &SET_LINE_CODE_W0
0x50 - W0 of SET_LINE_CODING command.
sourcepub fn set_line_code_w1(&self) -> &SET_LINE_CODE_W1
pub fn set_line_code_w1(&self) -> &SET_LINE_CODE_W1
0x54 - W1 of SET_LINE_CODING command.
sourcepub fn get_line_code_w0(&self) -> &GET_LINE_CODE_W0
pub fn get_line_code_w0(&self) -> &GET_LINE_CODE_W0
0x58 - W0 of GET_LINE_CODING command.
sourcepub fn get_line_code_w1(&self) -> &GET_LINE_CODE_W1
pub fn get_line_code_w1(&self) -> &GET_LINE_CODE_W1
0x5c - W1 of GET_LINE_CODING command.
sourcepub fn config_update(&self) -> &CONFIG_UPDATE
pub fn config_update(&self) -> &CONFIG_UPDATE
0x60 - Configuration registers’ value update
sourcepub fn ser_afifo_config(&self) -> &SER_AFIFO_CONFIG
pub fn ser_afifo_config(&self) -> &SER_AFIFO_CONFIG
0x64 - Serial AFIFO configure register
sourcepub fn bus_reset_st(&self) -> &BUS_RESET_ST
pub fn bus_reset_st(&self) -> &BUS_RESET_ST
0x68 - USB Bus reset status register