protected class I2cDeviceSynchImpl.Callback extends java.lang.Object implements I2cController.I2cPortReadyCallback, I2cController.I2cPortReadyBeginEndNotifications, RobotArmingStateNotifier.Callback
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,
RobotArmingStateNotifier.ARMINGSTATE armingstate)
Notifies the callback that a module with which it has registered for notifications
has undergone a change of state.
|
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, RobotArmingStateNotifier.ARMINGSTATE armingstate)
RobotArmingStateNotifier.Callback
onModuleStateChange
in interface RobotArmingStateNotifier.Callback
robotUsbModule
- the module whose state has changedarmingstate
- the state into which that module has transitioned#registerCallback(Callback)
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()