Type Definition lpc81x_pac::FieldWriter

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

Write field Proxy with unsafe bits

Implementations§

Field width

Field offset

Writes raw bits to the field

Safety

Passing incorrect value can cause undefined behaviour. See reference manual

Writes variant to the field

Writes raw bits to the field

Safety

Passing incorrect value can cause undefined behaviour. See reference manual

Writes variant to the field

Examples found in repository?
src/lpc810/syscon/syspllclksel.rs (line 89)
88
89
90
91
92
93
94
95
96
97
98
99
100
    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 = "CLKIN. External clock input."]
    #[inline(always)]
    pub fn clkin(self) -> &'a mut W {
        self.variant(SEL_A::CLKIN)
    }
More examples
Hide additional examples
src/lpc811/syscon/syspllclksel.rs (line 89)
88
89
90
91
92
93
94
95
96
97
98
99
100
    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 = "CLKIN. External clock input."]
    #[inline(always)]
    pub fn clkin(self) -> &'a mut W {
        self.variant(SEL_A::CLKIN)
    }
src/lpc812/syscon/syspllclksel.rs (line 89)
88
89
90
91
92
93
94
95
96
97
98
99
100
    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 = "CLKIN. External clock input."]
    #[inline(always)]
    pub fn clkin(self) -> &'a mut W {
        self.variant(SEL_A::CLKIN)
    }
src/lpc810/pmu/pcon.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn default(self) -> &'a mut W {
        self.variant(PM_A::DEFAULT)
    }
    #[doc = "Deep-sleep mode. ARM WFI will enter Deep-sleep mode."]
    #[inline(always)]
    pub fn deep_sleep_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_SLEEP_MODE)
    }
    #[doc = "Power-down mode. ARM WFI will enter Power-down mode."]
    #[inline(always)]
    pub fn power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::POWER_DOWN_MODE)
    }
    #[doc = "Deep power-down mode. ARM WFI will enter Deep-power down mode (ARM Cortex-M0+ core powered-down)."]
    #[inline(always)]
    pub fn deep_power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_POWER_DOWN_MODE)
    }
src/lpc811/pmu/pcon.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn default(self) -> &'a mut W {
        self.variant(PM_A::DEFAULT)
    }
    #[doc = "Deep-sleep mode. ARM WFI will enter Deep-sleep mode."]
    #[inline(always)]
    pub fn deep_sleep_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_SLEEP_MODE)
    }
    #[doc = "Power-down mode. ARM WFI will enter Power-down mode."]
    #[inline(always)]
    pub fn power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::POWER_DOWN_MODE)
    }
    #[doc = "Deep power-down mode. ARM WFI will enter Deep-power down mode (ARM Cortex-M0+ core powered-down)."]
    #[inline(always)]
    pub fn deep_power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_POWER_DOWN_MODE)
    }
src/lpc812/pmu/pcon.rs (line 97)
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    pub fn default(self) -> &'a mut W {
        self.variant(PM_A::DEFAULT)
    }
    #[doc = "Deep-sleep mode. ARM WFI will enter Deep-sleep mode."]
    #[inline(always)]
    pub fn deep_sleep_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_SLEEP_MODE)
    }
    #[doc = "Power-down mode. ARM WFI will enter Power-down mode."]
    #[inline(always)]
    pub fn power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::POWER_DOWN_MODE)
    }
    #[doc = "Deep power-down mode. ARM WFI will enter Deep-power down mode (ARM Cortex-M0+ core powered-down)."]
    #[inline(always)]
    pub fn deep_power_down_mode(self) -> &'a mut W {
        self.variant(PM_A::DEEP_POWER_DOWN_MODE)
    }