beautypg.com

4 st ipstb nexgen 78q8430 ethernet api, 1 stether_copydata (), St ipstb nexgen 78q8430 ethernet api – Maxim Integrated 78Q8430 ST 5100/OS-20 with NexGen TCP/IP Stack User Manual

Page 13: Stether_copydata (), Figure 4: stether_copydata call graph

background image

UM_8430_005

78Q8430 Driver Manual for ST5100/OS-20 with NexGen TCP/IP Stack

Rev. 1.0

13

4 ST IPSTB NexGen 78Q8430 Ethernet API

This section shows an example of the specific integration of the 78Q8430 device driver in the STi5100
IPSTB reference design. The simple NexGen interface code (contained in the ether_tsc78q8430.c and
ether_tsc78q8430.h files) connects the device driver to the NexGen TCP/IP protocol stack.

The API described below is defined in the TSC driver source modules tscport.h and tscport.c. The API
consists of the following functions:

STETHER_CopyData ()
STETHER_Config ()
STETHER_Config_ARC ()
STETHER_HandleCompletedTXBuffers ()
STETHER_InterruptHandler ()
STETHER_Open ()
STETHER_Receive()
STETHER_Send ()
STETHER_Start ()


Note: The STi5100 communicates with the 78Q8430 registers at base memory address 0x43038000.

4.1 STETHER_CopyData

()

Prototype:

void

STETHER_CopyData(NGifnet

*

netp)


Description:

Copies data from the 78Q8430 to NexGen buffers in a task. The function does a serialized call to
STETHER_receive.


Parameters:

netp

network interface type NGethifnet_tsc

Returns:

none

Figure 4: STETHER_CopyData Call Graph