Commit graph

71 commits

Author SHA1 Message Date
Ryan Summers
b9ba375ca2 Refactoring bus traits for embedded-hal 1.0 2024-07-05 14:18:40 +02:00
Lachezar Lechev
545debf0e3
chore: simplify
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-07-13 12:10:46 +03:00
Lachezar Lechev
43fda7bab1
fix: device import & rustfmt
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-07-12 17:44:01 +03:00
Lachezar Lechev
501efeafbc
Merge branch 'master' into feat/retry-time-and-count 2023-07-12 17:32:30 +03:00
Lachezar Lechev
a858bd815a
feat: Mode to register value and common mode impls
- make crate no_std when not running tests

Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-07-12 17:20:27 +03:00
Felix Lelchuk
1f6a8a290c Allow truncated RawDevice::read_frame()
- `RawDevice::read_frame()` succeeds with a receive buffer smaller than the frame.
- Introduce `RxCursor` and `TxCursor` to track/update RX/TX buffer pointers making
  it easier to reason about functions such as `read_frame` / `write_frame`.
2023-06-22 11:21:20 +02:00
Ryan Summers
f3b4fa12b3 Fixing crate docs 2023-03-31 13:46:30 +02:00
Ryan Summers
953ed3c7b1 Readding reference docs 2023-03-31 13:45:42 +02:00
Lachezar Lechev
a0c8a42d64
fix: export only InitializeError from the module
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-06 14:53:48 +02:00
Lachezar Lechev
c3f79c96ed
feat: derive defmt::Format for more structs and errors
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-06 12:54:55 +02:00
Lachezar Lechev
1b2ba0bfab
feat: export uninitialized_device & add docs
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-02-17 17:51:20 +02:00
Lachezar Lechev
747fe0cca4
feat: export Host
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-02-10 14:50:08 +02:00
Ryan Summers
c25cbe6fdb Adding macraw support 2022-04-28 11:47:07 +02:00
Ryan Summers
9327809fe7
Add TCP-based NAL implementation (#24)
* Adding TCP-based NAL implementation

* Updating NAL dependency

* Updating connect to handle network errors

* Adding support for getting IP and MAC, allowing transparent access to the W5500 in the interface.

* Fixing TCP connect when not in INIT

* Adding wait after reset

* Reverting changes

* More delta reductions

* Fixing format

* Updating changelog

* Fixing docs

* Updating NAL version

* Adding debug derive

* fixing TCP write

* Updating RX receive size to allow less than 8 bytes

* Fixing clippy lints
2022-01-23 13:30:08 +01:00
Michael Watzko
96c6edfd81 Take ownership of Spi in activate_ref 2021-04-16 01:30:11 +02: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
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
d3ca4a3d92 Removed unnecessary extern crate statements 2021-02-18 19:24:04 -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
79b1f52102 Ran cargo fmt 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
41cd42eabf added all 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
Jonah Dahlquist
b30e4d0d34 Stubbed UdpSocket struct, added Socket structs 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
d2fb6b9996 fmt 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
fd9e861dde Added Network trait that keeps track of network settings and has DHCP/Manual options for setting up options 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
7dd4c04fe4 Renamed Settings to Mode since it only applies to network mode byte 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
ce36644d9c Added module containing new register address representations, added chip mode init/reset 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
3177bad09f Restored chip mode settings/common type structs 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
16e813e45b Implemented frame transfer for four-wire bus 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
a43f86d744 Added bus model and InactiveW5500 state 2021-02-18 19:12:57 -08:00
Jonah Dahlquist
03e30ef699 Began skeleton of new UninitializedW5500 struct and Bus trait/impls 2021-02-18 19:12:55 -08:00
kellerkindt
2b82c7f179
Update broken_intra_doc_links lint 2020-10-14 18:59:14 +02:00
Alex M
73f26ca2b2 Add method to read PHY configuration. 2020-08-11 17:25:05 -07:00
Alex M
cbb3468893 Add constructors for network types. 2020-08-10 12:28:01 -07:00
Paul Florence
bf75387b37 Make IpAddr "Eq" 2020-07-20 13:21:33 +02:00
Michael Watzko
02ae928a51 Update doc and links 2020-06-10 17:19:34 +02:00
Michael Watzko
0785534c1c Remove unused lifetime (result of rebase merge) 2020-06-10 16:55:41 +02:00
Michael Watzko
2e1aa239d2 Upgrade to rust 2018 edition 2020-06-10 16:55:23 +02:00
Michael Watzko
b09643c886 Fix rightful clippy complaints about map_err 2020-06-10 16:55:23 +02:00
Michael Watzko
45d0a5c720 No longer allow unused 2020-06-10 16:55:22 +02:00
Michael Watzko
caecd49b08 Fix intra_doc_link_resolution_failure and deny in lib.rs 2020-06-10 16:55:22 +02:00
Michael Watzko
75571b10c9 Add the Safety section header and deny intra_doc_link_failures 2020-06-10 16:55:22 +02:00