We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573b9fd commit 65cbd22Copy full SHA for 65cbd22
nrf-hal-common/src/twim.rs
@@ -86,16 +86,16 @@ where
86
Twim(twim)
87
}
88
89
- /// Re-enable the instance after it was previously disabled.
90
- pub fn enable(&mut self) {
91
- self.0.enable.write(|w| w.enable().enabled());
92
- }
93
-
94
/// Disable the instance.
95
pub fn disable(&mut self) {
96
self.0.enable.write(|w| w.enable().disabled());
97
98
+ /// Re-enable the instance after it was previously disabled.
+ pub fn enable(&mut self) {
+ self.0.enable.write(|w| w.enable().enabled());
+ }
+
99
/// Set TX buffer, checking that it is in RAM and has suitable length.
100
unsafe fn set_tx_buffer(&mut self, buffer: &[u8]) -> Result<(), Error> {
101
slice_in_ram_or(buffer, Error::DMABufferNotInDataMemory)?;
0 commit comments