public static enum SerialComManager.FTPVAR extends Enum<SerialComManager.FTPVAR>
Pre-defined enum constants for defining variant of file transfer protocol to use.
| Enum Constant and Description |
|---|
CHKSUM
Checksum variant for XMODEM protocol (1 byte checksum with total block size of 132).
|
CRC
CRC variant for XMODEM protocol (2 byte CRC with total block size of 133).
|
DEFAULT
Checksum for XMODEM protocol, 128 data byte block for YMODEM.
|
VAR128B
128 byte data variant for YMODEM protocol (//TODO).
|
VAR1K
1k variant for X/Y MODEM protocol (2 byte CRC with total block size of 1024).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.FTPVAR |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.FTPVAR[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.FTPVAR DEFAULT
Checksum for XMODEM protocol, 128 data byte block for YMODEM.
public static final SerialComManager.FTPVAR CHKSUM
Checksum variant for XMODEM protocol (1 byte checksum with total block size of 132).
public static final SerialComManager.FTPVAR CRC
CRC variant for XMODEM protocol (2 byte CRC with total block size of 133).
public static final SerialComManager.FTPVAR VAR1K
1k variant for X/Y MODEM protocol (2 byte CRC with total block size of 1024).
public static final SerialComManager.FTPVAR VAR128B
128 byte data variant for YMODEM protocol (//TODO).
public static SerialComManager.FTPVAR[] values()
for (SerialComManager.FTPVAR c : SerialComManager.FTPVAR.values()) System.out.println(c);
public static SerialComManager.FTPVAR valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
Copyright © 2016. All rights reserved.