Pin numbering for interrupt | Cypress Semiconductor
Pin numbering for interrupt
I have an interrupt on a Port 0 pin.
The handler uses pinState = CL_DAT_INTSTAT; (where my pin in named CL_DAT) to determine which pin in port 0 caused the interrupt.
I cannot find reference to INSTAT in documentation and the PINs document explains how to create interrupt for pins on schematic but not how to identify the pin within the interrupt.
Does the INSTAT return pin position (0,1,2,3...) or binary value of mask like (1,2,4...) ?