Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. /**
  2. * @brief Bit-field structure of the state of the packet reception
  3. */
  4. typedef struct{
  5. uint32_t Length :16; /*!< The number of bytes in the packet including header and CRC. */
  6. uint32_t PF_ERR :1; /*!< A sign package PAUSE. */
  7. uint32_t CF_ERR :1; /*!< A sign Management Pack (filtering by MAC and special tags in the field length - 13.14 - octets). */
  8. uint32_t LF_ERR :1; /*!< A sign excess packet length 1518 octets. */
  9. uint32_t SF_ERR :1; /*!< A sign of lack of packet length 64 octets. */
  10. uint32_t LEN_ERR :1; /*!< A sign mismatch between the actual length and the length specified in the length field - 13.14 octets. */
  11. uint32_t DN_ERR :1; /*!< A sign bit of the packet is not a multiple of 8. */
  12. uint32_t CRC_ERR :1; /*!< A sign mismatch packet CRC. */
  13. uint32_t SMB_ERR :1; /*!< A sign of the presence in the packet error nibbles. */
  14. uint32_t MCA :1; /*!< A sign group package (MAC matches HASH). */
  15. uint32_t BCA :1; /*!< A sign of the broadcast packet (MAC = FF:FF:FF:FF:FF:FF). */
  16. uint32_t UCA :1; /*!< A sign individual package (MAC corresponds to the set). */
  17. }ETH_StatusPacketReceptionBitFileds;
  18.  
  19. Bit-field structure ...
  20.  
  21. typedef struct{
  22. uint32_t Length; /*!< The number of bytes in the packet including header and CRC. */
  23. uint32_t PF_ERR; /*!< A sign package PAUSE. */
  24. //...
  25. }ETH_StatusPacketReceptionBitFileds;
  26.  
  27. identifieropt attribute-specifier-seqopt: constant-expression
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement