Commit Graph

27 Commits

Author SHA1 Message Date
Markus Koch 61812c133f phy: Improve header synchronization 2022-01-30 19:26:43 +01:00
Markus Koch 075f935e12 phy: Fix NLPs
We need a different NLP timeout for RX than TX.
Also use a prescaler to improve timing.
2022-01-29 20:15:02 +01:00
Markus Koch a9039a175c phy+mac: Improve interface
Instead of having the user wait until the en-low was latched by
the core, let's just latch it internally.
2022-01-23 16:52:05 +01:00
Markus Koch 4a39c3d638 phy: Notify that the end-of-packet has been accepted 2022-01-23 16:31:20 +01:00
Markus Koch d1e0143c9d phy: Fix TX manchester encoding
Ethernet uses "inverted" manchester as per IEEE 802.3.
2022-01-23 16:02:31 +01:00
Markus Koch 1bcddf4273 phy: Improve NLP timeout accuracy 2022-01-23 16:01:33 +01:00
Markus Koch afb545cd02 Clean up code formatting 2022-01-22 20:50:18 +01:00
Markus Koch 4e39e3b371 phy: Do not report tx_active when providing NLPs 2022-01-22 20:48:49 +01:00
Markus Koch a2edc540b2 phy: Fix NLP timebase error 2022-01-22 20:48:23 +01:00
Markus Koch 6f8bb7ba54 phy: Fix rounding error for NLP timeout 2022-01-22 20:47:47 +01:00
Markus Koch 76eaff20fd mac+phy: Initialize all required variables 2022-01-22 20:47:09 +01:00
Markus Koch cfac94136a phy: Refactor to use records for the application interface 2021-09-25 12:28:04 +02:00
Markus Koch 9addd97b57 Rename types package to general trashernet package 2021-09-25 11:07:12 +02:00
Markus Koch 743d2465d9 Add license headers 2021-09-04 19:33:32 +02:00
Markus Koch 29bbb50f6a phy: tx: Fix TX startup handling 2021-09-04 19:09:04 +02:00
Markus Koch 13ef230503 phy: tx: Implement tx_active flag 2021-09-04 19:06:43 +02:00
Markus Koch dcbd9675f6 phy: Use byte type for ports 2021-09-04 19:05:53 +02:00
Markus Koch 16026849e8 phy: tx: Implement transmitter 2021-08-31 20:36:35 +02:00
Markus Koch 1f353fcb2f phy: rx: Do not reset rx_data to save resources 2021-08-30 13:26:46 +02:00
Markus Koch d16f1afd9a phy: Rename rx/tx signals 2021-08-28 19:08:37 +02:00
Markus Koch 38f96cdc63 phy: rx: Come up in disconnected state after reset 2021-08-28 14:25:51 +02:00
Markus Koch 0133fa8cce phy: rx: Fix bit order 2021-08-28 14:25:47 +02:00
Markus Koch 9e5b958f46 phy: rx: Reset transition analyzer state at the EOT 2021-08-28 14:24:28 +02:00
Markus Koch f5f643287f phy: rx: Cleanup 2021-08-28 14:23:44 +02:00
Markus Koch 1f894866ab phy: rx: Implement error handling for Manchester 2021-08-28 14:23:15 +02:00
Markus Koch 5d6df0219b phy: rx: Introduce simple glitch filter 2021-08-28 14:22:28 +02:00
Markus Koch 08bd5f166b Implement PHY RX 2021-08-27 20:14:19 +02:00