@@ -28,12 +28,12 @@ impl<const P: char, const N: u8, MODE> OutputPin for Pin<P, N, Output<MODE>> {
28
28
impl < const P : char , const N : u8 , MODE > StatefulOutputPin for Pin < P , N , Output < MODE > > {
29
29
#[ inline( always) ]
30
30
fn is_set_high ( & mut self ) -> Result < bool , Self :: Error > {
31
- Ok ( Pin :: is_set_high ( self ) )
31
+ Ok ( Self :: is_set_high ( self ) )
32
32
}
33
33
34
34
#[ inline( always) ]
35
35
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
36
- Ok ( Pin :: is_set_low ( self ) )
36
+ Ok ( Self :: is_set_low ( self ) )
37
37
}
38
38
}
39
39
@@ -43,12 +43,12 @@ where
43
43
{
44
44
#[ inline( always) ]
45
45
fn is_high ( & mut self ) -> Result < bool , Self :: Error > {
46
- Ok ( Pin :: is_high ( self ) )
46
+ Ok ( Self :: is_high ( self ) )
47
47
}
48
48
49
49
#[ inline( always) ]
50
50
fn is_low ( & mut self ) -> Result < bool , Self :: Error > {
51
- Ok ( Pin :: is_low ( self ) )
51
+ Ok ( Self :: is_low ( self ) )
52
52
}
53
53
}
54
54
@@ -74,12 +74,12 @@ impl<MODE> OutputPin for ErasedPin<Output<MODE>> {
74
74
impl < MODE > StatefulOutputPin for ErasedPin < Output < MODE > > {
75
75
#[ inline( always) ]
76
76
fn is_set_high ( & mut self ) -> Result < bool , Self :: Error > {
77
- Ok ( ErasedPin :: is_set_high ( self ) )
77
+ Ok ( Self :: is_set_high ( self ) )
78
78
}
79
79
80
80
#[ inline( always) ]
81
81
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
82
- Ok ( ErasedPin :: is_set_low ( self ) )
82
+ Ok ( Self :: is_set_low ( self ) )
83
83
}
84
84
}
85
85
@@ -89,12 +89,12 @@ where
89
89
{
90
90
#[ inline( always) ]
91
91
fn is_high ( & mut self ) -> Result < bool , Self :: Error > {
92
- Ok ( ErasedPin :: is_high ( self ) )
92
+ Ok ( Self :: is_high ( self ) )
93
93
}
94
94
95
95
#[ inline( always) ]
96
96
fn is_low ( & mut self ) -> Result < bool , Self :: Error > {
97
- Ok ( ErasedPin :: is_low ( self ) )
97
+ Ok ( Self :: is_low ( self ) )
98
98
}
99
99
}
100
100
@@ -120,12 +120,12 @@ impl<const P: char, MODE> OutputPin for PartiallyErasedPin<P, Output<MODE>> {
120
120
impl < const P : char , MODE > StatefulOutputPin for PartiallyErasedPin < P , Output < MODE > > {
121
121
#[ inline( always) ]
122
122
fn is_set_high ( & mut self ) -> Result < bool , Self :: Error > {
123
- Ok ( PartiallyErasedPin :: is_set_high ( self ) )
123
+ Ok ( Self :: is_set_high ( self ) )
124
124
}
125
125
126
126
#[ inline( always) ]
127
127
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
128
- Ok ( PartiallyErasedPin :: is_set_low ( self ) )
128
+ Ok ( Self :: is_set_low ( self ) )
129
129
}
130
130
}
131
131
@@ -135,12 +135,12 @@ where
135
135
{
136
136
#[ inline( always) ]
137
137
fn is_high ( & mut self ) -> Result < bool , Self :: Error > {
138
- Ok ( PartiallyErasedPin :: is_high ( self ) )
138
+ Ok ( Self :: is_high ( self ) )
139
139
}
140
140
141
141
#[ inline( always) ]
142
142
fn is_low ( & mut self ) -> Result < bool , Self :: Error > {
143
- Ok ( PartiallyErasedPin :: is_low ( self ) )
143
+ Ok ( Self :: is_low ( self ) )
144
144
}
145
145
}
146
146
@@ -160,9 +160,9 @@ impl<const P: char, const N: u8> OutputPin for DynamicPin<P, N> {
160
160
161
161
impl < const P : char , const N : u8 > InputPin for DynamicPin < P , N > {
162
162
fn is_high ( & mut self ) -> Result < bool , Self :: Error > {
163
- DynamicPin :: is_high ( self )
163
+ Self :: is_high ( self )
164
164
}
165
165
fn is_low ( & mut self ) -> Result < bool , Self :: Error > {
166
- DynamicPin :: is_low ( self )
166
+ Self :: is_low ( self )
167
167
}
168
168
}
0 commit comments