Index: firmware/App/Modes/OperationModes.h =================================================================== diff -u -rcd3af1ebb7396ba3b2bec1d779510d29c30014f4 -r090cfb22a7c0b4738299c3fb411ca77aaba8d968 --- firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision cd3af1ebb7396ba3b2bec1d779510d29c30014f4) +++ firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 090cfb22a7c0b4738299c3fb411ca77aaba8d968) @@ -20,7 +20,7 @@ #include "DDCommon.h" #include "DDDefs.h" - +#include "TDDefs.h" /** * @defgroup DGOperationModes DGOperationModes * @brief Operation Modes module. Manages the top level operation modes of the DG via a state machine. @@ -40,6 +40,12 @@ U32 currentSubMode; ///< Current Submode. } OP_MODES_DATA_T; +/// TD mode and TD submode +typedef struct +{ + TD_OP_MODE_T tdMode; ///< TD mode + U32 tdSubMode; ///< TD submode +} TD_MODE_SUB_MODE_T; // ********** public function prototypes ********** void initOperationModes( void ); // initialize this module @@ -50,6 +56,9 @@ U32 getCurrentOperationSubMode( void ); // get current operation sub mode void setCurrentSubState( U32 subState ); // Set the current substate. +void setTDOperationMode( U32 mode, U32 subMode ); // set TD operation mode which is received from TD +void getTDOperationMode( TD_MODE_SUB_MODE_T* mode ); // get TD operation mode + BOOL testSetOperationMode( DD_OP_MODE_T newMode ); // Force transition to a given mode (if allowed) BOOL testSetDGOpModePublishIntervalOverride( U32 value ); BOOL testResetDGOpModePublishIntervalOverride( void );