29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ethernet (ETH): media access control (MAC) with DMA controller<br />

RM0008<br />

Rx DMA descriptors<br />

The descriptor structure consists of four 32-bit words (16 bytes). These are shown in<br />

Figure 316. The bit descriptions of RDES0, RDES1, RDES2 <strong>and</strong> RDES3 are given below.<br />

Figure 316. Rx DMA descriptor structure<br />

31 0<br />

RDES 0<br />

O<br />

W<br />

N<br />

Status [30:0]<br />

RDES 1<br />

CT<br />

RL<br />

Reserved<br />

[30:29]<br />

Buffer 2 byte count<br />

[28:16]<br />

CTRL<br />

[15:14]<br />

Res.<br />

Buffer 1 byte count<br />

[12:0]<br />

RDES 2<br />

Buffer 1 address [31:0]<br />

RDES 3<br />

Buffer 2 address [31:0] or Next descriptor address [31:0]<br />

●<br />

ai15644<br />

RDES0: Receive descriptor Word0<br />

RDES0 contains the received frame status, the frame length <strong>and</strong> the descriptor<br />

ownership information.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

OWN<br />

AFM<br />

FL<br />

ES<br />

DE<br />

SAF<br />

LE<br />

OE<br />

VLAN<br />

FS<br />

LS<br />

IPHCE<br />

LCO<br />

FT<br />

RWT<br />

RE<br />

DE<br />

CE<br />

PCE<br />

rw<br />

Bit 31 OWN: Own bit<br />

When set, this bit indicates that the descriptor is owned by the DMA of the MAC Subsystem.<br />

When this bit is reset, it indicates that the descriptor is owned by the Host. The DMA clears this bit<br />

either when it completes the frame reception or when the buffers that are associated with this<br />

descriptor are full.<br />

Bit 30 AFM: Destination address filter fail<br />

When set, this bit indicates a frame that failed the DA filter in the MAC Core.<br />

Bits 29:16 FL: Frame length<br />

These bits indicate the byte length of the received frame that was transferred to host memory<br />

(including CRC). This field is valid only when last descriptor (RDES0[8]) is set <strong>and</strong> descriptor error<br />

(RDES0[14]) is reset.<br />

This field is valid when last descriptor (RDES0[8]) is set. When the last descriptor <strong>and</strong> error<br />

summary bits are not set, this field indicates the accumulated number of bytes that have been<br />

transferred for the current frame.<br />

898/995 Doc ID 13902 Rev 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!