I'm trying to understand some code. This is the LCD menu example program from the winavr avr-gcc tutorial. You can find that tutorial here:
The code I'm having trouble understanding is:
//SubMenu and Function table pointer update uint8_t MFIndex(uint8_t, uint8_t);
I believe the first snipet is a typecast? SUBMENU is a 1-dimensional array. When two values (MN.menuNo and MN.subMenuNo) are passed to the array in this way, what happens?
In other words: What will MFIndex actually translate to in this usage?
Thanks for the help... seems like this should be easy to understand but I'm just not seeing it.