Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Printer.h
- Revision:
- 1:f257e2e4e026
- Parent:
- 0:7f3d28e53383
diff -r 7f3d28e53383 -r f257e2e4e026 Printer.h --- a/Printer.h Fri Jul 05 10:32:31 2019 +0000 +++ b/Printer.h Fri Feb 07 08:22:28 2020 +0000 @@ -23,13 +23,13 @@ class ResultParsing { public: - bool valid; - uint8_t id; - float volume; - int money; - int ppu; - string product; - uint8_t type; + bool valid; + uint8_t id; + float volume; + int money; + int ppu; + string product; + uint8_t type; }; // ============================================================================= @@ -38,19 +38,20 @@ public: Printer(PinName tx_, PinName rx_, int baud_=9600); ~Printer(); - + void init(const PrinterFormat &pf); - + void create_header(); - void TestPrint(const std::time_t &now); - void PrintStruk(const std::time_t &now, const char *datain, const unsigned int &no_nota, const uint8_t &nozz, - const uint8_t pipa, const string &Nopol, const string &Odo); - void PrintStruk(const std::time_t &now, const ResultParsing &res, const unsigned int &no_nota, - const string &Nopol, const string &Odo); - void DebugStruk(const std::time_t &now, const ResultParsing &res, const unsigned int &no_nota, - const string &Nopol, const string &Odo); - void TestPrint2(); - + void TestPrint(const std::time_t &now); + void PrintStruk(const std::time_t &now, const char *datain, const unsigned int &no_nota, const uint8_t &nozz, + const uint8_t pipa, const string &Nopol, const string &Odo); + void PrintStruk(const std::time_t &now, const ResultParsing &res, const unsigned int &no_nota, + const string &Nopol, const string &Odo); + void PrintStrukManual(const std::time_t &now, const ResultParsing &res, const unsigned int &no_nota); + void DebugStruk(const std::time_t &now, const ResultParsing &res, const unsigned int &no_nota, + const string &Nopol, const string &Odo); + void TestPrint2(); + private: TMU220 Tm; PrinterFormat Pf;