esp32p4/usb_device/
set_line_code_w0.rs1#[doc = "Register `SET_LINE_CODE_W0` reader"]
2pub type R = crate::R<SET_LINE_CODE_W0_SPEC>;
3#[doc = "Field `DW_DTE_RATE` reader - The value of dwDTERate set by host through SET_LINE_CODING command."]
4pub type DW_DTE_RATE_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - The value of dwDTERate set by host through SET_LINE_CODING command."]
7 #[inline(always)]
8 pub fn dw_dte_rate(&self) -> DW_DTE_RATE_R {
9 DW_DTE_RATE_R::new(self.bits)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("SET_LINE_CODE_W0")
16 .field(
17 "dw_dte_rate",
18 &format_args!("{}", self.dw_dte_rate().bits()),
19 )
20 .finish()
21 }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<SET_LINE_CODE_W0_SPEC> {
25 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
26 core::fmt::Debug::fmt(&self.read(), f)
27 }
28}
29#[doc = "W0 of SET_LINE_CODING command.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`set_line_code_w0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct SET_LINE_CODE_W0_SPEC;
31impl crate::RegisterSpec for SET_LINE_CODE_W0_SPEC {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [`set_line_code_w0::R`](R) reader structure"]
35impl crate::Readable for SET_LINE_CODE_W0_SPEC {}
36#[doc = "`reset()` method sets SET_LINE_CODE_W0 to value 0"]
37impl crate::Resettable for SET_LINE_CODE_W0_SPEC {
38 const RESET_VALUE: u32 = 0;
39}