66 #if defined(RelianceCore_EXPORTS) 68 #define RELIANCECORE_EXPORT __declspec(dllexport) 71 #define RELIANCECORE_EXPORT __declspec(dllimport) 75 #define RELIANCECORE_EXPORT 81 #define RELIANCE_HID_VERSION ("1.4.0") 83 #if !defined(NAMESPACE_BEGIN) || defined(DOXYGEN_DOCUMENTATION_BUILD) 95 #define NAMESPACE_BEGIN(name) namespace name { 97 #if !defined(NAMESPACE_END) || defined(DOXYGEN_DOCUMENTATION_BUILD) 106 #define NAMESPACE_END(name) } 120 RelianceHID(RelianceHID &) =
delete;
121 RelianceHID(
const RelianceHID &&) =
delete;
156 presenterPaperPres = 1 << 3,
157 pathPaperPres = 1 << 4,
158 paperPaperPres = 1 << 5,
160 armPaperPres = 1 << 7,
172 isOverheated = 1 << 1,
173 isCutterErr = 1 << 2,
174 isOverVoltage = 1 << 3,
175 isUnderVoltage = 1 << 4,
176 isPlatenOpen = 1 << 5,
178 isUnknownErr = 1 << 7,
196 uint8_t headVoltage[6];
290 static float adc2Voltage(uint16_t adc);
564 std::unique_ptr<Impl> impl;
SensorStatus sensorStatus
Sensor status flags.
Definition: RelianceHID.hpp:200
uint16_t pathRawADC
Path sensor 12-bit ADC value.
Definition: RelianceHID.hpp:210
int major
Major revision, e.g. 1.x.x.
Definition: RelianceHID.hpp:332
std::string message
Parsed message may contain more info about errors or results.
Definition: RelianceHID.hpp:320
Status response from Reliance printer.
Definition: RelianceHID.hpp:138
Describes a firmware revision levels using semver syntax.
Definition: RelianceHID.hpp:331
ErrorStatus errorStatus
Error status flags.
Definition: RelianceHID.hpp:203
ReturnCode ret
For command execution.
Definition: RelianceHID.hpp:317
int build
Build revision, e.g. x.x.1.
Definition: RelianceHID.hpp:334
SensorStatus
Bit enumeration describes the state of each sensor.
Definition: RelianceHID.hpp:152
uint16_t armADC
ARM sensor 12-bit ADC value.
Definition: RelianceHID.hpp:213
uint16_t paperADC
Paper sensor 12-bit ADC value.
Definition: RelianceHID.hpp:211
Describes response from all RelianceHID printer commands.
Definition: RelianceHID.hpp:316
#define RELIANCECORE_EXPORT
DLL Export macro.
Definition: RelianceHID.hpp:75
#define NAMESPACE_BEGIN(name)
Convenience macro for namespace declarations.
Definition: RelianceHID.hpp:95
#define NAMESPACE_END(name)
Convenience macro for namespace declarations.
Definition: RelianceHID.hpp:106
std::string command
Name of command.
Definition: RelianceHID.hpp:319
int minor
Minor revision, e.g. x.1.x.
Definition: RelianceHID.hpp:333
std::vector< std::string > ArgList
List of string arguments.
Definition: RelianceHID.hpp:129
uint16_t presenterADC
Raw voltages - ADC 12-bit.
Definition: RelianceHID.hpp:209
Primary interface for interacting with Reliance Thermal Printer.
Definition: RelianceHID.hpp:118
TicketState
Reliance will always be in one of these states.
Definition: RelianceHID.hpp:189
ReturnCode
Quick return code.
Definition: RelianceHID.hpp:300
ErrorStatus
Bit enumberation describes each error state that can be reported by Reliance.
Definition: RelianceHID.hpp:170
ArgList args
List of parameters passed with command, if any.
Definition: RelianceHID.hpp:318
uint8_t headTempC
Temperature of head, degrees C.
Definition: RelianceHID.hpp:197
TicketState ticketState
Ticket status flag.
Definition: RelianceHID.hpp:206
uint16_t notchADC
Notch sensor 12-bit ADC value.
Definition: RelianceHID.hpp:212