Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: handlers.cpp
- Revision:
- 23:0b6901c9302c
- Parent:
- 21:4d6b26eecdac
- Child:
- 24:f8fea5e5bf73
--- a/handlers.cpp Sun Jul 21 06:19:30 2013 +0000 +++ b/handlers.cpp Mon Jul 22 17:53:24 2013 +0000 @@ -1,7 +1,18 @@ -//The function mode_idle_handler converts character inputs to state information, which is used for later stages in main function -//The function parse_phase checks data in the line buffer if it's good write the converted value into address adam_pha otherwise returns error code -//The function parse_amp checks data in the line buffer if it's good write the converted value into address adam_amp otherwise returns error code +/******************************************** +Function: void mode_idle_handler(int* state, char sel) +Function description: +This function converts character inputs to state information, which is used for later stages in main function +Function: int parse_phase(char* line_buf, char* adam_pha) +Function description: +This function checks data in the line buffer. If it's good then write the converted value into address adam_pha +otherwise it returns error code + +Function: int parse_amp(char* line_buf, char* adam_amp) +Function description: +This function checks data in the line buffer. If it's good then write the converted value into address adam_amp +otherwise it returns error code +*********************************************/ #include "parameters.h"