Finalizing updates to MACRAW support after testing
This commit is contained in:
parent
c25cbe6fdb
commit
30293b65a5
3 changed files with 70 additions and 22 deletions
|
|
@ -103,8 +103,13 @@ impl<SpiBus: Bus> UninitializedDevice<SpiBus> {
|
|||
mut self,
|
||||
mac: MacAddress,
|
||||
) -> Result<RawDevice<SpiBus>, InitializeError<SpiBus::Error>> {
|
||||
// Reset the device.
|
||||
self.bus
|
||||
.write_frame(register::COMMON, register::common::MODE, &[0x80])?;
|
||||
|
||||
self.bus
|
||||
.write_frame(register::COMMON, register::common::MAC, &mac.octets)?;
|
||||
|
||||
RawDevice::new(self.bus)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue