public class UartSettingsConverter
extends java.lang.Object
informations :
PHY: Sélection du port physique
STP : Stop bits correspond au nombre de stops bits.
PAR: parité des données.
LEN: Data bits correspond au nombre de bits des données.
FLW : Handshake correspond au contrôle de flux de la liaison série.
RFU : Reserved For Future Use
TMO : TimeOut.
BDR : Baudrate correspond au débit de communication de la liaison série.
Unité : baud.
OFS : adresse premier registre valeur 0 = adresse 0, 1 = adresse 1)
SLV: « Adresse esclave » ou « identifiant équipement », valeur de 1 à 247.
Modifier and Type | Field and Description |
---|---|
static int |
BAUD_RATE_LENGTH |
static int |
BAUD_RATE_LENGTH_PAD |
static int |
DATA_LENGTH_LENGTH |
static int |
FLW_HANDSHAKE_DELIMITER_LENGTH |
static int |
FLW_HANDSHAKE_VALUE_LENGTH |
static int |
OFS_LENGTH |
static int |
PARITY_LENGTH |
static int |
PHYSICAL_PORT_LENGTH |
static int |
RFU_CTR1_LENGTH |
static int |
RFU_CTR2_LENGTH |
static int |
SLV_LENGTH |
static int |
STOP_BIT_LENGTH |
static int |
TIMEOUT_LENGTH |
static int |
TOTAL_SIZE_IN_BITS |
static int |
TOTAL_SIZE_IN_BYTES |
Constructor and Description |
---|
UartSettingsConverter() |
Modifier and Type | Method and Description |
---|---|
UartSettings |
decode(byte[] rawBodyData) |
void |
decodeCTR1(BitBuffer buffer,
UartSettings settings) |
void |
decodeCTR2(BitBuffer buffer,
UartSettings settings) |
byte[] |
encode(UartSettings settings) |
void |
encodeCTR1(BitBuffer buffer,
UartSettings settings) |
void |
encodeCTR2(BitBuffer buffer,
UartSettings settings) |
static UartSettingsConverter |
instance() |
public static final int RFU_CTR1_LENGTH
public static final int PHYSICAL_PORT_LENGTH
public static final int STOP_BIT_LENGTH
public static final int PARITY_LENGTH
public static final int DATA_LENGTH_LENGTH
public static final int FLW_HANDSHAKE_VALUE_LENGTH
public static final int FLW_HANDSHAKE_DELIMITER_LENGTH
public static final int TIMEOUT_LENGTH
public static final int SLV_LENGTH
public static final int RFU_CTR2_LENGTH
public static final int OFS_LENGTH
public static final int BAUD_RATE_LENGTH
public static final int BAUD_RATE_LENGTH_PAD
public static final int TOTAL_SIZE_IN_BITS
public static final int TOTAL_SIZE_IN_BYTES
public UartSettings decode(byte[] rawBodyData)
public byte[] encode(UartSettings settings)
public void decodeCTR1(BitBuffer buffer, UartSettings settings)
public void decodeCTR2(BitBuffer buffer, UartSettings settings)
public void encodeCTR1(BitBuffer buffer, UartSettings settings)
public void encodeCTR2(BitBuffer buffer, UartSettings settings)
public static UartSettingsConverter instance()