eth_dma_desc Struct Reference

Layout of enhanced RX/TX DMA descriptor. More...

Detailed Description

Layout of enhanced RX/TX DMA descriptor.

Note
Don't confuse this with the normal RX/TX descriptor format.
Warning
The content of the status and control bits is different for RX and TX DMA descriptors

Definition at line 1069 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

volatile uint32_t status
 Mostly status bits, some control bits.
 
volatile uint32_t control
 Control bits.
 
char *volatile buffer_addr
 RX/TX buffer.
 
struct eth_dma_desc *volatile desc_next
 Address of next DMA descriptor.
 
volatile uint32_t reserved1_ext
 RX: Extended status, TX: reserved.
 
volatile uint32_t reserved2
 Reserved for future use.
 
volatile uint32_t ts_low
 Sub-second part of PTP timestamp of transmitted / sent frame. More...
 
volatile uint32_t ts_high
 Second part of PTP timestamp.
 

Field Documentation

◆ ts_low

volatile uint32_t eth_dma_desc::ts_low

Sub-second part of PTP timestamp of transmitted / sent frame.

For TX: If PTP timestamping is enabled and the TTSE bit in the transmit descriptor word 0 (struct eth_dma_desc::status) is set, the MAC will store the PTP timestamp of when the Start of Frame Delimiter was sent. The TTSS bit is send by the hardware if the timestamp was correctly set.

For RX: If PTP timestamping is enabled, the timestamp of all received frames is captured.

Definition at line 1088 of file periph_cpu.h.


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