public abstract class LynxI2cResponse extends LynxDekaInterfaceResponse
Modifier and Type | Field and Description |
---|---|
protected byte |
i2cStatus |
RESPONSE_BIT
ackOrNackReceived, isAckOrResponseReceived, nackReceived, response, responseOrNackReceived, retransmissionsRemaining
hasBeenTransmitted, messageNumber, module, nanotimeLastTransmit, payloadTimeWindow, referenceNumber, serialization
Constructor and Description |
---|
LynxI2cResponse(LynxModuleIntf module) |
Modifier and Type | Method and Description |
---|---|
byte |
getI2cStatus() |
boolean |
isAddressAcknowledged() |
static boolean |
isAddressAcknowledged(byte status) |
boolean |
isArbitrationLost() |
static boolean |
isArbitrationLost(byte status) |
boolean |
isClockTimeout() |
static boolean |
isClockTimeout(byte status) |
boolean |
isDataAcknowledged() |
static boolean |
isDataAcknowledged(byte status) |
boolean |
isStatusOk() |
static boolean |
isStatusOk(byte status) |
void |
logResponse() |
getInterface
getBaseCommandNumber, getCommandNumber, getInterfaceResponseIndex
isResponse, isResponseExpected
awaitAckResponseOrNack, awaitAndRetransmit, getMsAwaitInterval, getMsRetransmissionInterval, getNackReceived, hasBeenAcknowledged, isAckable, isAckOrResponseReceived, isNackReceived, isRetransmittable, noteAttentionRequired, noteRetransmission, onAckReceived, onNackReceived, onPretendTransmit, onResponseReceived, pretendFinish, responseOrThrow, send, sendReceive, setUnretransmittable, throwIfNack, throwNackForUnsupportedCommand, usePretendResponseIfRealModuleDoesntSupport
acquireNetworkLock, forgetSerialization, fromPayloadByteArray, getDestModuleAddress, getMessageNumber, getModule, getModuleAddress, getNanotimeLastTransmit, getPayloadTimeWindow, getReferenceNumber, getSerialization, hasBeenTransmitted, invokeStaticNullaryMethod, isAck, isNack, loadFromSerialization, noteHasBeenTransmitted, releaseNetworkLock, resetModulePingTimer, setMessageNumber, setModule, setNanotimeLastTransmit, setPayloadTimeWindow, setReferenceNumber, setSerialization, toPayloadByteArray
public LynxI2cResponse(LynxModuleIntf module)
public byte getI2cStatus()
public boolean isAddressAcknowledged()
public boolean isDataAcknowledged()
public boolean isArbitrationLost()
public boolean isClockTimeout()
public boolean isStatusOk()
public void logResponse()
public static boolean isAddressAcknowledged(byte status)
public static boolean isDataAcknowledged(byte status)
public static boolean isArbitrationLost(byte status)
public static boolean isClockTimeout(byte status)
public static boolean isStatusOk(byte status)