May 2020
Intermediate to advanced
496 pages
13h 54m
English
When using queues as a way of passing commands to different parts of the system, it is important to think about what the queue should actually hold, instead of what might be coming across the wire in a physical sense. Even though a queue might be used to hold payloads from a datastream with header and footer information, the actual contents of the queue will usually only contain the parsed payload, rather than the entire message.
Using this approach allows more flexibility in the future to retarget the queue to work over other physical layers.
Since LedCmdExecution() will be operating primarily on the iPWM pointers to interface with the LEDs, it is convenient for the queue to hold a data type that can be used directly ...