First of all this my first time playing with PSoC creator or with any Cypress PSoC device. And i am really amazed: it's incredible.
Since I have some free time these days I decided to learn about the way that this uC are programmed. So...
I am blinking some leds. I saw that it's possible to access pins as a port which is quite nice. But is it possible to access them from an array?
Below my code. Thank you in advance.
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* Place your application code here. */
/*  END OF FILE */
Not directly. You can use an array to store function pointers to the respective Pin_Set() functions. See https://www.cprogramming.com/tutorial/function-pointers.html
On a PSoC5 you could use the ARM BitBanding functionality (which allows to set/reset single bits by writing into a specific memory location), but then the pins should all belong to the same port.