1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
use crate::generic::*;
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkSysCtrlAuxsrc(pub u8);
impl ClkSysCtrlAuxsrc {
    pub const CLKSRC_PLL_SYS: Self = Self(0);
    pub const CLKSRC_PLL_USB: Self = Self(0x01);
    pub const ROSC_CLKSRC: Self = Self(0x02);
    pub const XOSC_CLKSRC: Self = Self(0x03);
    pub const CLKSRC_GPIN0: Self = Self(0x04);
    pub const CLKSRC_GPIN1: Self = Self(0x05);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkRefCtrlSrc(pub u8);
impl ClkRefCtrlSrc {
    pub const ROSC_CLKSRC_PH: Self = Self(0);
    pub const CLKSRC_CLK_REF_AUX: Self = Self(0x01);
    pub const XOSC_CLKSRC: Self = Self(0x02);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkUsbCtrlAuxsrc(pub u8);
impl ClkUsbCtrlAuxsrc {
    pub const CLKSRC_PLL_USB: Self = Self(0);
    pub const CLKSRC_PLL_SYS: Self = Self(0x01);
    pub const ROSC_CLKSRC_PH: Self = Self(0x02);
    pub const XOSC_CLKSRC: Self = Self(0x03);
    pub const CLKSRC_GPIN0: Self = Self(0x04);
    pub const CLKSRC_GPIN1: Self = Self(0x05);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkGpout3CtrlAuxsrc(pub u8);
impl ClkGpout3CtrlAuxsrc {
    pub const CLKSRC_PLL_SYS: Self = Self(0);
    pub const CLKSRC_GPIN0: Self = Self(0x01);
    pub const CLKSRC_GPIN1: Self = Self(0x02);
    pub const CLKSRC_PLL_USB: Self = Self(0x03);
    pub const ROSC_CLKSRC_PH: Self = Self(0x04);
    pub const XOSC_CLKSRC: Self = Self(0x05);
    pub const CLK_SYS: Self = Self(0x06);
    pub const CLK_USB: Self = Self(0x07);
    pub const CLK_ADC: Self = Self(0x08);
    pub const CLK_RTC: Self = Self(0x09);
    pub const CLK_REF: Self = Self(0x0a);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkGpout1CtrlAuxsrc(pub u8);
impl ClkGpout1CtrlAuxsrc {
    pub const CLKSRC_PLL_SYS: Self = Self(0);
    pub const CLKSRC_GPIN0: Self = Self(0x01);
    pub const CLKSRC_GPIN1: Self = Self(0x02);
    pub const CLKSRC_PLL_USB: Self = Self(0x03);
    pub const ROSC_CLKSRC: Self = Self(0x04);
    pub const XOSC_CLKSRC: Self = Self(0x05);
    pub const CLK_SYS: Self = Self(0x06);
    pub const CLK_USB: Self = Self(0x07);
    pub const CLK_ADC: Self = Self(0x08);
    pub const CLK_RTC: Self = Self(0x09);
    pub const CLK_REF: Self = Self(0x0a);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkSysCtrlSrc(pub u8);
impl ClkSysCtrlSrc {
    pub const CLK_REF: Self = Self(0);
    pub const CLKSRC_CLK_SYS_AUX: Self = Self(0x01);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct Fc0Src(pub u8);
impl Fc0Src {
    pub const NULL: Self = Self(0);
    pub const PLL_SYS_CLKSRC_PRIMARY: Self = Self(0x01);
    pub const PLL_USB_CLKSRC_PRIMARY: Self = Self(0x02);
    pub const ROSC_CLKSRC: Self = Self(0x03);
    pub const ROSC_CLKSRC_PH: Self = Self(0x04);
    pub const XOSC_CLKSRC: Self = Self(0x05);
    pub const CLKSRC_GPIN0: Self = Self(0x06);
    pub const CLKSRC_GPIN1: Self = Self(0x07);
    pub const CLK_REF: Self = Self(0x08);
    pub const CLK_SYS: Self = Self(0x09);
    pub const CLK_PERI: Self = Self(0x0a);
    pub const CLK_USB: Self = Self(0x0b);
    pub const CLK_ADC: Self = Self(0x0c);
    pub const CLK_RTC: Self = Self(0x0d);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkRefCtrlAuxsrc(pub u8);
impl ClkRefCtrlAuxsrc {
    pub const CLKSRC_PLL_USB: Self = Self(0);
    pub const CLKSRC_GPIN0: Self = Self(0x01);
    pub const CLKSRC_GPIN1: Self = Self(0x02);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkGpout2CtrlAuxsrc(pub u8);
impl ClkGpout2CtrlAuxsrc {
    pub const CLKSRC_PLL_SYS: Self = Self(0);
    pub const CLKSRC_GPIN0: Self = Self(0x01);
    pub const CLKSRC_GPIN1: Self = Self(0x02);
    pub const CLKSRC_PLL_USB: Self = Self(0x03);
    pub const ROSC_CLKSRC_PH: Self = Self(0x04);
    pub const XOSC_CLKSRC: Self = Self(0x05);
    pub const CLK_SYS: Self = Self(0x06);
    pub const CLK_USB: Self = Self(0x07);
    pub const CLK_ADC: Self = Self(0x08);
    pub const CLK_RTC: Self = Self(0x09);
    pub const CLK_REF: Self = Self(0x0a);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkGpout0CtrlAuxsrc(pub u8);
impl ClkGpout0CtrlAuxsrc {
    pub const CLKSRC_PLL_SYS: Self = Self(0);
    pub const CLKSRC_GPIN0: Self = Self(0x01);
    pub const CLKSRC_GPIN1: Self = Self(0x02);
    pub const CLKSRC_PLL_USB: Self = Self(0x03);
    pub const ROSC_CLKSRC: Self = Self(0x04);
    pub const XOSC_CLKSRC: Self = Self(0x05);
    pub const CLK_SYS: Self = Self(0x06);
    pub const CLK_USB: Self = Self(0x07);
    pub const CLK_ADC: Self = Self(0x08);
    pub const CLK_RTC: Self = Self(0x09);
    pub const CLK_REF: Self = Self(0x0a);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkAdcCtrlAuxsrc(pub u8);
impl ClkAdcCtrlAuxsrc {
    pub const CLKSRC_PLL_USB: Self = Self(0);
    pub const CLKSRC_PLL_SYS: Self = Self(0x01);
    pub const ROSC_CLKSRC_PH: Self = Self(0x02);
    pub const XOSC_CLKSRC: Self = Self(0x03);
    pub const CLKSRC_GPIN0: Self = Self(0x04);
    pub const CLKSRC_GPIN1: Self = Self(0x05);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkPeriCtrlAuxsrc(pub u8);
impl ClkPeriCtrlAuxsrc {
    pub const CLK_SYS: Self = Self(0);
    pub const CLKSRC_PLL_SYS: Self = Self(0x01);
    pub const CLKSRC_PLL_USB: Self = Self(0x02);
    pub const ROSC_CLKSRC_PH: Self = Self(0x03);
    pub const XOSC_CLKSRC: Self = Self(0x04);
    pub const CLKSRC_GPIN0: Self = Self(0x05);
    pub const CLKSRC_GPIN1: Self = Self(0x06);
}
#[repr(transparent)]
#[derive(Copy, Clone)]
pub struct ClkRtcCtrlAuxsrc(pub u8);
impl ClkRtcCtrlAuxsrc {
    pub const CLKSRC_PLL_USB: Self = Self(0);
    pub const CLKSRC_PLL_SYS: Self = Self(0x01);
    pub const ROSC_CLKSRC_PH: Self = Self(0x02);
    pub const XOSC_CLKSRC: Self = Self(0x03);
    pub const CLKSRC_GPIN0: Self = Self(0x04);
    pub const CLKSRC_GPIN1: Self = Self(0x05);
}