FILE: fsi_ex1_loopback_cpucontrol.c
Example sets up infinite data frame transfers where trigger happens through CPU. Automatic(Hw triggered) Ping frame transmission is also setup along with data.
User can edit some of configuration parameters as per usecase. These are as below. Default values can be referred in code where these globals are defined
- txUserData - User data to be sent with Data frame
- txDataFrameTag - Frame tag used for Data transfers
- txPingFrameTag - Frame tag used for Ping transfers
For any errors during transfers i.e.
error events such as Frame Overrun, Underrun, Watchdog timeout and CRC/EOF/TYPE errors, execution will stop immediately and status variables can be looked into for more details. Execution will also stop for any mismatch between received data and sent ones and also if transfers takes unusually long time(detected through software counters - txTimeOutCntr and rxTimeOutCntr)
External Connections
Watch Variables
- dataFrameCntr Number of Data frame transfered
- error Non zero for transmit/receive data mismatch