![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <smc91x.h>
Data Fields | |
| NETWORK_DEVICE | network |
| uint32_t | irq |
| SPIN_HANDLE | lock |
| Device lock (Differs from lock in Network device) (Spin lock due to use by interrupt handler). | |
| THREAD_HANDLE | thread |
| Thread for handling packet receive and transmit completion. | |
| uint32_t | start |
| First receive entry available for incoming packet. | |
| uint32_t | count |
| Number of receive entries available for incoming packets. | |
| NETWORK_ENTRY * | entries [SMC91X_MAX_RX_ENTRIES] |
| Queue of receive entries for handling incoming packets. | |
| SMC91X_REGISTERS * | registers |
| Device registers. | |
| uint16_t | revision |
| Device revision. | |
| uint32_t | phyid |
| Physical Interface (PHY) Address. | |
| uint32_t | phytype |
| Physical Interface (PHY) Type. | |
| uint32_t | tcrflags |
| Current Transmit Control Register (TCR) flags. | |
| uint32_t | rcrflags |
| Current Receive Control Register (RCR) flags. | |
| uint32_t | rpcflags |
| Current Receive/PHY Control Register (RPC) flags. | |
| uint32_t | interruptcount |
| Number of interrupt requests received by the device. | |
| uint32_t | collisioncount |
| Number of transmit collisions detected by the device. | |
| NETWORK_DEVICE network |
| uint32_t irq |
| SPIN_HANDLE lock |
Device lock (Differs from lock in Network device) (Spin lock due to use by interrupt handler).
| THREAD_HANDLE thread |
Thread for handling packet receive and transmit completion.
| uint32_t start |
First receive entry available for incoming packet.
| uint32_t count |
Number of receive entries available for incoming packets.
| NETWORK_ENTRY* entries[SMC91X_MAX_RX_ENTRIES] |
Queue of receive entries for handling incoming packets.
| SMC91X_REGISTERS* registers |
Device registers.
| uint16_t revision |
Device revision.
| uint32_t phyid |
Physical Interface (PHY) Address.
| uint32_t phytype |
Physical Interface (PHY) Type.
| uint32_t tcrflags |
Current Transmit Control Register (TCR) flags.
| uint32_t rcrflags |
Current Receive Control Register (RCR) flags.
| uint32_t rpcflags |
Current Receive/PHY Control Register (RPC) flags.
| uint32_t interruptcount |
Number of interrupt requests received by the device.
| uint32_t collisioncount |
Number of transmit collisions detected by the device.