Each port is assigned a port ID. Port IDs are 16 bits long and consist of two parts: a 6-bit priority setting and a 10-bitport number.
每个端口指定了一个端口id,端口id长16位,由两部分组成,一个6位的优先值和一个10为的端口号。
2
The most obvious issue is that the interface in Listing 6 requires a JNI call for each bit set or retrieved, as well as a JNI call to read a byte from, or write a byte to, the serial port.