diff options
| author | René van Dorst <[email protected]> | 2023-08-28 19:23:15 +0200 |
|---|---|---|
| committer | René van Dorst <[email protected]> | 2023-08-28 19:23:15 +0200 |
| commit | 6e616a6fe60f1ff9355888724af7c201ae70ed1b (patch) | |
| tree | 7504205ea3d8194943b964f769a736e76423d3ef /embassy-net-adin1110 | |
| parent | d02886786e4c496dc5a2c8851a7a01764905182b (diff) | |
Update comment about turn around byte.
Diffstat (limited to 'embassy-net-adin1110')
| -rw-r--r-- | embassy-net-adin1110/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-net-adin1110/src/lib.rs b/embassy-net-adin1110/src/lib.rs index 9eca801f3..e0af7bde9 100644 --- a/embassy-net-adin1110/src/lib.rs +++ b/embassy-net-adin1110/src/lib.rs | |||
| @@ -77,7 +77,7 @@ const ETH_MIN_WITHOUT_FCS_LEN: usize = ETH_MIN_LEN - FCS_LEN; | |||
| 77 | const SPI_HEADER_LEN: usize = 2; | 77 | const SPI_HEADER_LEN: usize = 2; |
| 78 | /// SPI Header CRC length | 78 | /// SPI Header CRC length |
| 79 | const SPI_HEADER_CRC_LEN: usize = 1; | 79 | const SPI_HEADER_CRC_LEN: usize = 1; |
| 80 | /// SPI Header Trun Around length | 80 | /// SPI Header Turn Around length |
| 81 | const SPI_HEADER_TA_LEN: usize = 1; | 81 | const SPI_HEADER_TA_LEN: usize = 1; |
| 82 | /// Frame Header length | 82 | /// Frame Header length |
| 83 | const FRAME_HEADER_LEN: usize = 2; | 83 | const FRAME_HEADER_LEN: usize = 2; |
| @@ -137,7 +137,7 @@ impl<SPI: SpiDevice> ADIN1110<SPI> { | |||
| 137 | let _ = tx_buf.push(crc8(&tx_buf)); | 137 | let _ = tx_buf.push(crc8(&tx_buf)); |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | // Turn around byte, TODO: Unknown that this is. | 140 | // Turn around byte, give the chip the time to access/setup the answer data. |
| 141 | let _ = tx_buf.push(TURN_AROUND_BYTE); | 141 | let _ = tx_buf.push(TURN_AROUND_BYTE); |
| 142 | 142 | ||
| 143 | let mut rx_buf = [0; 5]; | 143 | let mut rx_buf = [0; 5]; |
