moccos mizuki / EthernetXpresso

Dependents:   XNetServicesMin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Frame.h Source File

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