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 57cb8c9 commit b7bafefCopy full SHA for b7bafef
src/mac/frame_filtering/mod.rs
@@ -315,6 +315,20 @@ impl defmt::Format for Mac {
315
}
316
317
318
+#[cfg(feature = "smoltcp-phy")]
319
+impl From<smoltcp::wire::EthernetAddress> for Mac {
320
+ fn from(value: smoltcp::wire::EthernetAddress) -> Self {
321
+ Self::new(value.0)
322
+ }
323
+}
324
+
325
326
+impl From<Mac> for smoltcp::wire::EthernetAddress {
327
+ fn from(value: Mac) -> Self {
328
+ smoltcp::wire::EthernetAddress::from_bytes(&value.0)
329
330
331
332
#[derive(Debug, Clone, Copy)]
333
/// The type of an address filter.
334
pub enum AddressFilterType {
0 commit comments