public enum SerialControlFlag extends Enum<SerialControlFlag>
| 枚举常量和说明 |
|---|
SERIAL_CONTROL_FLAG_BLOCKING
Block on writes to the serial port
|
SERIAL_CONTROL_FLAG_EXCLUSIVE
Set if access to the serial port should be removed from whatever driver is currently using it, giving exclusive access to the SERIAL_CONTROL protocol.
|
SERIAL_CONTROL_FLAG_MULTI
Send multiple replies until port is drained
|
SERIAL_CONTROL_FLAG_REPLY
Set if this is a reply
|
SERIAL_CONTROL_FLAG_RESPOND
Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message
|
public static final SerialControlFlag SERIAL_CONTROL_FLAG_REPLY
public static final SerialControlFlag SERIAL_CONTROL_FLAG_RESPOND
public static final SerialControlFlag SERIAL_CONTROL_FLAG_EXCLUSIVE
public static final SerialControlFlag SERIAL_CONTROL_FLAG_BLOCKING
public static final SerialControlFlag SERIAL_CONTROL_FLAG_MULTI
public static SerialControlFlag[] values()
for (SerialControlFlag c : SerialControlFlag.values()) System.out.println(c);
public static SerialControlFlag valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2020. All rights reserved.