Index: firmware/App/Modes/OperationModes.h =================================================================== diff -u -r3b70632c04247a6973960e1f37ae73eb4384a6b7 -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 --- firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 3b70632c04247a6973960e1f37ae73eb4384a6b7) +++ firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file OperationModes.h * -* @author (last) Sean Nash -* @date (last) 08-Jul-2022 +* @author (last) Dara Navaei +* @date (last) 14-Sep-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -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,8 @@ 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 +U32 getCurrentOperationSubMode( void ); // get current operation sub 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 );