protected class I2cDeviceSynchImpl.Callback extends java.lang.Object implements I2cController.I2cPortReadyCallback, I2cController.I2cPortReadyBeginEndNotifications
Modifier and Type | Field and Description |
---|---|
protected boolean |
doModuleIsArmedWorkEnabledWrites |
protected boolean |
enabledReadMode |
protected boolean |
enabledWriteMode |
protected boolean |
haveSeenModuleIsArmedWork |
protected boolean |
heartbeatRequired |
protected I2cDeviceSynchImpl.READ_CACHE_STATUS |
prevReadCacheStatus |
protected I2cDeviceSynchImpl.WRITE_CACHE_STATUS |
prevWriteCacheStatus |
protected boolean |
queueFullWrite |
protected boolean |
queueRead |
protected boolean |
setActionFlag |
Modifier | Constructor and Description |
---|---|
protected |
Callback() |
Modifier and Type | Method and Description |
---|---|
protected void |
doModuleIsArmedWork(boolean arming) |
protected void |
issueWrite() |
void |
onModuleStateChange(RobotArmingStateNotifier robotUsbModule,
RobotUsbModule.ARMINGSTATE armingstate) |
void |
onPortIsReadyCallbacksBegin(int port) |
void |
onPortIsReadyCallbacksEnd(int port) |
void |
portIsReady(int port) |
protected void |
startSwitchingToReadMode(I2cDeviceSynch.ReadWindow window) |
protected void |
updateStateMachines() |
protected boolean setActionFlag
protected boolean queueFullWrite
protected boolean queueRead
protected boolean heartbeatRequired
protected boolean enabledReadMode
protected boolean enabledWriteMode
protected I2cDeviceSynchImpl.READ_CACHE_STATUS prevReadCacheStatus
protected I2cDeviceSynchImpl.WRITE_CACHE_STATUS prevWriteCacheStatus
protected boolean doModuleIsArmedWorkEnabledWrites
protected boolean haveSeenModuleIsArmedWork
public void portIsReady(int port)
portIsReady
in interface I2cController.I2cPortReadyCallback
public void onModuleStateChange(RobotArmingStateNotifier robotUsbModule, RobotUsbModule.ARMINGSTATE armingstate)
public void onPortIsReadyCallbacksBegin(int port)
onPortIsReadyCallbacksBegin
in interface I2cController.I2cPortReadyBeginEndNotifications
protected void doModuleIsArmedWork(boolean arming)
public void onPortIsReadyCallbacksEnd(int port)
onPortIsReadyCallbacksEnd
in interface I2cController.I2cPortReadyBeginEndNotifications
protected void startSwitchingToReadMode(I2cDeviceSynch.ReadWindow window)
protected void issueWrite()
protected void updateStateMachines()