mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
enc28j60: expose a the MAC address via address()
getter
This commit is contained in:
parent
ce0d787781
commit
e1a8caffa4
@ -194,6 +194,11 @@ where
|
|||||||
self.bit_field_set(common::Register::ECON1, common::ECON1::mask().rxen());
|
self.bit_field_set(common::Register::ECON1, common::ECON1::mask().rxen());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the device's MAC address
|
||||||
|
pub fn address(&self) -> [u8; 6] {
|
||||||
|
self.mac_addr
|
||||||
|
}
|
||||||
|
|
||||||
/// Flushes the transmit buffer, ensuring all pending transmissions have completed
|
/// Flushes the transmit buffer, ensuring all pending transmissions have completed
|
||||||
/// NOTE: The returned packet *must* be `read` or `ignore`-d, otherwise this method will always
|
/// NOTE: The returned packet *must* be `read` or `ignore`-d, otherwise this method will always
|
||||||
/// return `None` on subsequent invocations
|
/// return `None` on subsequent invocations
|
||||||
|
Loading…
Reference in New Issue
Block a user