Struct esp32s3_hal::pac::usb_device::test::W
pub struct W(_);
Expand description
Register TEST
writer
Implementations§
§impl W
impl W
pub fn enable(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 0>
pub fn enable(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 0>
Bit 0 - Enable test of the USB pad
pub fn usb_oe(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 1>
pub fn usb_oe(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 1>
Bit 1 - USB pad oen in test
pub fn tx_dp(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 2>
pub fn tx_dp(&mut self) -> BitWriterRaw<'_, u32, TEST_SPEC, bool, BitM, 2>
Bit 2 - USB D+ tx value in test
Methods from Deref<Target = W<TEST_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.