rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
rflpc_eth_descriptor_t Struct Reference

This structure holds a descriptor which describes the fragment received or sent by the ethernet DMA. More...

#include <ethernet.h>

Data Fields

uint8_t * packet
 pointer to buffer where the ethernet frame (or frame fragment) is stored
 
volatile uint32_t control
 Control word where we find data buffer size and other information relative to reception/emission of the buffer. More...
 

Detailed Description

This structure holds a descriptor which describes the fragment received or sent by the ethernet DMA.

Definition at line 107 of file ethernet.h.

Field Documentation

volatile uint32_t rflpc_eth_descriptor_t::control

Control word where we find data buffer size and other information relative to reception/emission of the buffer.

Word format for reception:

  • Bits 10:0 : Size of the buffer pointed by packet (-1 encoded)
  • Bit 31 : IRQ on reception enabled/disabled

Word format for transmission:

  • Bits 10:0 : Size of the buffer to transmit (-1 encoded)
  • Bit 26 : Override. If true, bits 30:27 will override the default values in MAC registers. Otherwise, bits 29:27 will be ignored
  • Bit 27 : Huge (jumbo) frame
  • Bit 28 : Pad short frame to 64 bytes
  • Bit 29 : Append CRC to the frame
  • Bit 30 : Last fragment
  • Bit 31 : IRQ on transmission enabled/disabled

Definition at line 126 of file ethernet.h.


The documentation for this struct was generated from the following file: