DRV_ENC28J60_PacketTx Function

C

TCPIP_MAC_RES DRV_ENC28J60_PacketTx(DRV_HANDLE hMac, TCPIP_MAC_PACKET * ptrPacket); 

Returns

  • TCPIP_MAC_RES_OP_ERR - if the client handle is invalid

  • TCPIP_MAC_RES_IS_BUSY - if the driver is not in the run state

  • TCPIP_MAC_RES_QUEUE_TX_FULL - if there are no free descriptors

  • TCPIP_MAC_RES_OK - on successful queuing of the packet

Description

ENC28J60 Packet Transmit This function will take a packet and add it to the queue for transmission. When the packet has finished transmitting the driver will call the packets acknowledge function. When that acknowledge function is complete the driver will forget about the packet.

Preconditions

The client had to be successfully opened with DRV_ENC28J60_Open.

Parameters

ParametersDescription
hMacthe successfully opened handle
ptrPacketpointer to the packet