#[doc = "Register `LOW` reader"]
pub struct R(crate::R<LOW_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<LOW_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<LOW_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<LOW_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `LOW` writer"]
pub struct W(crate::W<LOW_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<LOW_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<LOW_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<LOW_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `SUT_CKSEL` reader - Select Clock Source"]
pub type SUT_CKSEL_R = crate::FieldReader<u8, SUT_CKSEL_A>;
#[doc = "Select Clock Source\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SUT_CKSEL_A {
#[doc = "0: Ext. Clock; Start-up time: 6 CK + 0 ms"]
EXTCLK_6CK_0MS = 0,
#[doc = "2: Int. RC Osc.; Start-up time: 6 CK + 0 ms"]
INTRCOSC_6CK_0MS = 2,
#[doc = "3: Int. 128kHz RC Osc.; Start-up time: 6 CK + 0 ms"]
INTRCOSC_128KHZ_6CK_0MS = 3,
#[doc = "4: Ext. Low-Freq. Crystal; Start-up time: 1K CK + 0 ms"]
EXTLOFXTAL_1KCK_0MS = 4,
#[doc = "5: Ext. Low-Freq. Crystal; Start-up time: 32K CK + 0 ms"]
EXTLOFXTAL_32KCK_0MS = 5,
#[doc = "6: Full Swing Oscillator; Start-up time: 258 CK + 4.1 ms; Ceramic res.; fast rising power"]
FSOSC_258CK_4MS1_CRES_FASTPWR = 6,
#[doc = "7: Full Swing Oscillator; Start-up time: 1K CK + 65 ms; Ceramic res.; slowly rising power"]
FSOSC_1KCK_65MS_CRES_SLOWPWR = 7,
#[doc = "8: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 258 CK + 4.1 ms"]
EXTXOSC_0MHZ4_0MHZ9_258CK_4MS1 = 8,
#[doc = "9: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 65 ms"]
EXTXOSC_0MHZ4_0MHZ9_1KCK_65MS = 9,
#[doc = "10: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 258 CK + 4.1 ms"]
EXTXOSC_0MHZ9_3MHZ_258CK_4MS1 = 10,
#[doc = "11: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 65 ms"]
EXTXOSC_0MHZ9_3MHZ_1KCK_65MS = 11,
#[doc = "12: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 258 CK + 4.1 ms"]
EXTXOSC_3MHZ_8MHZ_258CK_4MS1 = 12,
#[doc = "13: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 65 ms"]
EXTXOSC_3MHZ_8MHZ_1KCK_65MS = 13,
#[doc = "14: Ext. Crystal Osc. 8.0- MHz; Start-up time: 258 CK + 4.1 ms"]
EXTXOSC_8MHZ_XX_258CK_4MS1 = 14,
#[doc = "15: Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 65 ms"]
EXTXOSC_8MHZ_XX_1KCK_65MS = 15,
#[doc = "16: Ext. Clock; Start-up time: 6 CK + 4.1 ms"]
EXTCLK_6CK_4MS1 = 16,
#[doc = "18: Int. RC Osc.; Start-up time: 6 CK + 4.1 ms"]
INTRCOSC_6CK_4MS1 = 18,
#[doc = "19: Int. 128kHz RC Osc.; Start-up time: 6 CK + 4 ms"]
INTRCOSC_128KHZ_6CK_4MS = 19,
#[doc = "20: Ext. Low-Freq. Crystal; Start-up time: 1K CK + 4.1 ms"]
EXTLOFXTAL_1KCK_4MS1 = 20,
#[doc = "21: Ext. Low-Freq. Crystal; Start-up time: 32K CK + 4.1 ms"]
EXTLOFXTAL_32KCK_4MS1 = 21,
#[doc = "22: Full Swing Oscillator; Start-up time: 258 CK + 65 ms; Ceramic res.; slowly rising power"]
FSOSC_258CK_65MS_CRES_SLOWPWR = 22,
#[doc = "23: Full Swing Oscillator; Start-up time: 16K CK + 0 ms; Crystal Osc.; BOD enabled"]
FSOSC_16KCK_0MS_XOSC_BODEN = 23,
#[doc = "24: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 258 CK + 65 ms"]
EXTXOSC_0MHZ4_0MHZ9_258CK_65MS = 24,
#[doc = "25: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 0 ms"]
EXTXOSC_0MHZ4_0MHZ9_16KCK_0MS = 25,
#[doc = "26: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 258 CK + 65 ms"]
EXTXOSC_0MHZ9_3MHZ_258CK_65MS = 26,
#[doc = "27: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 0 ms"]
EXTXOSC_0MHZ9_3MHZ_16KCK_0MS = 27,
#[doc = "28: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 258 CK + 65 ms"]
EXTXOSC_3MHZ_8MHZ_258CK_65MS = 28,
#[doc = "29: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 0 ms"]
EXTXOSC_3MHZ_8MHZ_16KCK_0MS = 29,
#[doc = "30: Ext. Crystal Osc. 8.0- MHz; Start-up time: 258 CK + 65 ms"]
EXTXOSC_8MHZ_XX_258CK_65MS = 30,
#[doc = "31: Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 0 ms"]
EXTXOSC_8MHZ_XX_16KCK_0MS = 31,
#[doc = "32: Ext. Clock; Start-up time: 6 CK + 65 ms"]
EXTCLK_6CK_65MS = 32,
#[doc = "34: Int. RC Osc.; Start-up time: 6 CK + 65 ms"]
INTRCOSC_6CK_65MS = 34,
#[doc = "35: Int. 128kHz RC Osc.; Start-up time: 6 CK + 64 ms"]
INTRCOSC_128KHZ_6CK_64MS = 35,
#[doc = "36: Ext. Low-Freq. Crystal; Start-up time: 1K CK + 65 ms"]
EXTLOFXTAL_1KCK_65MS = 36,
#[doc = "37: Ext. Low-Freq. Crystal; Start-up time: 32K CK + 65 ms"]
EXTLOFXTAL_32KCK_65MS = 37,
#[doc = "38: Full Swing Oscillator; Start-up time: 1K CK + 0 ms; Ceramic res.; BOD enable"]
FSOSC_1KCK_0MS_CRES_BODEN = 38,
#[doc = "39: Full Swing Oscillator; Start-up time: 16K CK + 4.1 ms; Crystal Osc.; fast rising power"]
FSOSC_16KCK_4MS1_XOSC_FASTPWR = 39,
#[doc = "40: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 0 ms"]
EXTXOSC_0MHZ4_0MHZ9_1KCK_0MS = 40,
#[doc = "41: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 4.1 ms"]
EXTXOSC_0MHZ4_0MHZ9_16KCK_4MS1 = 41,
#[doc = "42: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 0 ms"]
EXTXOSC_0MHZ9_3MHZ_1KCK_0MS = 42,
#[doc = "43: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 4.1 ms"]
EXTXOSC_0MHZ9_3MHZ_16KCK_4MS1 = 43,
#[doc = "44: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 0 ms"]
EXTXOSC_3MHZ_8MHZ_1KCK_0MS = 44,
#[doc = "45: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 4.1 ms"]
EXTXOSC_3MHZ_8MHZ_16KCK_4MS1 = 45,
#[doc = "46: Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 0 ms"]
EXTXOSC_8MHZ_XX_1KCK_0MS = 46,
#[doc = "47: Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 4.1 ms"]
EXTXOSC_8MHZ_XX_16KCK_4MS1 = 47,
#[doc = "54: Full Swing Oscillator; Start-up time: 1K CK + 4.1 ms; Ceramic res.; fast rising power"]
FSOSC_1KCK_4MS1_CRES_FASTPWR = 54,
#[doc = "55: Full Swing Oscillator; Start-up time: 16K CK + 65 ms; Crystal Osc.; slowly rising power"]
FSOSC_16KCK_65MS_XOSC_SLOWPWR = 55,
#[doc = "56: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 4.1 ms"]
EXTXOSC_0MHZ4_0MHZ9_1KCK_4MS1 = 56,
#[doc = "57: Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 65 ms"]
EXTXOSC_0MHZ4_0MHZ9_16KCK_65MS = 57,
#[doc = "58: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 4.1 ms"]
EXTXOSC_0MHZ9_3MHZ_1KCK_4MS1 = 58,
#[doc = "59: Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 65 ms"]
EXTXOSC_0MHZ9_3MHZ_16KCK_65MS = 59,
#[doc = "60: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 4.1 ms"]
EXTXOSC_3MHZ_8MHZ_1KCK_4MS1 = 60,
#[doc = "61: Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 65 ms"]
EXTXOSC_3MHZ_8MHZ_16KCK_65MS = 61,
#[doc = "62: Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 4.1 ms"]
EXTXOSC_8MHZ_XX_1KCK_4MS1 = 62,
#[doc = "63: Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 65 ms"]
EXTXOSC_8MHZ_XX_16KCK_65MS = 63,
}
impl From<SUT_CKSEL_A> for u8 {
#[inline(always)]
fn from(variant: SUT_CKSEL_A) -> Self {
variant as _
}
}
impl SUT_CKSEL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<SUT_CKSEL_A> {
match self.bits {
0 => Some(SUT_CKSEL_A::EXTCLK_6CK_0MS),
2 => Some(SUT_CKSEL_A::INTRCOSC_6CK_0MS),
3 => Some(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_0MS),
4 => Some(SUT_CKSEL_A::EXTLOFXTAL_1KCK_0MS),
5 => Some(SUT_CKSEL_A::EXTLOFXTAL_32KCK_0MS),
6 => Some(SUT_CKSEL_A::FSOSC_258CK_4MS1_CRES_FASTPWR),
7 => Some(SUT_CKSEL_A::FSOSC_1KCK_65MS_CRES_SLOWPWR),
8 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_4MS1),
9 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_65MS),
10 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_4MS1),
11 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_65MS),
12 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_4MS1),
13 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_65MS),
14 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_4MS1),
15 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_65MS),
16 => Some(SUT_CKSEL_A::EXTCLK_6CK_4MS1),
18 => Some(SUT_CKSEL_A::INTRCOSC_6CK_4MS1),
19 => Some(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_4MS),
20 => Some(SUT_CKSEL_A::EXTLOFXTAL_1KCK_4MS1),
21 => Some(SUT_CKSEL_A::EXTLOFXTAL_32KCK_4MS1),
22 => Some(SUT_CKSEL_A::FSOSC_258CK_65MS_CRES_SLOWPWR),
23 => Some(SUT_CKSEL_A::FSOSC_16KCK_0MS_XOSC_BODEN),
24 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_65MS),
25 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_0MS),
26 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_65MS),
27 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_0MS),
28 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_65MS),
29 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_0MS),
30 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_65MS),
31 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_0MS),
32 => Some(SUT_CKSEL_A::EXTCLK_6CK_65MS),
34 => Some(SUT_CKSEL_A::INTRCOSC_6CK_65MS),
35 => Some(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_64MS),
36 => Some(SUT_CKSEL_A::EXTLOFXTAL_1KCK_65MS),
37 => Some(SUT_CKSEL_A::EXTLOFXTAL_32KCK_65MS),
38 => Some(SUT_CKSEL_A::FSOSC_1KCK_0MS_CRES_BODEN),
39 => Some(SUT_CKSEL_A::FSOSC_16KCK_4MS1_XOSC_FASTPWR),
40 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_0MS),
41 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_4MS1),
42 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_0MS),
43 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_4MS1),
44 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_0MS),
45 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_4MS1),
46 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_0MS),
47 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_4MS1),
54 => Some(SUT_CKSEL_A::FSOSC_1KCK_4MS1_CRES_FASTPWR),
55 => Some(SUT_CKSEL_A::FSOSC_16KCK_65MS_XOSC_SLOWPWR),
56 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_4MS1),
57 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_65MS),
58 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_4MS1),
59 => Some(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_65MS),
60 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_4MS1),
61 => Some(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_65MS),
62 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_4MS1),
63 => Some(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_65MS),
_ => None,
}
}
#[doc = "Checks if the value of the field is `EXTCLK_6CK_0MS`"]
#[inline(always)]
pub fn is_extclk_6ck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTCLK_6CK_0MS
}
#[doc = "Checks if the value of the field is `INTRCOSC_6CK_0MS`"]
#[inline(always)]
pub fn is_intrcosc_6ck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_6CK_0MS
}
#[doc = "Checks if the value of the field is `INTRCOSC_128KHZ_6CK_0MS`"]
#[inline(always)]
pub fn is_intrcosc_128khz_6ck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_0MS
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_1KCK_0MS`"]
#[inline(always)]
pub fn is_extlofxtal_1kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_1KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_32KCK_0MS`"]
#[inline(always)]
pub fn is_extlofxtal_32kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_32KCK_0MS
}
#[doc = "Checks if the value of the field is `FSOSC_258CK_4MS1_CRES_FASTPWR`"]
#[inline(always)]
pub fn is_fsosc_258ck_4ms1_cres_fastpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_258CK_4MS1_CRES_FASTPWR
}
#[doc = "Checks if the value of the field is `FSOSC_1KCK_65MS_CRES_SLOWPWR`"]
#[inline(always)]
pub fn is_fsosc_1kck_65ms_cres_slowpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_1KCK_65MS_CRES_SLOWPWR
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_258CK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_258ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_1KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_1kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_258CK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_258ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_1KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_1kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_258CK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_258ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_1KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_1kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_258CK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_258ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_1KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_1kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTCLK_6CK_4MS1`"]
#[inline(always)]
pub fn is_extclk_6ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTCLK_6CK_4MS1
}
#[doc = "Checks if the value of the field is `INTRCOSC_6CK_4MS1`"]
#[inline(always)]
pub fn is_intrcosc_6ck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_6CK_4MS1
}
#[doc = "Checks if the value of the field is `INTRCOSC_128KHZ_6CK_4MS`"]
#[inline(always)]
pub fn is_intrcosc_128khz_6ck_4ms(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_4MS
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_1KCK_4MS1`"]
#[inline(always)]
pub fn is_extlofxtal_1kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_1KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_32KCK_4MS1`"]
#[inline(always)]
pub fn is_extlofxtal_32kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_32KCK_4MS1
}
#[doc = "Checks if the value of the field is `FSOSC_258CK_65MS_CRES_SLOWPWR`"]
#[inline(always)]
pub fn is_fsosc_258ck_65ms_cres_slowpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_258CK_65MS_CRES_SLOWPWR
}
#[doc = "Checks if the value of the field is `FSOSC_16KCK_0MS_XOSC_BODEN`"]
#[inline(always)]
pub fn is_fsosc_16kck_0ms_xosc_boden(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_16KCK_0MS_XOSC_BODEN
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_258CK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_258ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_16KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_16kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_258CK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_258ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_16KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_16kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_258CK_65MS`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_258ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_16KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_16kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_258CK_65MS`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_258ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_16KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_16kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTCLK_6CK_65MS`"]
#[inline(always)]
pub fn is_extclk_6ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTCLK_6CK_65MS
}
#[doc = "Checks if the value of the field is `INTRCOSC_6CK_65MS`"]
#[inline(always)]
pub fn is_intrcosc_6ck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_6CK_65MS
}
#[doc = "Checks if the value of the field is `INTRCOSC_128KHZ_6CK_64MS`"]
#[inline(always)]
pub fn is_intrcosc_128khz_6ck_64ms(&self) -> bool {
*self == SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_64MS
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_1KCK_65MS`"]
#[inline(always)]
pub fn is_extlofxtal_1kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_1KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTLOFXTAL_32KCK_65MS`"]
#[inline(always)]
pub fn is_extlofxtal_32kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTLOFXTAL_32KCK_65MS
}
#[doc = "Checks if the value of the field is `FSOSC_1KCK_0MS_CRES_BODEN`"]
#[inline(always)]
pub fn is_fsosc_1kck_0ms_cres_boden(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_1KCK_0MS_CRES_BODEN
}
#[doc = "Checks if the value of the field is `FSOSC_16KCK_4MS1_XOSC_FASTPWR`"]
#[inline(always)]
pub fn is_fsosc_16kck_4ms1_xosc_fastpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_16KCK_4MS1_XOSC_FASTPWR
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_1KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_1kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_16KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_16kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_1KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_1kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_16KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_16kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_1KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_1kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_16KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_16kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_1KCK_0MS`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_1kck_0ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_0MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_16KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_16kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_4MS1
}
#[doc = "Checks if the value of the field is `FSOSC_1KCK_4MS1_CRES_FASTPWR`"]
#[inline(always)]
pub fn is_fsosc_1kck_4ms1_cres_fastpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_1KCK_4MS1_CRES_FASTPWR
}
#[doc = "Checks if the value of the field is `FSOSC_16KCK_65MS_XOSC_SLOWPWR`"]
#[inline(always)]
pub fn is_fsosc_16kck_65ms_xosc_slowpwr(&self) -> bool {
*self == SUT_CKSEL_A::FSOSC_16KCK_65MS_XOSC_SLOWPWR
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_1KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_1kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ4_0MHZ9_16KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz4_0mhz9_16kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_1KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_1kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_0MHZ9_3MHZ_16KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_0mhz9_3mhz_16kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_1KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_1kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_3MHZ_8MHZ_16KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_3mhz_8mhz_16kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_65MS
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_1KCK_4MS1`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_1kck_4ms1(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_4MS1
}
#[doc = "Checks if the value of the field is `EXTXOSC_8MHZ_XX_16KCK_65MS`"]
#[inline(always)]
pub fn is_extxosc_8mhz_xx_16kck_65ms(&self) -> bool {
*self == SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_65MS
}
}
#[doc = "Field `SUT_CKSEL` writer - Select Clock Source"]
pub type SUT_CKSEL_W<'a, const O: u8> = crate::FieldWriter<'a, u8, LOW_SPEC, u8, SUT_CKSEL_A, 6, O>;
impl<'a, const O: u8> SUT_CKSEL_W<'a, O> {
#[doc = "Ext. Clock; Start-up time: 6 CK + 0 ms"]
#[inline(always)]
pub fn extclk_6ck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTCLK_6CK_0MS)
}
#[doc = "Int. RC Osc.; Start-up time: 6 CK + 0 ms"]
#[inline(always)]
pub fn intrcosc_6ck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_6CK_0MS)
}
#[doc = "Int. 128kHz RC Osc.; Start-up time: 6 CK + 0 ms"]
#[inline(always)]
pub fn intrcosc_128khz_6ck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_0MS)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 1K CK + 0 ms"]
#[inline(always)]
pub fn extlofxtal_1kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_1KCK_0MS)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 32K CK + 0 ms"]
#[inline(always)]
pub fn extlofxtal_32kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_32KCK_0MS)
}
#[doc = "Full Swing Oscillator; Start-up time: 258 CK + 4.1 ms; Ceramic res.; fast rising power"]
#[inline(always)]
pub fn fsosc_258ck_4ms1_cres_fastpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_258CK_4MS1_CRES_FASTPWR)
}
#[doc = "Full Swing Oscillator; Start-up time: 1K CK + 65 ms; Ceramic res.; slowly rising power"]
#[inline(always)]
pub fn fsosc_1kck_65ms_cres_slowpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_1KCK_65MS_CRES_SLOWPWR)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 258 CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_258ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_4MS1)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_1kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 258 CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_258ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_4MS1)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_1kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 258 CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_258ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_4MS1)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_1kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 258 CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_258ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_4MS1)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_1kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_65MS)
}
#[doc = "Ext. Clock; Start-up time: 6 CK + 4.1 ms"]
#[inline(always)]
pub fn extclk_6ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTCLK_6CK_4MS1)
}
#[doc = "Int. RC Osc.; Start-up time: 6 CK + 4.1 ms"]
#[inline(always)]
pub fn intrcosc_6ck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_6CK_4MS1)
}
#[doc = "Int. 128kHz RC Osc.; Start-up time: 6 CK + 4 ms"]
#[inline(always)]
pub fn intrcosc_128khz_6ck_4ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_4MS)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 1K CK + 4.1 ms"]
#[inline(always)]
pub fn extlofxtal_1kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_1KCK_4MS1)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 32K CK + 4.1 ms"]
#[inline(always)]
pub fn extlofxtal_32kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_32KCK_4MS1)
}
#[doc = "Full Swing Oscillator; Start-up time: 258 CK + 65 ms; Ceramic res.; slowly rising power"]
#[inline(always)]
pub fn fsosc_258ck_65ms_cres_slowpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_258CK_65MS_CRES_SLOWPWR)
}
#[doc = "Full Swing Oscillator; Start-up time: 16K CK + 0 ms; Crystal Osc.; BOD enabled"]
#[inline(always)]
pub fn fsosc_16kck_0ms_xosc_boden(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_16KCK_0MS_XOSC_BODEN)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 258 CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_258ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_258CK_65MS)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_16kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 258 CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_258ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_258CK_65MS)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_16kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 258 CK + 65 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_258ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_258CK_65MS)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_16kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 258 CK + 65 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_258ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_258CK_65MS)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_16kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_0MS)
}
#[doc = "Ext. Clock; Start-up time: 6 CK + 65 ms"]
#[inline(always)]
pub fn extclk_6ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTCLK_6CK_65MS)
}
#[doc = "Int. RC Osc.; Start-up time: 6 CK + 65 ms"]
#[inline(always)]
pub fn intrcosc_6ck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_6CK_65MS)
}
#[doc = "Int. 128kHz RC Osc.; Start-up time: 6 CK + 64 ms"]
#[inline(always)]
pub fn intrcosc_128khz_6ck_64ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::INTRCOSC_128KHZ_6CK_64MS)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 1K CK + 65 ms"]
#[inline(always)]
pub fn extlofxtal_1kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_1KCK_65MS)
}
#[doc = "Ext. Low-Freq. Crystal; Start-up time: 32K CK + 65 ms"]
#[inline(always)]
pub fn extlofxtal_32kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTLOFXTAL_32KCK_65MS)
}
#[doc = "Full Swing Oscillator; Start-up time: 1K CK + 0 ms; Ceramic res.; BOD enable"]
#[inline(always)]
pub fn fsosc_1kck_0ms_cres_boden(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_1KCK_0MS_CRES_BODEN)
}
#[doc = "Full Swing Oscillator; Start-up time: 16K CK + 4.1 ms; Crystal Osc.; fast rising power"]
#[inline(always)]
pub fn fsosc_16kck_4ms1_xosc_fastpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_16KCK_4MS1_XOSC_FASTPWR)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_1kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_16kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_1kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_16kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_1kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_16kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 0 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_1kck_0ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_0MS)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_16kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_4MS1)
}
#[doc = "Full Swing Oscillator; Start-up time: 1K CK + 4.1 ms; Ceramic res.; fast rising power"]
#[inline(always)]
pub fn fsosc_1kck_4ms1_cres_fastpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_1KCK_4MS1_CRES_FASTPWR)
}
#[doc = "Full Swing Oscillator; Start-up time: 16K CK + 65 ms; Crystal Osc.; slowly rising power"]
#[inline(always)]
pub fn fsosc_16kck_65ms_xosc_slowpwr(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::FSOSC_16KCK_65MS_XOSC_SLOWPWR)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 1K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_1kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_1KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time: 16K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz4_0mhz9_16kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ4_0MHZ9_16KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 1K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_1kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_1KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time: 16K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_0mhz9_3mhz_16kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_0MHZ9_3MHZ_16KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 1K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_1kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_1KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time: 16K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_3mhz_8mhz_16kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_3MHZ_8MHZ_16KCK_65MS)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 1K CK + 4.1 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_1kck_4ms1(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_1KCK_4MS1)
}
#[doc = "Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 65 ms"]
#[inline(always)]
pub fn extxosc_8mhz_xx_16kck_65ms(self) -> &'a mut W {
self.variant(SUT_CKSEL_A::EXTXOSC_8MHZ_XX_16KCK_65MS)
}
}
#[doc = "Field `CKOUT` reader - Clock output on PORTE7"]
pub type CKOUT_R = crate::BitReader<bool>;
#[doc = "Field `CKOUT` writer - Clock output on PORTE7"]
pub type CKOUT_W<'a, const O: u8> = crate::BitWriter<'a, u8, LOW_SPEC, bool, O>;
#[doc = "Field `CKDIV8` reader - Divide clock by 8 internally"]
pub type CKDIV8_R = crate::BitReader<bool>;
#[doc = "Field `CKDIV8` writer - Divide clock by 8 internally"]
pub type CKDIV8_W<'a, const O: u8> = crate::BitWriter<'a, u8, LOW_SPEC, bool, O>;
impl R {
#[doc = "Bits 0:5 - Select Clock Source"]
#[inline(always)]
pub fn sut_cksel(&self) -> SUT_CKSEL_R {
SUT_CKSEL_R::new(self.bits & 0x3f)
}
#[doc = "Bit 6 - Clock output on PORTE7"]
#[inline(always)]
pub fn ckout(&self) -> CKOUT_R {
CKOUT_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - Divide clock by 8 internally"]
#[inline(always)]
pub fn ckdiv8(&self) -> CKDIV8_R {
CKDIV8_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bits 0:5 - Select Clock Source"]
#[inline(always)]
#[must_use]
pub fn sut_cksel(&mut self) -> SUT_CKSEL_W<0> {
SUT_CKSEL_W::new(self)
}
#[doc = "Bit 6 - Clock output on PORTE7"]
#[inline(always)]
#[must_use]
pub fn ckout(&mut self) -> CKOUT_W<6> {
CKOUT_W::new(self)
}
#[doc = "Bit 7 - Divide clock by 8 internally"]
#[inline(always)]
#[must_use]
pub fn ckdiv8(&mut self) -> CKDIV8_W<7> {
CKDIV8_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "No Description.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [low](index.html) module"]
pub struct LOW_SPEC;
impl crate::RegisterSpec for LOW_SPEC {
type Ux = u8;
}
#[doc = "`read()` method returns [low::R](R) reader structure"]
impl crate::Readable for LOW_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [low::W](W) writer structure"]
impl crate::Writable for LOW_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets LOW to value 0"]
impl crate::Resettable for LOW_SPEC {
const RESET_VALUE: Self::Ux = 0;
}