diff options
Diffstat (limited to 'embassy-net-enc28j60/src/header.rs')
| -rw-r--r-- | embassy-net-enc28j60/src/header.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/embassy-net-enc28j60/src/header.rs b/embassy-net-enc28j60/src/header.rs new file mode 100644 index 000000000..c2d4e468f --- /dev/null +++ b/embassy-net-enc28j60/src/header.rs | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | register!(RxStatus, 0, u32, { | ||
| 2 | #[doc = "Indicates length of the received frame"] | ||
| 3 | byte_count @ 0..15, | ||
| 4 | #[doc = "Indicates a packet over 50,000 bit times occurred or that a packet was dropped since the last receive"] | ||
| 5 | long_event @ 16, | ||
| 6 | #[doc = "Indicates that at some time since the last receive, a carrier event was detected"] | ||
| 7 | carrier_event @ 18, | ||
| 8 | #[doc = "Indicates that frame CRC field value does not match the CRC calculated by the MAC"] | ||
| 9 | crc_error @ 20, | ||
| 10 | #[doc = "Indicates that frame length field value in the packet does not match the actual data byte length and specifies a valid length"] | ||
| 11 | length_check_error @ 21, | ||
| 12 | #[doc = "Indicates that frame type/length field was larger than 1500 bytes (type field)"] | ||
| 13 | length_out_of_range @ 22, | ||
| 14 | #[doc = "Indicates that at the packet had a valid CRC and no symbol errors"] | ||
| 15 | received_ok @ 23, | ||
| 16 | #[doc = "Indicates packet received had a valid Multicast address"] | ||
| 17 | multicast @ 24, | ||
| 18 | #[doc = "Indicates packet received had a valid Broadcast address."] | ||
| 19 | broadcast @ 25, | ||
| 20 | #[doc = "Indicates that after the end of this packet, an additional 1 to 7 bits were received"] | ||
| 21 | dribble_nibble @ 26, | ||
| 22 | #[doc = "Current frame was recognized as a control frame for having a valid type/length designating it as a control frame"] | ||
| 23 | receive_control_frame @ 27, | ||
| 24 | #[doc = "Current frame was recognized as a control frame containing a valid pause frame opcode and a valid destination address"] | ||
| 25 | receive_pause_control_frame @ 28, | ||
| 26 | #[doc = "Current frame was recognized as a control frame but it contained an unknown opcode"] | ||
| 27 | receive_unknown_opcode @ 29, | ||
| 28 | #[doc = "Current frame was recognized as a VLAN tagged frame"] | ||
| 29 | receive_vlan_type_detected @ 30, | ||
| 30 | }); | ||
