![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <genet.h>
Data Fields | |
| NETWORK_DEVICE | network |
| uint32_t | irq0 |
| uint32_t | irq1 |
| void * | address |
| Device register base address. | |
| uint32_t | mdiooffset |
| SPIN_HANDLE | lock |
| Device lock (Differs from lock in Network device) (Spin lock due to use by interrupt handler). | |
| uint32_t | version |
| Device version (GENET_V1..GENETV5). | |
| uint32_t | phyrevision |
| PHY revision (GENET_V1..GENETV4 devices only). | |
| LONGBOOL | status64enable |
| True if 64 byte RX/TX status block is enabled (for hardware checksum etc). | |
| LONGBOOL | rxchecksumenable |
| True if RX checksum is enabled. | |
| LONGBOOL | crcforwardenable |
| True if CRC forwarding is enabled. | |
| uint32_t | irqstatus |
| Non TX/RX interrupts forwarded to worker thread for servicing. | |
| uint32_t | pendingcount |
| Number of worker requests pending for this network. | |
| THREAD_ID | waiterthread |
| Thread waiting for pending requests to complete (for network close). | |
| TIMER_HANDLE | statustimer |
| Timer for status change detection. | |
| uint32_t | txqueues |
| uint32_t | txdescriptorsperqueue |
| uint32_t | rxqueues |
| uint32_t | rxdescriptorsperqueue |
| uint32_t | backpressureenableshift |
| uint32_t | backpressuremask |
| uint32_t | hfbfiltercount |
| uint32_t | hfbfiltersize |
| uint32_t | qtagmask |
| uint32_t | txbufferoffset |
| uint32_t | hfboffset |
| uint32_t | hfbregoffset |
| uint32_t | rxdmaoffset |
| uint32_t | txdmaoffset |
| uint32_t | wordsperdescriptor |
| uint32_t | flags |
| uint32_t | q16txdescriptorcount |
| uint32_t | q16rxdescriptorcount |
| uint32_t | dmarxcheckbit |
| uint32_t | rxdmaregoffset |
| uint32_t | txdmaregoffset |
| uint32_t | dmadescriptorsize |
| GENET_DMA_REGISTERS | dmaregisters |
| GENET_DMA_RING_REGISTERS | dmaringregisters |
| uint32_t | phyid |
| PHY Identifier. | |
| uint32_t | phyaddr |
| PHY Bus Address. | |
| uint32_t | phymode |
| PHY Interface Mode. | |
| uint32_t | phyflags |
| PHY Flags. | |
| LONGBOOL | phyinternal |
| LONGBOOL | phyexternal |
| int32_t | link |
| 0 = Down / 1 = Up | |
| int32_t | speed |
| 10/100/1000 Mbps | |
| int32_t | duplex |
| 0 = Half / 1 = Full | |
| int32_t | pause |
| int32_t | oldlink |
| int32_t | oldspeed |
| int32_t | oldduplex |
| int32_t | oldpause |
| GENET_RX_RINGS | rxrings |
| GENET_TX_RINGS | txrings |
| GENET_CONTROL_BLOCKS * | rxcontrolblocks |
| GENET_CONTROL_BLOCKS * | txcontrolblocks |
| uint32_t | interruptcount |
| Number of interrupt requests received by the device. | |
| NETWORK_DEVICE network |
| uint32_t irq0 |
| uint32_t irq1 |
| void* address |
Device register base address.
| uint32_t mdiooffset |
| SPIN_HANDLE lock |
Device lock (Differs from lock in Network device) (Spin lock due to use by interrupt handler).
| uint32_t version |
Device version (GENET_V1..GENETV5).
| uint32_t phyrevision |
PHY revision (GENET_V1..GENETV4 devices only).
| LONGBOOL status64enable |
True if 64 byte RX/TX status block is enabled (for hardware checksum etc).
| LONGBOOL rxchecksumenable |
True if RX checksum is enabled.
| LONGBOOL crcforwardenable |
True if CRC forwarding is enabled.
| uint32_t irqstatus |
Non TX/RX interrupts forwarded to worker thread for servicing.
| uint32_t pendingcount |
Number of worker requests pending for this network.
| THREAD_ID waiterthread |
Thread waiting for pending requests to complete (for network close).
| TIMER_HANDLE statustimer |
Timer for status change detection.
| uint32_t txqueues |
| uint32_t txdescriptorsperqueue |
| uint32_t rxqueues |
| uint32_t rxdescriptorsperqueue |
| uint32_t backpressureenableshift |
| uint32_t backpressuremask |
| uint32_t hfbfiltercount |
| uint32_t hfbfiltersize |
| uint32_t qtagmask |
| uint32_t txbufferoffset |
| uint32_t hfboffset |
| uint32_t hfbregoffset |
| uint32_t rxdmaoffset |
| uint32_t txdmaoffset |
| uint32_t wordsperdescriptor |
| uint32_t flags |
| uint32_t q16txdescriptorcount |
| uint32_t q16rxdescriptorcount |
| uint32_t dmarxcheckbit |
| uint32_t rxdmaregoffset |
| uint32_t txdmaregoffset |
| uint32_t dmadescriptorsize |
| GENET_DMA_REGISTERS dmaregisters |
| GENET_DMA_RING_REGISTERS dmaringregisters |
| uint32_t phyid |
PHY Identifier.
| uint32_t phyaddr |
PHY Bus Address.
| uint32_t phymode |
PHY Interface Mode.
| uint32_t phyflags |
PHY Flags.
| LONGBOOL phyinternal |
| LONGBOOL phyexternal |
| int32_t link |
0 = Down / 1 = Up
| int32_t speed |
10/100/1000 Mbps
| int32_t duplex |
0 = Half / 1 = Full
| int32_t pause |
| int32_t oldlink |
| int32_t oldspeed |
| int32_t oldduplex |
| int32_t oldpause |
| GENET_RX_RINGS rxrings |
| GENET_TX_RINGS txrings |
| GENET_CONTROL_BLOCKS* rxcontrolblocks |
| GENET_CONTROL_BLOCKS* txcontrolblocks |
| uint32_t interruptcount |
Number of interrupt requests received by the device.