Get (FX3 Firmware) USB3 callback on each data request from GPIF

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Solomon
Level 1
Level 1
5 sign-ins First reply posted First question asked

How to implement the command to get  USB3 callback on each data request from GPIF on FX3 Firmware

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

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.

Best Regards,
Jayakrishna

View solution in original post

0 Likes
1 Reply
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

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.

Best Regards,
Jayakrishna
0 Likes