aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32-wpan/src/mac/commands.rs4
-rw-r--r--embassy-stm32-wpan/src/mac/indications.rs6
-rw-r--r--embassy-stm32-wpan/src/mac/typedefs.rs1
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
3use core::{mem, slice}; 3use core::{mem, slice};
4 4
5use smoltcp::wire::ieee802154::Frame;
6
5use super::opcodes::OpcodeM4ToM0; 7use super::opcodes::OpcodeM4ToM0;
6use super::typedefs::{ 8use 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
11use smoltcp::wire::ieee802154::Frame;
12
13pub trait MacCommand: Sized { 13pub 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 @@
1use core::slice; 1use core::slice;
2 2
3use smoltcp::wire::Ieee802154FrameType;
4use smoltcp::wire::ieee802154::Frame;
5
3use super::consts::MAX_PENDING_ADDRESS; 6use super::consts::MAX_PENDING_ADDRESS;
4use super::event::ParseableMacEvent; 7use super::event::ParseableMacEvent;
5use super::typedefs::{ 8use super::typedefs::{
@@ -7,9 +10,6 @@ use super::typedefs::{
7 PanId, SecurityLevel, 10 PanId, SecurityLevel,
8}; 11};
9 12
10use smoltcp::wire::Ieee802154FrameType;
11use 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 @@
1use core::fmt::Debug; 1use core::fmt::Debug;
2
2use smoltcp::wire::ieee802154::{Address, AddressingMode, Pan}; 3use smoltcp::wire::ieee802154::{Address, AddressingMode, Pan};
3 4
4use crate::numeric_enum; 5use crate::numeric_enum;