cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor II

Hello, I'm using FX3.

   

I read there is "CyU3PGpifSMSwitch" API

   

that can switch GPIF state machine to a state id from 0 to 255.

   

 

   

What happend if state machine is switched to a state not defined in GPIF II designer ?

0 Likes
Reply
1 Solution
Anonymous
Not applicable

Hi,

   

If a state not defined in GPIF II designer is passed as the argument for 'toState' in CyU3PGpifSMSwitch() API, the API returns CY_U3P_ERROR_BAD_ARGUMENT error and the state switching will not happen.

View solution in original post

0 Likes
Reply
1 Reply
Anonymous
Not applicable

Hi,

   

If a state not defined in GPIF II designer is passed as the argument for 'toState' in CyU3PGpifSMSwitch() API, the API returns CY_U3P_ERROR_BAD_ARGUMENT error and the state switching will not happen.

View solution in original post

0 Likes
Reply