E.4 C-Api - Intel IXP2400 User Manual

Network processors
Table of Contents

Advertisement

E.3.4.3
spi4_get_rx_clock_cycle/spi4_get_tx_cycle_count
The spi4_get_rx_clock_cycle/spi4_get_tx_cycle_count returns the spi4_bfm
cycle count for reference.
where:
device_id:
port_num
E.3.4.4
spi4_reset_stat
The spi4_reset_stat resets both the rx/tx statistics over spi4_bfm.
E.3.4.5
spi4_version
The spi4_version prints out the version and built time of spi4_bfm.dll
E.4
C-API
The following C-API provides access functions to retrieve SPI4 BFM FIFO statistics through C-
function calls. They are the C-function implementations of the aforementioned statistic information
access console functions. The only addition is the RegisterMessageCallback function,
which allows the WB to register a callback routine to handle message print out in the GUI
environment.
Development Tools User's Guide
int spi4_get_rx_clock_cycle(int device_id,
int port_num)
int spi4_get_tx_clock_cycle(int device_id,
int port_num)
unique device id for each device
port in the specified device
int spi4_reset_stat(void)
int spi4_version()
SPI4_WMAC_API int GetNumBytesInRxBuffer(int device_id,
SPI4_WMAC_API void GetRxBufferBytes(int device_id,
SPI4_WMAC_API int GetNumBytesInTxBuffer(int device_id,
SPI4_WMAC_API void GetTxBufferBytes(int device_id,
®
Intel
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
int port_num)
int port_num,
unsigned char *buffer,
int buffer_size)
int port_num)
int port_num,
319

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ixp2800

Table of Contents