/* ===== pfod Command for PIC ==== pfodApp msg {.} --> {,<+3>~PIC Led Control`0~V29|A`0~Led is ~~Off\On~} */ /* * File: pfodMenu.h */ /* Code generated by pfodDesignerV2 V2.0.2182 * (c)2014-2016 Forward Computing and Control Pty. Ltd. * NSW Australia, www.forward.com.au * This generated code may be freely used for both private and commercial use */ #ifndef PFODMENU_H #define PFODMENU_H #include #ifdef __cplusplus extern "C" { #endif // global vars set by parser, access and update these in your main program extern uint8_t pfodParser_connected; // set true (1) when {.} parsed, set false (0) when {!} parsed. extern int cmd_A_var; // name the variable for 'Led is' 0=Off 1=On extern volatile uint8_t pfodParser_sendDataFlag; // set this to true (1) to send data, it is reset to false (0) by pfodParser_sendData() extern volatile unsigned long plot_X_var; // X axis defaults to an incrementing counter unless your code assigns a value to plot_X_var before each pfodParser_sendData() call. void pfodParser_setup(void); // call this just once void pfodParser_parse(void); // call this very processing loop // print support int pfodParser_println(void); // skips print if not connected. Blocks if underlying TX buffer full. int pfodParser_printCh(char c); // skips print if not connected. Blocks if underlying TX buffer full. int pfodParser_printStr(const char *str); // skips print if not connected. Blocks if underlying TX buffer full. int pfodParser_printLong(const long l); // skips print if not connected. Blocks if underlying TX buffer full. #define PFOD_PARSER_BUFFER_SIZE 18 // PFOD_PARSER_BUFFER_SIZE sets the max size msg the parser will store { vers : cmd ` args.. } e.g. {v7:A`1024} // Longer msgs upto 255 can be received and will be parsed but only the first PFOD_PARSER_BUFFER_SIZE bytes will be stored in the parser #ifdef __cplusplus } #endif #endif /* PFODMENU_H */