Index: firmware/App/Modes/OperationModes.h =================================================================== diff -u -r395522dffef1348e176564925656012f529c1910 -r1275f9e92eb1ab0cd1b321c0c8eb940524e22117 --- firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 395522dffef1348e176564925656012f529c1910) +++ firmware/App/Modes/OperationModes.h (.../OperationModes.h) (revision 1275f9e92eb1ab0cd1b321c0c8eb940524e22117) @@ -40,6 +40,18 @@ U32 subMode; ///< Current sub-mode of current operating mode } OP_MODE_PAYLOAD_T; +/// Payload structure for generic confirmation request +typedef struct +{ + U32 requestID; ///< Generic request ID. + U32 requestType; ///< Generic request type. + U32 rejectReason; ///< Reject reason. + F32 genericPayload1; ///< Generic payload 1. + F32 genericPayload2; ///< Generic payload 2. + F32 genericPayload3; ///< Generic payload 3. + F32 genericPayload4; ///< Generic payload 4. +} GENERIC_CONFIRMATION_REQUEST_T; + // ********** public function prototypes ********** void initOperationModes( void ); // Initialize this unit @@ -61,6 +73,9 @@ void sendOperationStatusEvent( void ); // Constructs and sends operation status event +void handleConfirmationDialogTimeout( void ); // Handle timeout for confirmation dialog +GENERIC_CONFIRM_ID_T getPendingConfirmationID( void ); // Get the pending confirmation id + BOOL testSetOperationMode( MESSAGE_T *message ); // Force transition to a given mode (if allowed) BOOL testSetOpModePublishIntervalOverride( MESSAGE_T *message ); // Override op mode data publish interval