My CC2640 system uses the following architecture:
There are multiple clocks running, which trigger different events in the main App loop. Each clock, when triggered, executes a common handler function. This handler function takes the Uarg parameter and &'s it to a global bitmask (events). This events variable is then read during the main App loop to determine which event functions should be executed.
The problem is that I've used all 16 bits of my events bitmask and I need more bits for more events. The plan is to create a struct which holds a 32 bit bitmask, and pass a pointer to the struct to Util_constructClock().
Will this work? Does Util_constructClock() expect a 16bit sized type for the UArg param?