init
This commit is contained in:
29
lib/enums/multi_byte_encoding.dart
Normal file
29
lib/enums/multi_byte_encoding.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
/// Multi-byte character encoding for ticket printing.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK CP_MultiByteEncoding constants.
|
||||
/// The printer uses the specified encoding to interpret received data.
|
||||
///
|
||||
/// Note: value 2 is reserved/unused per SDK specification. The sequence
|
||||
/// jumps from UTF8(1) to BIG5(3).
|
||||
enum MultiByteEncoding {
|
||||
/// GBK encoding (Simplified Chinese)
|
||||
gbk(0),
|
||||
|
||||
/// UTF-8 encoding (Unicode)
|
||||
utf8(1),
|
||||
|
||||
// Note: value 2 is reserved/unused per SDK specification
|
||||
|
||||
/// BIG5 encoding (Traditional Chinese)
|
||||
big5(3),
|
||||
|
||||
/// Shift-JIS encoding (Japanese)
|
||||
shiftJis(4),
|
||||
|
||||
/// EUC-KR encoding (Korean)
|
||||
eucKr(5);
|
||||
|
||||
/// The integer value matching the SDK constant.
|
||||
final int value;
|
||||
const MultiByteEncoding(this.value);
|
||||
}
|
||||
17
lib/enums/printer_alignment.dart
Normal file
17
lib/enums/printer_alignment.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
/// Alignment for ticket printing.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK CP_Pos_Alignment constants.
|
||||
enum PrinterAlignment {
|
||||
/// Left alignment
|
||||
left(0),
|
||||
|
||||
/// Center alignment
|
||||
center(1),
|
||||
|
||||
/// Right alignment
|
||||
right(2);
|
||||
|
||||
/// The integer value matching the SDK constant.
|
||||
final int value;
|
||||
const PrinterAlignment(this.value);
|
||||
}
|
||||
20
lib/enums/serial_flow_control.dart
Normal file
20
lib/enums/serial_flow_control.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
/// Flow control setting for serial port communication.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK flow control constants.
|
||||
enum SerialFlowControl {
|
||||
/// No flow control
|
||||
none(0),
|
||||
|
||||
/// XON/XOFF software flow control
|
||||
xonXoff(1),
|
||||
|
||||
/// RTS/CTS hardware flow control
|
||||
rtsCts(2),
|
||||
|
||||
/// DTR/DSR hardware flow control
|
||||
dtrDsr(3);
|
||||
|
||||
/// The integer value matching the AAR SDK constant.
|
||||
final int value;
|
||||
const SerialFlowControl(this.value);
|
||||
}
|
||||
23
lib/enums/serial_parity.dart
Normal file
23
lib/enums/serial_parity.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
/// Parity setting for serial port communication.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK parity constants.
|
||||
enum SerialParity {
|
||||
/// No parity
|
||||
none(0),
|
||||
|
||||
/// Odd parity
|
||||
odd(1),
|
||||
|
||||
/// Even parity
|
||||
even(2),
|
||||
|
||||
/// Mark parity
|
||||
mark(3),
|
||||
|
||||
/// Space parity
|
||||
space(4);
|
||||
|
||||
/// The integer value matching the AAR SDK constant.
|
||||
final int value;
|
||||
const SerialParity(this.value);
|
||||
}
|
||||
17
lib/enums/serial_stop_bits.dart
Normal file
17
lib/enums/serial_stop_bits.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
/// Stop bits setting for serial port communication.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK stop bits constants.
|
||||
enum SerialStopBits {
|
||||
/// 1 stop bit
|
||||
one(0),
|
||||
|
||||
/// 1.5 stop bits
|
||||
onePointFive(1),
|
||||
|
||||
/// 2 stop bits
|
||||
two(2);
|
||||
|
||||
/// The integer value matching the AAR SDK constant.
|
||||
final int value;
|
||||
const SerialStopBits(this.value);
|
||||
}
|
||||
Reference in New Issue
Block a user