Type Alias esp32c6::usb_device::test::W

source ·
pub type W = W<TEST_SPEC>;
Expand description

Register TEST writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn test_enable(&mut self) -> TEST_ENABLE_W<'_, TEST_SPEC>

Bit 0 - Enable test of the USB pad

source

pub fn test_usb_oe(&mut self) -> TEST_USB_OE_W<'_, TEST_SPEC>

Bit 1 - USB pad oen in test

source

pub fn test_tx_dp(&mut self) -> TEST_TX_DP_W<'_, TEST_SPEC>

Bit 2 - USB D+ tx value in test

source

pub fn test_tx_dm(&mut self) -> TEST_TX_DM_W<'_, TEST_SPEC>

Bit 3 - USB D- tx value in test

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual