RelianceCore  1.4.0
Reliance Thermal Printer API
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
RelianceHID::RelianceStatus Struct Reference

Status response from Reliance printer. More...

Public Types

Public Member Functions

 RelianceStatus ()=default
 ! Constructor More...
 
 ~RelianceStatus ()=default
 ! Destructor More...
 
bool hasSensorFlag (SensorStatus flag)
 Helper function to check if specified flag is set. More...
 
bool hasErrorFlag (ErrorStatus flag)
 Helper function to check if specified flag is set. More...
 
bool hasSensorFlag (SensorStatus flag) const
 Const function method to check if specified flag is set. More...
 
bool hasErrorFlag (ErrorStatus flag) const
 Const function method to check if specified flag is set. More...
 
bool isPaperLow ()
 Helper function returns true if status report indicates paper low. More...
 
bool isPaperOut ()
 Helper function returns true if status report indicates paper is out. More...
 

Static Public Member Functions

static float adc2Voltage (uint16_t adc)
 Returns the voltage given a raw ADC reading. This assumes a 12-bit ADC. More...
 

Data Fields

uint8_t headVoltage [6]
 Print head voltage. More...
 
uint8_t headTempC
 Temperature of head, degrees C. More...
 
SensorStatus sensorStatus
 Sensor status flags. More...
 
ErrorStatus errorStatus
 Error status flags. More...
 
TicketState ticketState
 Ticket status flag. More...
 
uint16_t presenterADC
 Raw voltages - ADC 12-bit. More...
 
uint16_t pathRawADC
 Path sensor 12-bit ADC value. More...
 
uint16_t paperADC
 Paper sensor 12-bit ADC value. More...
 
uint16_t notchADC
 Notch sensor 12-bit ADC value. More...
 
uint16_t armADC
 ARM sensor 12-bit ADC value. More...
 

Detailed Description

Status response from Reliance printer.

Constructor & Destructor Documentation

RelianceHID::RelianceStatus::RelianceStatus ( )
default

! Constructor

RelianceHID::RelianceStatus::~RelianceStatus ( )
default

! Destructor

Field Documentation

uint16_t RelianceHID::RelianceStatus::armADC

ARM sensor 12-bit ADC value.

ErrorStatus RelianceHID::RelianceStatus::errorStatus

Error status flags.

uint8_t RelianceHID::RelianceStatus::headTempC

Temperature of head, degrees C.

uint8_t RelianceHID::RelianceStatus::headVoltage[6]

Print head voltage.

uint16_t RelianceHID::RelianceStatus::notchADC

Notch sensor 12-bit ADC value.

uint16_t RelianceHID::RelianceStatus::paperADC

Paper sensor 12-bit ADC value.

uint16_t RelianceHID::RelianceStatus::pathRawADC

Path sensor 12-bit ADC value.

uint16_t RelianceHID::RelianceStatus::presenterADC

Raw voltages - ADC 12-bit.

Presenter sensor 12-bit ADC value

SensorStatus RelianceHID::RelianceStatus::sensorStatus

Sensor status flags.

TicketState RelianceHID::RelianceStatus::ticketState

Ticket status flag.


The documentation for this struct was generated from the following file: