@@ -43,7 +43,7 @@ pub fn render() -> Result<Vec<Tokens>> {
4343 {
4444 ///Reads the contents of the register
4545 #[ inline( always) ]
46- pub fn read( & self ) -> R <U , REG > {
46+ pub fn read( & self ) -> R <U , Self > {
4747 R :: new( ( * self . 0 ) . get( ) )
4848 }
4949 }
@@ -73,7 +73,7 @@ pub fn render() -> Result<Vec<Tokens>> {
7373 #[ inline( always) ]
7474 pub fn write<F >( & self , f: F )
7575 where
76- F : FnOnce ( & mut W <U , REG >) -> & mut W <U , REG >
76+ F : FnOnce ( & mut W <U , Self >) -> & mut W <U , Self >
7777 {
7878
7979 ( * self . 0 ) . set( f( & mut W :: new( Self :: reset_value( ) ) ) . bits) ;
@@ -92,7 +92,7 @@ pub fn render() -> Result<Vec<Tokens>> {
9292 #[ inline( always) ]
9393 pub fn write_with_zero<F >( & self , f: F )
9494 where
95- F : FnOnce ( & mut W <U , REG >) -> & mut W <U , REG >
95+ F : FnOnce ( & mut W <U , Self >) -> & mut W <U , Self >
9696 {
9797
9898 ( * self . 0 ) . set( f( & mut W :: new( U :: default ( ) ) ) . bits) ;
@@ -111,7 +111,7 @@ pub fn render() -> Result<Vec<Tokens>> {
111111 #[ inline( always) ]
112112 pub fn modify<F >( & self , f: F )
113113 where
114- for <' w> F : FnOnce ( & R <U , REG >, & ' w mut W <U , REG >) -> & ' w mut W <U , REG >
114+ for <' w> F : FnOnce ( & R <U , Self >, & ' w mut W <U , Self >) -> & ' w mut W <U , Self >
115115 {
116116 let bits = ( * self . 0 ) . get( ) ;
117117 ( * self . 0 ) . set( f( & R :: new( bits) , & mut W :: new( bits) ) . bits) ;
0 commit comments