File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl<REG: Resettable + Writable> Reg<REG> {
117
117
/// let state = periph.reg.write_and(|w| State::set(w.field1()));
118
118
/// ```
119
119
#[ inline( always) ]
120
- pub fn write_and < F , T > ( & self , f : F ) -> T
120
+ pub fn from_write < F , T > ( & self , f : F ) -> T
121
121
where
122
122
F : FnOnce ( & mut W < REG > ) -> T ,
123
123
{
@@ -164,7 +164,7 @@ impl<REG: Writable> Reg<REG> {
164
164
///
165
165
/// Unsafe to use with registers which don't allow to write 0.
166
166
#[ inline( always) ]
167
- pub unsafe fn write_with_zero_and < F , T > ( & self , f : F ) -> T
167
+ pub unsafe fn from_write_with_zero < F , T > ( & self , f : F ) -> T
168
168
where
169
169
F : FnOnce ( & mut W < REG > ) -> T ,
170
170
{
@@ -261,7 +261,7 @@ impl<REG: Readable + Writable> Reg<REG> {
261
261
/// ```
262
262
/// Other fields will have the value they had before the call to `modify`.
263
263
#[ inline( always) ]
264
- pub fn modify_and < F , T > ( & self , f : F ) -> T
264
+ pub fn from_modify < F , T > ( & self , f : F ) -> T
265
265
where
266
266
for < ' w > F : FnOnce ( & R < REG > , & ' w mut W < REG > ) -> T ,
267
267
{
You can’t perform that action at this time.
0 commit comments