diff options
| author | xoviat <[email protected]> | 2025-11-17 11:24:49 -0600 |
|---|---|---|
| committer | xoviat <[email protected]> | 2025-11-17 11:24:49 -0600 |
| commit | ca02cdf792d4aff16e2f265616bec5abdb3c7a1a (patch) | |
| tree | 6b61248333bbc9f12948ca9689104bc03d592757 | |
| parent | 26038cfbc60e9a7b64d70ade51e9e9f34c912e2e (diff) | |
fmt
| -rw-r--r-- | embassy-stm32-wpan/src/mac/commands.rs | 4 | ||||
| -rw-r--r-- | embassy-stm32-wpan/src/mac/indications.rs | 6 | ||||
| -rw-r--r-- | embassy-stm32-wpan/src/mac/typedefs.rs | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/embassy-stm32-wpan/src/mac/commands.rs b/embassy-stm32-wpan/src/mac/commands.rs index e0bc50e2a..a3a40f377 100644 --- a/embassy-stm32-wpan/src/mac/commands.rs +++ b/embassy-stm32-wpan/src/mac/commands.rs | |||
| @@ -2,14 +2,14 @@ | |||
| 2 | 2 | ||
| 3 | use core::{mem, slice}; | 3 | use core::{mem, slice}; |
| 4 | 4 | ||
| 5 | use smoltcp::wire::ieee802154::Frame; | ||
| 6 | |||
| 5 | use super::opcodes::OpcodeM4ToM0; | 7 | use super::opcodes::OpcodeM4ToM0; |
| 6 | use super::typedefs::{ | 8 | use super::typedefs::{ |
| 7 | AddressMode, Capabilities, DisassociationReason, GtsCharacteristics, KeyIdMode, MacAddress, MacChannel, MacStatus, | 9 | AddressMode, Capabilities, DisassociationReason, GtsCharacteristics, KeyIdMode, MacAddress, MacChannel, MacStatus, |
| 8 | PanId, PibId, ScanType, SecurityLevel, | 10 | PanId, PibId, ScanType, SecurityLevel, |
| 9 | }; | 11 | }; |
| 10 | 12 | ||
| 11 | use smoltcp::wire::ieee802154::Frame; | ||
| 12 | |||
| 13 | pub trait MacCommand: Sized { | 13 | pub trait MacCommand: Sized { |
| 14 | const OPCODE: OpcodeM4ToM0; | 14 | const OPCODE: OpcodeM4ToM0; |
| 15 | 15 | ||
diff --git a/embassy-stm32-wpan/src/mac/indications.rs b/embassy-stm32-wpan/src/mac/indications.rs index 45f79ac5b..05869ba2a 100644 --- a/embassy-stm32-wpan/src/mac/indications.rs +++ b/embassy-stm32-wpan/src/mac/indications.rs | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | use core::slice; | 1 | use core::slice; |
| 2 | 2 | ||
| 3 | use smoltcp::wire::Ieee802154FrameType; | ||
| 4 | use smoltcp::wire::ieee802154::Frame; | ||
| 5 | |||
| 3 | use super::consts::MAX_PENDING_ADDRESS; | 6 | use super::consts::MAX_PENDING_ADDRESS; |
| 4 | use super::event::ParseableMacEvent; | 7 | use super::event::ParseableMacEvent; |
| 5 | use super::typedefs::{ | 8 | use super::typedefs::{ |
| @@ -7,9 +10,6 @@ use super::typedefs::{ | |||
| 7 | PanId, SecurityLevel, | 10 | PanId, SecurityLevel, |
| 8 | }; | 11 | }; |
| 9 | 12 | ||
| 10 | use smoltcp::wire::Ieee802154FrameType; | ||
| 11 | use smoltcp::wire::ieee802154::Frame; | ||
| 12 | |||
| 13 | /// MLME ASSOCIATE Indication which will be used by the MAC | 13 | /// MLME ASSOCIATE Indication which will be used by the MAC |
| 14 | /// to indicate the reception of an association request command | 14 | /// to indicate the reception of an association request command |
| 15 | #[repr(C)] | 15 | #[repr(C)] |
diff --git a/embassy-stm32-wpan/src/mac/typedefs.rs b/embassy-stm32-wpan/src/mac/typedefs.rs index 44028bf47..7e3ef4962 100644 --- a/embassy-stm32-wpan/src/mac/typedefs.rs +++ b/embassy-stm32-wpan/src/mac/typedefs.rs | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | use core::fmt::Debug; | 1 | use core::fmt::Debug; |
| 2 | |||
| 2 | use smoltcp::wire::ieee802154::{Address, AddressingMode, Pan}; | 3 | use smoltcp::wire::ieee802154::{Address, AddressingMode, Pan}; |
| 3 | 4 | ||
| 4 | use crate::numeric_enum; | 5 | use crate::numeric_enum; |
