Index: firmware/App/Modes/OperationModes.h =================================================================== diff -u -r48ca7fd644c67920acc29a80b7af379d0a134d1a -r6d4aa77e6b85aa7621a234660f631e725fb1d441 --- firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 48ca7fd644c67920acc29a80b7af379d0a134d1a) +++ firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 6d4aa77e6b85aa7621a234660f631e725fb1d441) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-2026 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) Vinayakam Mani -* @date (last) 05-Aug-2024 +* @author (last) Raghu Kallala +* @date (last) 06-Apr-2026 * * @author (original) Vinayakam Mani -* @date (original) 05-Aug-2024 +* @date (original) 07-Aug-2024 * ***************************************************************************/ @@ -21,6 +21,7 @@ #include "DDCommon.h" #include "DDDefs.h" #include "TDDefs.h" + /** * @defgroup DDOperationModes DDOperationModes * @brief Operation Modes unit. Manages the top level operation modes of the DD via a state machine. @@ -36,8 +37,8 @@ /// Operation modes data structure typedef struct { - U32 currentMode; ///< Current Mode. - U32 currentSubMode; ///< Current Submode. + U32 opMode; ///< Operation Mode. + U32 subMode; ///< Submode. } OP_MODES_DATA_T; /// TD mode and TD submode @@ -50,7 +51,7 @@ // ********** public function prototypes ********** void initOperationModes( void ); // initialize this unit -void execOperationModes( void ); // execute the operation modes state machine (scheduled periodic call) +void execDDOperationModes( void ); // execute the operation modes state machine (scheduled periodic call) void requestNewOperationMode( DD_OP_MODE_T newMode ); // request a transition to a new operation mode DD_OP_MODE_T getCurrentOperationMode( void ); // get the current operation mode DD_OP_MODE_T getPreviousOperationMode( void ); // get the previous operation mode @@ -62,6 +63,7 @@ BOOL testSetOperationMode( MESSAGE_T *message ); // Force transition to a given mode (if allowed) BOOL testDDOpModePublishIntervalOverride( MESSAGE_T *message ); // DD Opmode publish interval override +BOOL testSetOperationSubMode( MESSAGE_T *message ); // Set transition to operation sub mode (if valid) /**@}*/