@@ -32,6 +32,15 @@ impl RccExt for RCC {
3232}
3333
3434/// Constrained RCC peripheral
35+ ///
36+ /// An instance of this struct is aquired by calling the
37+ /// [constrain](trait.RccExt.html#tymethod.constrain) function on the
38+ /// [pac::RCC](../pac/struct.RCC.html) struct.
39+ ///
40+ /// ```
41+ /// let dp = pac::Peripherals::take().unwrap();
42+ /// let rcc = dp.RCC.constrain();
43+ /// ```
3544pub struct Rcc {
3645 /// AMBA High-performance Bus (AHB) registers
3746 pub ahb : AHB ,
@@ -44,6 +53,14 @@ pub struct Rcc {
4453}
4554
4655/// AMBA High-performance Bus (AHB) registers
56+ ///
57+ /// An instance of this struct is aquired from the [Rcc](../struct.Rcc.html) struct.
58+ ///
59+ /// ```
60+ /// let dp = pac::Peripherals::take().unwrap();
61+ /// let rcc = dp.RCC.constrain();
62+ /// use_ahb(&mut rcc.ahb)
63+ /// ```
4764pub struct AHB {
4865 _0 : ( ) ,
4966}
@@ -61,6 +78,14 @@ impl AHB {
6178}
6279
6380/// Advanced Peripheral Bus 1 (APB1) registers
81+ ///
82+ /// An instance of this struct is aquired from the [Rcc](../struct.Rcc.html) struct.
83+ ///
84+ /// ```
85+ /// let dp = pac::Peripherals::take().unwrap();
86+ /// let rcc = dp.RCC.constrain();
87+ /// use_ahb(&mut rcc.apb1)
88+ /// ```
6489pub struct APB1 {
6590 _0 : ( ) ,
6691}
@@ -78,6 +103,14 @@ impl APB1 {
78103}
79104
80105/// Advanced Peripheral Bus 2 (APB2) registers
106+ ///
107+ /// An instance of this struct is aquired from the [Rcc](../struct.Rcc.html) struct.
108+ ///
109+ /// ```
110+ /// let dp = pac::Peripherals::take().unwrap();
111+ /// let rcc = dp.RCC.constrain();
112+ /// use_ahb(&mut rcc.apb2)
113+ /// ```
81114pub struct APB2 {
82115 _0 : ( ) ,
83116}
@@ -158,6 +191,14 @@ mod usb_clocking {
158191}
159192
160193/// Clock configuration
194+ ///
195+ /// An instance of this struct is aquired from the [Rcc](../struct.Rcc.html) struct.
196+ ///
197+ /// ```
198+ /// let dp = pac::Peripherals::take().unwrap();
199+ /// let rcc = dp.RCC.constrain();
200+ /// use_ahb(&mut rcc.cfgr)
201+ /// ```
161202pub struct CFGR {
162203 hse : Option < u32 > ,
163204 hclk : Option < u32 > ,
0 commit comments