Description: 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
ufuncs.cpp File Reference
processing for U commands, to be filled in by users More...
Go to the source code of this file.
Functions | |
| void | rpc_regsread (char *input, char *output) |
| return the struct Regs via RPC as a character string RPC call is /regs_read/run RPC has a size limit of 64 bytes. | |
| void | parse_U () |
| main entry for parsing U-commands | |
| void | do_utemp () |
| read TMP02 temp sensor | |
| int | read_reg (char *reg) |
| read 7 bytes as a register from input stream | |
| int | read_alpha () |
| read 28 bytes re[presenting the ALPHA registers M, N, O and Pm | |
| void | show_reg (char *c, char *reg) |
| show a register on the debug console | |
| void | do_ustack () |
| receive stack from HP41 | |
| void | do_ualpha () |
| receive alpha from HP41 | |
| void | do_udefault () |
| send error message, command not recognized, | |
Detailed Description
processing for U commands, to be filled in by users
Definition in file ufuncs.cpp.
Function Documentation
| void do_ualpha | ( | ) |
receive alpha from HP41
syntax: US<CR> [data]
[data] is a binary stream of 24 bytes procedure is like File Write due to processing of escape characters must send exact number of bytes, or terminate with '>F'
Definition at line 227 of file ufuncs.cpp.
| void do_udefault | ( | ) |
send error message, command not recognized,
Definition at line 288 of file ufuncs.cpp.
| void do_ustack | ( | ) |
receive stack from HP41
syntax: US<CR> [data]
[data] is a binary stream of 5* 7 bytes procedure is like File Write due to processing of escape characters must send exact number of bytes, or terminate with '>F' representing X, Y, Z, T, L
Definition at line 189 of file ufuncs.cpp.
| void do_utemp | ( | ) |
read TMP02 temp sensor
syntax: UT return temp value in degrees C
UTF return temp value in degrees F
Definition at line 105 of file ufuncs.cpp.
| void parse_U | ( | ) |
main entry for parsing U-commands
Definition at line 80 of file ufuncs.cpp.
| int read_alpha | ( | ) |
read 28 bytes re[presenting the ALPHA registers M, N, O and Pm
- Returns:
- last char read if all OK, -1 or -2 when interrupted
Definition at line 150 of file ufuncs.cpp.
| int read_reg | ( | char * | reg ) |
read 7 bytes as a register from input stream
- Parameters:
-
*reg pointer to a register (14 chars)
- Returns:
- last char read if all OK, -1 or -2 when interrupted
Definition at line 126 of file ufuncs.cpp.
| void rpc_regsread | ( | char * | input, |
| char * | output | ||
| ) |
return the struct Regs via RPC as a character string RPC call is /regs_read/run RPC has a size limit of 64 bytes.
Therefore, the result depends on the first character of the argument string: A returns Alpha, L returns LastX Anything else returns the complete stack X~T All numerical data is in internal format, client must convert numbers.
Definition at line 56 of file ufuncs.cpp.
| void show_reg | ( | char * | c, |
| char * | reg | ||
| ) |
show a register on the debug console
- Parameters:
-
*reg pointer to a register (14 chars
Definition at line 172 of file ufuncs.cpp.
