Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Frame.h
00001 #ifndef FRAME_H 00002 #define FRAME_H 00003 #include <stdint.h> 00004 00005 // LPC1769 descripter for TX/RX packets. 00006 struct Descriptor { 00007 static const uint16_t SIZE_MASK = 0x07ff; 00008 uint32_t packet; 00009 uint32_t control; 00010 }; 00011 00012 // LPC1769 status structure for RX packets. 00013 struct StatusRx { 00014 uint32_t info; 00015 uint32_t crc; 00016 }; 00017 00018 // LPC1769 status structure for TX packets. 00019 struct StatusTx { 00020 uint32_t info; 00021 }; 00022 00023 // LPC1769 frame buffer for RX packets. 00024 struct Frame { 00025 static const uint16_t MAX_FRAME_LEN = 1536; 00026 uint8_t buffer[MAX_FRAME_LEN]; 00027 }; 00028 00029 #endif
Generated on Wed Jul 13 2022 03:01:38 by
1.7.2