MMEx with SPI Slave to allow legacy devices to communicate with modern media such as USB, SD cards, the internet and all of the mbed\'s other interfaces
Dependencies: NetServices MSCUsbHost mbed TMP102 SDFileSystem
mfuncs.cpp File Reference
Commands starting with M for MBED features. More...
Go to the source code of this file.
Functions | |
void | parse_M () |
main entry for parsing M-commands | |
void | do_mled () |
control/read MBED led status | |
void | do_mversion () |
Read MMEx version information. | |
void | do_mwelcome () |
Read MMEx welcome message. | |
void | do_mstatus () |
Read MMEx status message. | |
void | do_mdebug () |
Set MMEx debug level. | |
void | do_merror () |
get latest error number | |
void | do_mbaud () |
set console (UBSB) baud rate | |
void | do_mcase () |
set case for output of text commands | |
void | do_mtime () |
get or set the MBED RTC time | |
void | do_mreset () |
(soft) reset the MBED module | |
void | do_mdefault () |
send error message, command not recognized |
Detailed Description
Commands starting with M for MBED features.
Definition in file mfuncs.cpp.
Function Documentation
void do_mbaud | ( | ) |
set console (UBSB) baud rate
syntax: MB[value]<CR>
[value]: new baud rate
Definition at line 212 of file mfuncs.cpp.
void do_mcase | ( | ) |
set case for output of text commands
syntax: MC[value]<CR>
[value]: U all output upper case
[value]: N no change to output (or any other value)
Definition at line 241 of file mfuncs.cpp.
void do_mdebug | ( | ) |
Set MMEx debug level.
syntax: MD[value]<CR>
[value]: 0 no debug output
[value]: 1 high level debug messages
[value]: 2 like 1, including SPI straffic
Definition at line 165 of file mfuncs.cpp.
void do_mdefault | ( | ) |
send error message, command not recognized
Definition at line 359 of file mfuncs.cpp.
void do_merror | ( | ) |
void do_mled | ( | ) |
control/read MBED led status
syntax: ML[number][value]<CR>
[number]: 1, 2, 3, 4, LED number
[value] : 0 (off), 1(ON), T(toggle), R(read)
Definition at line 74 of file mfuncs.cpp.
void do_mreset | ( | ) |
void do_mstatus | ( | ) |
void do_mtime | ( | ) |
get or set the MBED RTC time
syntax: MT<CR> return the current time set in the RTC in date format
MTS<CR> return the current time in seconds
MT[value]<CR> set the time in date format
MTS[value]<CR> set the current time in seconds
date format is [year][month][day][hour][minute][second], all 2 digits,
year is 4 digits
seconds format is number of seconds since Jan 1, 1970 (Unix convention)
Definition at line 264 of file mfuncs.cpp.
void do_mversion | ( | ) |
void do_mwelcome | ( | ) |
void parse_M | ( | ) |
main entry for parsing M-commands
Definition at line 33 of file mfuncs.cpp.
Generated on Tue Jul 12 2022 21:35:27 by 1.7.2