Commit graph

49 commits

Author SHA1 Message Date
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
Michael Watzko
d02bbf7e5c Take OutputPin by ownership instead of ref mut github#13 2020-06-10 16:55:22 +02:00
Jonah Dahlquist
b9aa4f9ca1 Improved documentation in README and doc comments in library 2019-08-02 10:15:26 -05:00
Michael Watzko
0185724e6e Replace generic errors of Udp into a associative type 2019-08-01 16:28:25 +02:00
Jonah Dahlquist
3e5610982f Removed another Error generic 2019-08-01 09:18:21 -05:00
Jonah Dahlquist
020272b9f9 Removed more redundent generics 2019-08-01 09:06:05 -05:00
Jonah Dahlquist
e8e44413d3 Removed unnecessary generics from structs 2019-08-01 08:38:42 -05:00
Jonah Dahlquist
72c91266bd Made chip_(de)select errors propagate properly 2019-07-31 18:42:20 -05:00
Jonah Dahlquist
1d88a91e88 Updated all dependencies, replaced deprecated v1 OutputPin 2019-07-30 20:25:18 -05:00
Jonah Dahlquist
b943350acf Removed all trait objects and replaced with bound generics 2019-07-18 12:35:25 -05:00
Vincent Stakenburg
b784982f9e use rust 1.32.0 to_be_bytes instead 2019-04-19 13:11:44 +02:00
Michael Watzko
c069211e72 GH-3: Dont require the local port in .blocking_send anymore 2019-02-12 23:27:04 +01:00
Michael Watzko
1415adbae0 GH-3: Refactor to allow to state tracking of sockets, take an &mut SPI while 'activated'
The activated mode allows one to call functions without passing the SPI reference
each time, while not consuming it for the lifetime of W5500.
2019-02-12 23:09:34 +01:00
Michael Watzko
f3e66ebd7f Remvoe unused feature requirement 2018-10-27 19:43:11 +02:00
Michael Watzko
54ba7a9f82 Make .init() callable 2018-04-02 01:11:08 +02:00
Michael Watzko
7728fb22be Replace function signature 'fn ..<E, S: FullDuplex<u8, Error=E>>(&mut self, spi: &mut S,...)' with 'fn ..<E>(&mut self, spi: &mut FullDuplex<u8, Error=E>,..)' add SocketRegister, ability to conf./get/set socket interrupts 2018-04-01 23:17:10 +02:00
Michael Watzko
d98200c965 Make address array publically accessible 2018-03-31 18:03:56 +02:00
Michael Watzko
6effe5c0a9 No longer consume SPI 2018-03-31 00:26:11 +02:00
Michael Watzko
4f9a28b88a Remove set of ip, subnet and gateway (woops) 2018-03-29 21:01:38 +02:00
Michael Watzko
bd2f958a8c Make sending and receiving UDP work 2018-03-11 18:39:48 +01:00
Michael Watzko
3343dc190d Add UDP listen + receive 2018-03-11 15:50:45 +01:00
Michael Watzko
f28b948dac Be able to IP, Subnet, Gateway and Mac; and send udp packets 2018-03-11 14:24:47 +01:00