diff options
| author | HybridChild <[email protected]> | 2025-08-23 10:28:50 +0200 |
|---|---|---|
| committer | HybridChild <[email protected]> | 2025-08-23 10:28:50 +0200 |
| commit | 5d3a1dd7e549de578c6a77d3998beddf1b1474d3 (patch) | |
| tree | 729152220e8a66e30128fcacb3bd9fcf2e31e899 | |
| parent | 109c2cbdc4711bd929308944c22d079e986ebeb9 (diff) | |
stm32/i2c: Remove rustdoc example for assign_operation_framing function
| -rw-r--r-- | embassy-stm32/src/i2c/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/embassy-stm32/src/i2c/mod.rs b/embassy-stm32/src/i2c/mod.rs index 4caa35efb..00330c97e 100644 --- a/embassy-stm32/src/i2c/mod.rs +++ b/embassy-stm32/src/i2c/mod.rs | |||
| @@ -525,16 +525,7 @@ impl OperationFraming { | |||
| 525 | /// | 525 | /// |
| 526 | /// # Returns | 526 | /// # Returns |
| 527 | /// An iterator over (operation, framing) pairs, or an error if the transaction is invalid | 527 | /// An iterator over (operation, framing) pairs, or an error if the transaction is invalid |
| 528 | /// | 528 | /// |
| 529 | /// # Example | ||
| 530 | /// ```rust | ||
| 531 | /// for (op, framing) in assign_operation_framing(operations)? { | ||
| 532 | /// match op { | ||
| 533 | /// Operation::Read(buffer) => self.read_with_framing(addr, buffer, framing).await?, | ||
| 534 | /// Operation::Write(data) => self.write_with_framing(addr, data, framing).await?, | ||
| 535 | /// } | ||
| 536 | /// } | ||
| 537 | /// ``` | ||
| 538 | #[allow(dead_code)] | 529 | #[allow(dead_code)] |
| 539 | fn assign_operation_framing<'a, 'b: 'a>( | 530 | fn assign_operation_framing<'a, 'b: 'a>( |
| 540 | operations: &'a mut [embedded_hal_1::i2c::Operation<'b>], | 531 | operations: &'a mut [embedded_hal_1::i2c::Operation<'b>], |
