Struct esp32c2_hal::pac::uart0::id::W
pub struct W(_);
Expand description
Register ID
writer
Implementations§
§impl W
impl W
pub fn id(
&mut self
) -> FieldWriterRaw<'_, u32, ID_SPEC, u32, u32, Unsafe, 30, 0>
pub fn id(
&mut self
) -> FieldWriterRaw<'_, u32, ID_SPEC, u32, u32, Unsafe, 30, 0>
Bits 0:29 - This register is used to configure the uart_id.
pub fn high_speed(&mut self) -> BitWriterRaw<'_, u32, ID_SPEC, bool, BitM, 30>
pub fn high_speed(&mut self) -> BitWriterRaw<'_, u32, ID_SPEC, bool, BitM, 30>
Bit 30 - This bit used to select synchronize mode. 1: Registers are auto synchronized into UART Core clock and UART core should be keep the same with APB clock. 0: After configure registers, software needs to write 1 to UART_REG_UPDATE to synchronize registers.
pub fn reg_update(&mut self) -> BitWriterRaw<'_, u32, ID_SPEC, bool, BitM, 31>
pub fn reg_update(&mut self) -> BitWriterRaw<'_, u32, ID_SPEC, bool, BitM, 31>
Bit 31 - Software write 1 would synchronize registers into UART Core clock domain and would be cleared by hardware after synchronization is done.
Methods from Deref<Target = W<ID_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.