@@ -43,7 +43,7 @@ pub fn render() -> Result<Vec<Tokens>> {
43
43
{
44
44
///Reads the contents of the register
45
45
#[ inline( always) ]
46
- pub fn read( & self ) -> R <U , REG > {
46
+ pub fn read( & self ) -> R <U , Self > {
47
47
R :: new( ( * self . 0 ) . get( ) )
48
48
}
49
49
}
@@ -73,7 +73,7 @@ pub fn render() -> Result<Vec<Tokens>> {
73
73
#[ inline( always) ]
74
74
pub fn write<F >( & self , f: F )
75
75
where
76
- F : FnOnce ( & mut W <U , REG >) -> & mut W <U , REG >
76
+ F : FnOnce ( & mut W <U , Self >) -> & mut W <U , Self >
77
77
{
78
78
79
79
( * self . 0 ) . set( f( & mut W :: new( Self :: reset_value( ) ) ) . bits) ;
@@ -92,7 +92,7 @@ pub fn render() -> Result<Vec<Tokens>> {
92
92
#[ inline( always) ]
93
93
pub fn write_with_zero<F >( & self , f: F )
94
94
where
95
- F : FnOnce ( & mut W <U , REG >) -> & mut W <U , REG >
95
+ F : FnOnce ( & mut W <U , Self >) -> & mut W <U , Self >
96
96
{
97
97
98
98
( * self . 0 ) . set( f( & mut W :: new( U :: default ( ) ) ) . bits) ;
@@ -111,7 +111,7 @@ pub fn render() -> Result<Vec<Tokens>> {
111
111
#[ inline( always) ]
112
112
pub fn modify<F >( & self , f: F )
113
113
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 >
115
115
{
116
116
let bits = ( * self . 0 ) . get( ) ;
117
117
( * self . 0 ) . set( f( & R :: new( bits) , & mut W :: new( bits) ) . bits) ;
0 commit comments