- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to implement the command to get USB3 callback on each data request from GPIF on FX3 Firmware
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EDITTED
Hello,
Can you please elaborate your requirement so that we can understand the query better? Did you mean to ask is there a way to obtain a callback function when an external device is requesting for data over GPIF II interface of FX3? If my understanding is correct, then you can try the following approach:
1. You can use a control signal from the external device.
2. The assertion of this control signal should make the GPIF II state machine to switch to a new state. In this state, you can call the action INTR_CPU.
3. The above step will trigger a GPIF II callback function which can be registered in firmware. You can refer to the source files of AN75779 which already performs this functionality.
4. Once the callback is executed, a signal can be passed to the state machine by using the API CyU3PGpifControlSWInput (). This is also done in AN75779 firmware and the corresponding transition equation can be found in the state machine as well.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EDITTED
Hello,
Can you please elaborate your requirement so that we can understand the query better? Did you mean to ask is there a way to obtain a callback function when an external device is requesting for data over GPIF II interface of FX3? If my understanding is correct, then you can try the following approach:
1. You can use a control signal from the external device.
2. The assertion of this control signal should make the GPIF II state machine to switch to a new state. In this state, you can call the action INTR_CPU.
3. The above step will trigger a GPIF II callback function which can be registered in firmware. You can refer to the source files of AN75779 which already performs this functionality.
4. Once the callback is executed, a signal can be passed to the state machine by using the API CyU3PGpifControlSWInput (). This is also done in AN75779 firmware and the corresponding transition equation can be found in the state machine as well.
Jayakrishna