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
1 byte checksum with 128 byte data block variant for X modem protocol.
|
CRC
2 bytes CRC with 128 byte data block variant for X/Y modem protocols.
|
VAR1K
2 byte CRC with 128/1024 bytes data block variant for X/Y modem protocols.
|
VARG
2 byte CRC with 128/1024 bytes data block Ymodem-G variant of Y modem protocol.
|
| 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 CHKSUM
1 byte checksum with 128 byte data block variant for X modem protocol. If you are new to FTP protocols start with this.
public static final SerialComManager.FTPVAR CRC
2 bytes CRC with 128 byte data block variant for X/Y modem protocols.
public static final SerialComManager.FTPVAR VAR1K
2 byte CRC with 128/1024 bytes data block variant for X/Y modem protocols.
public static final SerialComManager.FTPVAR VARG
2 byte CRC with 128/1024 bytes data block Ymodem-G variant of Y modem protocol.
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 © 2017. All rights reserved.