IDT Programming the Device
Revision 1.5
Integrated Device Technology, Inc.
CPS-16/12/8 User Manual
8 - 13
July 10, 2012
8.5 OPTIONAL API CALLS
The IDT API fully supports all calls necessary to control the CPS’s switch functionality as detailed above.
These high level calls include the following:
Configure_Quads
–
This call passes the appropriate parameterized data structure per standard sRIO HAL require-
ments. The data structure is comprised of all required fields of the Quad Control register
mentioned above.
Configure_Ports
–
This call passes the appropriate data structure to the appropriate port’s control CSR per sRIO
standard requirements for this CSR.
Read_Quad_Configuration
–
This call retrieves as an output data structure the field information of the Quad Control register.
Add_Delete_Routes
–
This function adds or deletes routes in the route table. Multiple number of routes can be entered
which will be either deleted or inserted. If a route can not be added, the function is terminated, and
index of unsuccessful route is returned.
Status_destID
–
This function checks if a destID is in the route table.
Write_Domain_Register
–
This function can be used to directly write into the domain register instead of indirectly accessing
it.
Read_RT
–
This function can be used to directly read from device or domain route tables instead of indirectly
accessing them.
Read_Domain_Register
–
This function can be used to directly read from domain register instead of indirectly accessing it.
Create_MC_List
–
This function creates multicast (MC) lists based on user-specified member ports.
Get_MC_Occupancy_List
–
This function returns a list of those MC masks which are already in use.
MC_Read
–
This function reads the contents of a multicast (MC) list, identifying which ports are active.
MC_Delete
–
This function deletes user-specified individual member ports of a multicast (MC) list.