![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Write file data for data phase receive. More...
#include <Command.h>
Inheritance diagram for blfwk::DataPacket::FileDataConsumer:
Collaboration diagram for blfwk::DataPacket::FileDataConsumer:Public Member Functions | |
| FileDataConsumer () | |
| Default constructor. | |
| virtual | ~FileDataConsumer () |
| Destructor. | |
| bool | init (std::string filePath) |
| Initialize with a file path. More... | |
| virtual void | processData (const uint8_t *data, uint32_t size) |
| Process the next data chunk. More... | |
| virtual void | finalize () |
| Finalize processing. | |
Protected Attributes | |
| std::string | m_filePath |
| Data file path. | |
| FILE * | m_filePointer |
| Data file pointer. | |
Write file data for data phase receive.
| bool blfwk::DataPacket::FileDataConsumer::init | ( | std::string | filePath | ) |
Initialize with a file path.
See host_command.h for documentation on this function.
|
virtual |
Process the next data chunk.
See host_command.h for documentation on this function.
Implements blfwk::DataPacket::DataConsumer.