Driver for Me Host Parser module.
More...
#include <src/MeHostParser.h>
Driver for Me Host Parser module.
Class: MeHostParser
- Description
- Declaration of Class MeHostParser.
- Copyright (C), 2012-2016, MakeBlock
◆ MeHostParser()
| MeHostParser::MeHostParser |
( |
| ) |
|
Alternate Constructor which can call your own function to map the Host Parser to arduino port, no pins are used or initialized here.
- Parameters
-
◆ ~MeHostParser()
| MeHostParser::~MeHostParser |
( |
| ) |
|
Alternate Destructor which can call the system's destructor to free space, no pins are used or initialized here.
- Parameters
-
◆ getData()
| uint8_t MeHostParser::getData |
( |
uint8_t * |
buf, |
|
|
uint32_t |
size |
|
) |
| |
- Function
- getData
- Description
- Copy data to user's buffer.
- Parameters
-
| [in] | buf | - A buffer for a getting data. |
| [in] | size | - The length of getting data. |
- Output
- None
- Return
- Return the length of getting data or 0.
- Others
- None
◆ getPackageReady()
| uint8_t MeHostParser::getPackageReady |
( |
| ) |
|
- Function
- getPackageReady
- Description
- Get the package ready state.
- Parameters
-
- Output
- None
- Return
- Return the status ready or not.
- Others
- None
◆ pushByte()
| uint8_t MeHostParser::pushByte |
( |
uint8_t |
ch | ) |
|
- Function
- pushByte
- Description
- To push a byte to Host Parser.
- Parameters
-
| [in] | ch | - A pointer to a char. |
- Output
- None
- Return
- Return the status of pushing char.
- Others
- None
◆ pushStr()
| uint8_t MeHostParser::pushStr |
( |
uint8_t * |
str, |
|
|
uint32_t |
length |
|
) |
| |
- Function
- pushStr
- Description
- To push a string to Host Parser.
- Parameters
-
| [in] | str | - A pointer to a string. |
| [in] | length | - The length of the string. |
- Output
- None
- Return
- Return the index of pushing string.
- Others
- None
◆ run()
| uint8_t MeHostParser::run |
( |
void |
| ) |
|
- Function
- run
- Description
- The running status of Host Parser.
- Parameters
-
- Output
- None
- Return
- Return the status of Host Parser's running.
- Others
- None
The documentation for this class was generated from the following files: