Invalid state in GPIF

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

cross mob
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

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
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
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.

0 Likes