parser
Description
Feeds commands to the DSM device
Syntax
Arguments
| command | command being sent to the DSM device |
Return Value
None
Example
dsm.parser ("d1 1000000");
Notes
When entering hexadecimal numbers using this method, you do not need to include the "0x" in front of the number. Due to the way the parser is implemented, you should always append a newline character following a parser command. You can either do this using the a member function in the intermediate class discussed in the Getting Started section or you can use #define. For example, you can use the following code:
Now instead of typing dsm.parser("...") all the time, you can just type Command("...").
The recommended way of course is to just use a member function in the intermediate class to implement a custom parser command function. An example of this is given in the MyDSM class in the example cldsm.cpp file.