@@ -44,7 +44,7 @@ pub fn render(
4444
4545 if access == Access :: ReadWrite || access == Access :: ReadWriteOnce {
4646 reg_impl_items. push ( quote ! {
47- /// Modifies the contents of the register
47+ ///Modifies the contents of the register
4848 #[ inline( always) ]
4949 pub fn modify<F >( & self , f: F )
5050 where
@@ -58,22 +58,22 @@ pub fn render(
5858
5959 if can_read {
6060 reg_impl_items. push ( quote ! {
61- /// Reads the contents of the register
61+ ///Reads the contents of the register
6262 #[ inline( always) ]
6363 pub fn read( & self ) -> R {
6464 R { bits: self . register. get( ) }
6565 }
6666 } ) ;
6767
6868 mod_items. push ( quote ! {
69- /// Value read from the register
69+ ///Value read from the register
7070 pub struct R {
7171 bits: #rty,
7272 }
7373 } ) ;
7474
7575 r_impl_items. push ( quote ! {
76- /// Value of the register as raw bits
76+ ///Value of the register as raw bits
7777 #[ inline( always) ]
7878 pub fn bits( & self ) -> #rty {
7979 self . bits
@@ -83,7 +83,7 @@ pub fn render(
8383
8484 if can_write {
8585 reg_impl_items. push ( quote ! {
86- /// Writes to the register
86+ ///Writes to the register
8787 #[ inline( always) ]
8888 pub fn write<F >( & self , f: F )
8989 where
@@ -94,7 +94,7 @@ pub fn render(
9494 } ) ;
9595
9696 mod_items. push ( quote ! {
97- /// Value to write to the register
97+ ///Value to write to the register
9898 pub struct W {
9999 bits: #rty,
100100 }
@@ -107,20 +107,20 @@ pub fn render(
107107 . ok_or_else ( || format ! ( "Register {} has no reset value" , register. name) ) ?;
108108
109109 reg_impl_items. push ( quote ! {
110- /// Reset value of the register
110+ ///Reset value of the register
111111 #[ inline( always) ]
112112 pub const fn reset_value( ) -> #rty {
113113 #rv
114114 }
115- /// Writes the reset value to the register
115+ ///Writes the reset value to the register
116116 #[ inline( always) ]
117117 pub fn reset( & self ) {
118118 self . register. set( Self :: reset_value( ) )
119119 }
120120 } ) ;
121121
122122 w_impl_items. push ( quote ! {
123- /// Writes raw bits to the register
123+ ///Writes raw bits to the register
124124 #[ inline( always) ]
125125 pub #unsafety fn bits( & mut self , bits: #rty) -> & mut Self {
126126 self . bits = bits;
@@ -390,7 +390,7 @@ pub fn fields(
390390 . collect :: < Vec < _ > > ( ) ;
391391 if has_reserved_variant {
392392 vars. push ( quote ! {
393- /// Reserved
393+ ///Reserved
394394 _Reserved( #fty)
395395 } ) ;
396396 }
@@ -423,13 +423,13 @@ pub fn fields(
423423
424424 if f. width == 1 {
425425 enum_items. push ( quote ! {
426- /// Returns `true` if the bit is clear (0)
426+ ///Returns `true` if the bit is clear (0)
427427 #[ inline( always) ]
428428 pub fn bit_is_clear( & self ) -> bool {
429429 !self . #bits( )
430430 }
431431
432- /// Returns `true` if the bit is set (1)
432+ ///Returns `true` if the bit is set (1)
433433 #[ inline( always) ]
434434 pub fn bit_is_set( & self ) -> bool {
435435 self . #bits( )
@@ -438,7 +438,7 @@ pub fn fields(
438438 }
439439
440440 enum_items. push ( quote ! {
441- /// Value of the field as raw bits
441+ ///Value of the field as raw bits
442442 #[ inline( always) ]
443443 pub fn #bits( & self ) -> #fty {
444444 match * self {
@@ -521,7 +521,7 @@ pub fn fields(
521521
522522 let mut pc_r_impl_items = vec ! [
523523 quote! {
524- /// Value of the field as raw bits
524+ ///Value of the field as raw bits
525525 #[ inline( always) ]
526526 pub fn #bits( & self ) -> #fty {
527527 self . bits
@@ -531,13 +531,13 @@ pub fn fields(
531531
532532 if f. width == 1 {
533533 pc_r_impl_items. push ( quote ! {
534- /// Returns `true` if the bit is clear (0)
534+ ///Returns `true` if the bit is clear (0)
535535 #[ inline( always) ]
536536 pub fn bit_is_clear( & self ) -> bool {
537537 !self . #bits( )
538538 }
539539
540- /// Returns `true` if the bit is set (1)
540+ ///Returns `true` if the bit is set (1)
541541 #[ inline( always) ]
542542 pub fn bit_is_set( & self ) -> bool {
543543 self . #bits( )
@@ -546,7 +546,7 @@ pub fn fields(
546546 }
547547
548548 mod_items. push ( quote ! {
549- /// Value of the field
549+ ///Value of the field
550550 pub struct #pc_r {
551551 bits: #fty,
552552 }
@@ -704,7 +704,7 @@ pub fn fields(
704704 }
705705
706706 proxy_items. push ( quote ! {
707- /// Writes `variant` to the field
707+ ///Writes `variant` to the field
708708 #[ inline( always) ]
709709 pub fn variant( self , variant: #pc_w) -> & ' a mut W {
710710 #unsafety {
@@ -740,20 +740,20 @@ pub fn fields(
740740
741741 if width == 1 {
742742 proxy_items. push ( quote ! {
743- /// Sets the field bit
743+ ///Sets the field bit
744744 pub #unsafety fn set_bit( self ) -> & ' a mut W {
745745 self . bit( true )
746746 }
747747
748- /// Clears the field bit
748+ ///Clears the field bit
749749 pub #unsafety fn clear_bit( self ) -> & ' a mut W {
750750 self . bit( false )
751751 }
752752 } ) ;
753753 }
754754
755755 proxy_items. push ( quote ! {
756- /// Writes raw bits to the field
756+ ///Writes raw bits to the field
757757 #[ inline( always) ]
758758 pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
759759 self . w. bits &= !( #mask << #offset) ;
@@ -764,7 +764,7 @@ pub fn fields(
764764
765765 let _pc_w = & f. _pc_w ;
766766 mod_items. push ( quote ! {
767- /// Proxy
767+ ///Proxy
768768 pub struct #_pc_w<' a> {
769769 w: & ' a mut W ,
770770 }
0 commit comments