public class MBusUtils extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
BROADCAST_NO_ANSWER_PRIMARY_ADDRESS |
static byte |
BROADCAST_WITH_ANSWER_PRIMARY_ADDRESS |
static byte |
FIRST_REGULAR_PRIMARY_ADDRESS |
static byte |
LAST_REGULAR_PRIMARY_ADDRESS |
static byte |
SLAVE_SELECT_PRIMARY_ADDRESS |
static byte |
UNCONFIGURED_PRIMARY_ADDRESS |
Constructor and Description |
---|
MBusUtils() |
Modifier and Type | Method and Description |
---|---|
static byte |
bcd2Byte(byte b) |
static int |
bcd2Int(int i) |
static long |
bcd2Long(long l) |
static short |
bcd2Short(short s) |
static byte |
byte2Bcd(byte b) |
static int |
int2Bcd(int i) |
static long |
long2Bcd(long l) |
static short |
man2Short(String man)
convert the man string to 2 byte binary representation
|
static short |
short2Bcd(short s) |
static String |
short2Man(short value) |
static long |
String2Bcd(String value) |
public static final byte UNCONFIGURED_PRIMARY_ADDRESS
public static final byte FIRST_REGULAR_PRIMARY_ADDRESS
public static final byte LAST_REGULAR_PRIMARY_ADDRESS
public static final byte SLAVE_SELECT_PRIMARY_ADDRESS
public static final byte BROADCAST_WITH_ANSWER_PRIMARY_ADDRESS
public static final byte BROADCAST_NO_ANSWER_PRIMARY_ADDRESS
public static String short2Man(short value)
public static short man2Short(String man)
man
- public static long String2Bcd(String value)
public static long long2Bcd(long l)
public static long bcd2Long(long l)
public static int int2Bcd(int i)
public static int bcd2Int(int i)
public static short short2Bcd(short s)
public static short bcd2Short(short s)
public static byte byte2Bcd(byte b)
public static byte bcd2Byte(byte b)
Copyright © 2009–2016 MBus4J. All rights reserved.