com.ibutton.cib
Class CibMessage
java.lang.Object
|
+--com.ibutton.cib.CibMessage
- public class CibMessage
- extends java.lang.Object
Class used to communicate with the Crypto iButton/iButton with Java.
|
Constructor Summary |
CibMessage(Access access)
Constructor for a crypto iButton message object that will be
used to receive data from the iButton |
CibMessage(Access access,
int[] message,
int length,
int execTime)
Constructor for a crypto iButton message object that will be
used to send data to the iButton. |
|
Method Summary |
int[] |
getRawData()
Get the data received from the Crypto iButton. |
int |
receive(int bufferSize)
Receives data from the Crypto iButton. |
void |
send()
Send a message to the Crypto iButton. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CRCtable
public static int[] CRCtable
CE_BPOR
public static final int CE_BPOR
CibMessage
public CibMessage(Access access,
int[] message,
int length,
int execTime)
- Constructor for a crypto iButton message object that will be
used to send data to the iButton.
- Parameters:
access - - the communications object to do the One-Wire IO.message - - the data to send to the Crypto iButton.length - - the number of bytes to send to the iButton.execTime - - the amount of time to run the Crypto iButton.
CibMessage
public CibMessage(Access access)
- Constructor for a crypto iButton message object that will be
used to receive data from the iButton
- Parameters:
access - - the communications object to do the One-Wire IO.
send
public void send()
- Send a message to the Crypto iButton.
receive
public int receive(int bufferSize)
- Receives data from the Crypto iButton.
- Parameters:
bufferSize - The max number of bytes to read- Returns:
- The number of bytes received
getRawData
public int[] getRawData()
- Get the data received from the Crypto iButton.
- Returns:
- array containing the data received from the Crypto iButton.