Type Definition lpc81x_pac::FieldWriterSafe

source ·
pub type FieldWriterSafe<'a, U, REG, N, FI, const WI: u8, const O: u8> = FieldWriterRaw<'a, U, REG, N, FI, Safe, WI, O>;
Expand description

Write field Proxy with safe bits

Implementations§

Field width

Field offset

Writes raw bits to the field

Writes variant to the field

Writes raw bits to the field

Writes variant to the field

Examples found in repository?
src/lpc810/syscon/clkoutsel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "Crystal oscillator (SYSOSC)"]
    #[inline(always)]
    pub fn sysosc(self) -> &'a mut W {
        self.variant(SEL_A::SYSOSC)
    }
    #[doc = "Watchdog oscillator"]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "Main clock"]
    #[inline(always)]
    pub fn main_clk(self) -> &'a mut W {
        self.variant(SEL_A::MAIN_CLK)
    }
More examples
Hide additional examples
src/lpc810/syscon/mainclksel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "PLL input."]
    #[inline(always)]
    pub fn pll_input(self) -> &'a mut W {
        self.variant(SEL_A::PLL_INPUT)
    }
    #[doc = "Watchdog oscillator."]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "PLL output."]
    #[inline(always)]
    pub fn pll_output(self) -> &'a mut W {
        self.variant(SEL_A::PLL_OUTPUT)
    }
src/lpc811/syscon/clkoutsel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "Crystal oscillator (SYSOSC)"]
    #[inline(always)]
    pub fn sysosc(self) -> &'a mut W {
        self.variant(SEL_A::SYSOSC)
    }
    #[doc = "Watchdog oscillator"]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "Main clock"]
    #[inline(always)]
    pub fn main_clk(self) -> &'a mut W {
        self.variant(SEL_A::MAIN_CLK)
    }
src/lpc811/syscon/mainclksel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "PLL input."]
    #[inline(always)]
    pub fn pll_input(self) -> &'a mut W {
        self.variant(SEL_A::PLL_INPUT)
    }
    #[doc = "Watchdog oscillator."]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "PLL output."]
    #[inline(always)]
    pub fn pll_output(self) -> &'a mut W {
        self.variant(SEL_A::PLL_OUTPUT)
    }
src/lpc812/syscon/clkoutsel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "Crystal oscillator (SYSOSC)"]
    #[inline(always)]
    pub fn sysosc(self) -> &'a mut W {
        self.variant(SEL_A::SYSOSC)
    }
    #[doc = "Watchdog oscillator"]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "Main clock"]
    #[inline(always)]
    pub fn main_clk(self) -> &'a mut W {
        self.variant(SEL_A::MAIN_CLK)
    }
src/lpc812/syscon/mainclksel.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn irc(self) -> &'a mut W {
        self.variant(SEL_A::IRC)
    }
    #[doc = "PLL input."]
    #[inline(always)]
    pub fn pll_input(self) -> &'a mut W {
        self.variant(SEL_A::PLL_INPUT)
    }
    #[doc = "Watchdog oscillator."]
    #[inline(always)]
    pub fn watchdog(self) -> &'a mut W {
        self.variant(SEL_A::WATCHDOG)
    }
    #[doc = "PLL output."]
    #[inline(always)]
    pub fn pll_output(self) -> &'a mut W {
        self.variant(SEL_A::PLL_OUTPUT)
    }