public static final class StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Action
SELECT Command’s Action field enumeration
|
static class |
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Target
SELECT Command’s Target field enumeration
|
Modifier and Type | Method and Description |
---|---|
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Action |
getAction()
Obtain SELECT Command’s Action Field
|
StUhf.Bank |
getBank()
Obtain SELECT Command’s Bank Field
|
byte[] |
getBytes() |
byte[] |
getMask()
Obtain SELECT Command’s Mask
|
int |
getMaskLength()
Obtain SELECT Command’s Mask bit length
|
static StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand |
getNewInstance(StUhf.Bank bank,
int ptr,
int masklen,
byte[] mask)
To generate a valid SELECT Command。
Among them:target=0x00,action=0x04,truncate=0x00 |
protected static StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand |
getNewInstance(StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Target target,
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Action action,
StUhf.Bank bank,
int ptr,
int masklen,
byte[] mask,
boolean truncate)
生成一个SELECT Command
因Rlm300模块对输入的命令未完全实现,暂时只支持getNewInstance
故暂将本完全实现隐去
|
int |
getPointer()
Obtain SELECT Command’s the start bit field
|
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Target |
getTarget()
Obtain SELECT Command’s Target Field
|
protected static StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand getNewInstance(StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Target target, StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Action action, StUhf.Bank bank, int ptr, int masklen, byte[] mask, boolean truncate)
target
- action
- bank
- ptr
- masklen
- mask
- truncate
- java.lang.IllegalArgumentException
- 如果依传入的参数无法生成一个正当的SELECT Commandpublic static StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand getNewInstance(StUhf.Bank bank, int ptr, int masklen, byte[] mask)
bank
-
Matching Bankptr
-
Matching Bank’s initial word addressmasklen
-
Need to match length of data bitsmask
-
Need to match the data bits, in bytes, if less than the median integer bytes, the last byte of the other bits will be ignored java.lang.IllegalArgumentException
-
If the incoming parameters cannot generate an appropriate SELECT Commandpublic byte[] getBytes()
public StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Target getTarget()
public StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand.Action getAction()
public StUhf.Bank getBank()
public int getPointer()
public int getMaskLength()
public byte[] getMask()