Index: firmware/App/Modes/OperationModes.h =================================================================== diff -u -r6499ea25921fcf67826fa0c35bb03caf411ba542 -rd19a072db6880577f677093929b53445e34a33e3 --- firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 6499ea25921fcf67826fa0c35bb03caf411ba542) +++ firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision d19a072db6880577f677093929b53445e34a33e3) @@ -31,6 +31,8 @@ // ********** public definitions ********** +#define NO_SUB_STATE 0xFF ///< value for when submode does not have specific substates and is not applicable. + /// Operation modes data structure typedef struct { @@ -45,6 +47,7 @@ void requestNewOperationMode( DG_OP_MODE_T newMode ); // request a transition to a new operation mode DG_OP_MODE_T getCurrentOperationMode( void ); // get the current operation mode DG_OP_MODE_T getPreviousOperationMode( void ); // get the previous operation mode +void setCurrentSubState( U32 subState ); // Set the current substate. BOOL testSetOperationMode( DG_OP_MODE_T newMode ); // Force transition to a given mode (if allowed) BOOL testSetDGOpModePublishIntervalOverride( U32 value );