Z183 EMAC Board
User Manual
11
UM008301-0401
int TransmitPkt(EMACFRAME *databuff);
This function is called to transmit a frame that is filled and placed at the pointer
given by databuff. This function is called by the user program to initiate the
transmit frame operation. When a call to this function is made, a user-specified
txnotification interrupt callback is invoked to signal the completion of the frame
transmission. See the Init8900( ) function for more information.
Each subsequent frame from a chain of frames, if implemented as an outbound
queue, can be transmitted from within the txnotify function by calling this
function from within a txnotify callback until the queue is empty. You must
re-initiate the transmit interrupt operation if your txnotify interrupt callback
function returns without invoking the TransmitPkt function, which may occur at
the end of transmitting an outbound queue.
int ReceivePkt(EMACFRAME *databuff);
This function retrieves a received frame into the user buffer that databuff points
to. You must ensure that the buffer at databuff contains space for a full-length
frame, which can be a maximum of 1,526 bytes. Normally, this function is used
from within the rxnotify interrupt callback, which is invoked by the driver when
there is a frame available that has passed the current Rx filter criteria.
uint GetCRCErrCount(void);
This function returns the accumulated count of CRC errors on received frames.
This call automatically resets the count to zero.
uint GetRuntErrCount(void);
This function returns the accumulated count of received frames when they are
less than the 64-byte minimum. This call automatically resets the minimum
length error count to zero.
uint GetExcessLengthErrCount(void);
This function returns the accumulated count of received frames that exceeded
the 1,518-byte maximum, including the 14-byte header and four CRC bytes.
This call automatically resets the excess length error count to zero.