ThermalPrinter

Committer:
williequesada
Date:
Tue Jun 04 17:00:38 2019 +0000
Revision:
0:c6a99e05245f
pablo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
williequesada 0:c6a99e05245f 1 #ifndef MBED_THERMAL_H
williequesada 0:c6a99e05245f 2 #define MBED_THERMAL_H
williequesada 0:c6a99e05245f 3
williequesada 0:c6a99e05245f 4 #include "mbed.h"
williequesada 0:c6a99e05245f 5
williequesada 0:c6a99e05245f 6 class PRINTER {
williequesada 0:c6a99e05245f 7 public:
williequesada 0:c6a99e05245f 8 PRINTER(PinName TX, PinName RX,PinName PAPER, PinName SELECT,PinName RESET,PinName POWER);
williequesada 0:c6a99e05245f 9
williequesada 0:c6a99e05245f 10 void ThermalPrinterInterruption();
williequesada 0:c6a99e05245f 11 uint8_t Power(bool Turn);
williequesada 0:c6a99e05245f 12 uint8_t Reset();
williequesada 0:c6a99e05245f 13 uint8_t Output(char Date[],char Hour_Start[],char Hour_Finish[],char Place[],char Time[],char Ticket[],char Money[]);
williequesada 0:c6a99e05245f 14 uint8_t Cutter(bool Type);
williequesada 0:c6a99e05245f 15 uint8_t Paper(uint32_t Duration);
williequesada 0:c6a99e05245f 16 uint8_t End();
williequesada 0:c6a99e05245f 17 char Entrada();
williequesada 0:c6a99e05245f 18 uint8_t Ticket(bool Instruction);
williequesada 0:c6a99e05245f 19
williequesada 0:c6a99e05245f 20 private:
williequesada 0:c6a99e05245f 21 RawSerial ThermalPrinter;
williequesada 0:c6a99e05245f 22 DigitalOut _PAPER;
williequesada 0:c6a99e05245f 23 DigitalOut _SELECT;
williequesada 0:c6a99e05245f 24 DigitalOut _RESET;
williequesada 0:c6a99e05245f 25 DigitalOut _POWER;
williequesada 0:c6a99e05245f 26 };
williequesada 0:c6a99e05245f 27
williequesada 0:c6a99e05245f 28 #endif