![Intel IXP2400 User Manual Download Page 314](http://html1.mh-extra.com/html/intel/ixp2400/ixp2400_user-manual_2071795314.webp)
314
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
E.3.1.3
spi4_create_device
The
spi4_create_device
instantiates a new spi4 device with the assigned device_id.
int
spi4_create_device
(int
device_id,
where:
device_id
:
unique device id for the device
E.3.1.4
spi4_connect_device
The
spi4_connect_device
sets the connection between the specified spi4 device and the
specified chip (ixp2800).
int
spi4_connect_device
(char
*ChipName,
int
device_id,
int
direction)
where:
ChipName
:
the instance name string of the target IXP2800
device_id
:
unique device id for the device direction
direction
•
1: data flow from spi4_bfm to ixp/msf
•
2: data flow from ixp/msf to spi4_bfm
•
3: connect data flow from both directions
E.3.1.5
spi4_enable_X
The
spi4_enable_X
enables/disables the specified spi4 device/port. When a device/port is
disabled, there will be no data transferred from data stream to IXP/MSF nor passing data from IXP/
MSF to packet_sim.dll (this is the interface between spi4_bfm.dll and external data stream
generator).
int
spi4_enable_device
(int
device_id,
int
state)
int
spi4_enable_port
(int
device_id,
int
port_num,
int
state)
where:
device_id
:
unique device id for each device
port_num
port in the specified device
state
state: 0: disable; 1: enable