I attempted to use the code example that is listed in section 18.4.4 in the Module 18 Lab 18: Serial Communication manual but I received compiler errors with this code. Looking the code listed, there is a missing comma for the Sensor entry between "Sensor" and &goSensor and the function pointer entry for "Right" shows "&doFast" rather than "&doRight". If I make these changes in my code, it seems work as expected.
Here is a link to the document I am referencing.
http://www.ti.com/lit/ml/swrp217/swrp217.pdf
Code in question is:
typedef struct { char CmdName[8]; // name of command void (*fnctPt)(void); // to execute this command }Cmd_t; const Cmd_t Table[8]={ { "Stop", &doStop}, { "Go", &doGo}, { "Back", &doBack}, { "Left", &doLeft}, { "Right", &doFast}, { "Slow", &doSlow}, { "Fast", &doFast}, { "Sensor" &goSensor}};