Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am Nagarajan.K , new to This CX3 ,Actually I want know How to use Gpio Interrupts in cx3,My exact application is controlling Camera Sensor Parameter With No of GPIO Keys with Help Of Interrupt, Thansk In Advance.
GPIO interrupts in CX3 work exactly the same way as in FX3.
Basically, you configure the GPIO using CyU3PGpioSetSimpleConfig where you can set the interrupt mode. Then, your GPIO interrupt callback that you registered via CyU3PGpioInit or CyU3PRegisterGpioCallBack will be called when FX3/CX3 sees that specific interrupt in that pin.
Inside the GPIO interrupt callback (of type CyU3PGpioIntrCb_t), the GPIO that actually saw the interrupt will be passed as the argument. Filter this out and do whatever you like. But note that this interrupt call is made in interrupt context, which means that any blocking API calls cannot be made from this callback.
You should do as little computation as possible and then exit the callback quickly.