Commit graph

189 commits

Author SHA1 Message Date
Michael Watzko
d58ab215b1 Add DeviceRefMut that allows device operation without moving ownership 2021-04-08 01:20:18 +02:00
Michael Watzko
ee415c63f0 Ensure that every udp socket can connect at the same time 2021-04-08 00:24:10 +02:00
Michael Watzko
6c6681d579 Ensure that the chip-select pin is high at the end of a frame transaction 2021-04-06 19:27:17 +02:00
Michael Watzko
200a676a7c No longer allow removed lint: clippy::unknown_clippy_lints 2021-04-06 19:05:05 +02:00
Michael Watzko
a871ffb621 Fix new clippy remarks 2021-04-06 19:03:08 +02:00
Michael Watzko
97f211110e Add Device::{gateway, subnet_mask, mac, ip, version} getter 2021-04-06 18:57:23 +02:00
kellerkindt
8af392d06b
No longer valid 2021-03-23 23:43:05 +01:00
kellerkindt
9e9ff5733e
Fix typo in README 2021-03-23 23:42:42 +01:00
kellerkindt
f559047c8c
Fix outdated mention of interface in README 2021-03-23 23:42:04 +01:00
Michael Watzko
c85373174b Add FourWireRef to use Device with borrowed SPIs and OutputPins 2021-03-23 23:33:40 +01:00
Michael Watzko
5e0568d817 Export FourWireError and ThreeWireError 2021-03-23 23:32:43 +01:00
Michael Watzko
5c004e9365 Make Mode fields publicly accessible 2021-03-23 23:32:14 +01:00
Michael Watzko
10bbe99582 Add Device::deactivate and InactiveDevice::activate 2021-03-23 23:31:51 +01:00
Michael Watzko
050fc4c1ba Add MacAddress::octets() and impl From<[u8; 6]> for MacAddress 2021-03-23 23:27:09 +01:00
Michael Watzko
8ac47ef90f Replace unused Ipv4Addr impl with a pub use embedded_nal::Ipv4Addr 2021-03-23 23:26:42 +01:00
Michael Watzko
a0f46ae95e Add no-chip-version-assertion to disable checking the chip for the version 2021-03-23 23:25:45 +01:00
Jonah Dahlquist
52f0d06e30 Updated dependencies, fixed port closing after receive 2021-03-22 22:04:12 -07:00
Jonah Dahlquist
dfa252f997 Short-term net fix 2021-02-25 19:49:18 -08:00
Jonah Dahlquist
b49f41c853 fmt 2021-02-25 19:40:20 -08:00
Jonah Dahlquist
daa1c00cc3 Minor typo fixes, clean-up of the public interface 2021-02-18 19:27:14 -08:00
Jonah Dahlquist
a3e0911c5b Minor typo fixes, clean-up of the public interface 2021-02-18 19:27:14 -08:00
Jonah Dahlquist
ca8268ab31 Removed the active/inactive concept, and changed bus to use blocking traits to allow users to use shared-bus 2021-02-18 19:27:12 -08:00
Jonah Dahlquist
55097322a0 Updated embedded-nal and removed (now-redundent) Interface struct 2021-02-18 19:25:58 -08:00
Jonah Dahlquist
d6574b8c23 Removed refcell container from Interface 2021-02-18 19:24:06 -08:00
Jonah Dahlquist
d844a116d5 Updated to latest embedded-nal 2021-02-18 19:24:06 -08:00
Jonah Dahlquist
9a057190a8 Updated UDP impl to be compatible with embedded-nal 0.2.0 2021-02-18 19:24:06 -08:00
Jonah Dahlquist
da2bcd4e7d Updated to released version of embedded-nal 2021-02-18 19:24:06 -08:00
Jonah Dahlquist
d3ca4a3d92 Removed unnecessary extern crate statements 2021-02-18 19:24:04 -08:00
Jonah Dahlquist
259da58eb9 Recovered MAC address docs from previous driver code 2021-02-18 19:23:28 -08:00
Jonah Dahlquist
90604fc86a Implemented From trait for busses 2021-02-18 19:23:28 -08:00
Jonah Dahlquist
2f26a508da Implemented From trait for InitializeError 2021-02-18 19:23:28 -08:00
Jonah Dahlquist
2b59081e74 Removed implementation description from README, updated example to work with latest embedded-nal interface, removed completed TODOs 2021-02-18 19:23:28 -08:00
Jonah Dahlquist
839367b5f2 Different clippy lint allowed 2021-02-18 19:23:28 -08:00
Jonah Dahlquist
dcfa65509e Renamed Network mod to Host, removed debugging function, communted out dormant portions of DHCP host config 2021-02-18 19:23:27 -08:00
Jonah Dahlquist
1cac758d5a Added self to authors list, fixed Clippy lint errors 2021-02-18 19:17:30 -08:00
Jonah Dahlquist
cc4db22b66 Changed to depend on upstream version of embedded-nal after PR merge 2021-02-18 19:16:16 -08:00
Alex M
79dc9a4fee Add method to read PHY configuration. 2021-02-18 19:16:16 -08:00
Jonah Dahlquist
6caeeae2eb Updated dependencies 2021-02-18 19:16:16 -08:00
Jonah Dahlquist
79b1f52102 Ran cargo fmt 2021-02-18 19:16:16 -08:00
Jonah Dahlquist
1d533b2104 Added a way to consume the Interface object, and easy single-function way to create a network interface with mac and IP 2021-02-18 19:16:16 -08:00
Jonah Dahlquist
3cad9cac57 Renamed W5500 -> Device, added an Interface struct that should implement the embedded-nal traits, used it to internalize the mutability of the device 2021-02-18 19:16:16 -08:00
Jonah Dahlquist
f546ff2011 Re-wrote socket implementations to be more compatible with embedded-nal 2021-02-18 19:16:14 -08:00
Jonah Dahlquist
b1e83e3d05 Added TODOs for safer sending 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
8aa5656873 Added timeout interrupt bit, fixed several bugs with Socket code, added getters for the TX read/write pointers 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
41cd42eabf added all 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
074e01e3a0 Removed nb from areas where it's not necessary 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
3dbb2d4e64 Made dump_register suppress any errors 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
4ff4bc95c9 Added register_dump function to show the contents of a socket register 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
adc7005255 Fixed representation of enum to be u8, fixed FourWire bus to set CS pin low during communication, instead of high 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
b6a52cbf8e Removed socket ownership checking, giving up on that effort for now 2021-02-18 19:12:57 -08:00