public class Status
extends java.lang.Object
Status
class represents the status about the reader.Constructor and Description |
---|
Status()
Creates an instance of
Status . |
Status(byte[] buffer)
Initializes the status from the byte array.
|
Status(byte[] buffer,
int offset,
int byteCount)
Initializes the status from the byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
fromByteArray(byte[] buffer)
Initializes the status from the byte array.
|
void |
fromByteArray(byte[] buffer,
int offset,
int byteCount)
Initializes the status from the byte array.
|
int |
getBatteryLevel()
Gets the battery level.
|
int |
getSleepTimeout()
Gets the sleep timeout.
|
public Status()
Status
.public Status(byte[] buffer)
buffer
- the buffer.public Status(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public void fromByteArray(byte[] buffer)
buffer
- the buffer.public void fromByteArray(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public int getBatteryLevel()
Value | Meaning |
---|---|
00h | Battery Level >= 3.0V |
01h | 2.9 <= Battery Level < 3.0V |
02h | 2.8 <= Battery Level < 2.9V |
03h | 2.7 <= Battery Level < 2.8V |
04h | 2.6 <= Battery Level < 2.7V |
05h | 2.5 <= Battery Level < 2.6V |
06h | 2.4 <= Battery Level < 2.5V |
07h | 2.3 <= Battery Level < 2.4V |
08h | Battery Level < 2.3V |
public int getSleepTimeout()
Copyright © 2013-2018, Advanced Card Systems Ltd. All rights reserved.