Index: firmware/App/Controllers/Valves.h =================================================================== diff -u -ra6fec5578295ef0bb7223376facb7d0cbd2c1209 -r9d40104500ae1c144a19b36b83a0515d32fb7fc9 --- firmware/App/Controllers/Valves.h (.../Valves.h) (revision a6fec5578295ef0bb7223376facb7d0cbd2c1209) +++ firmware/App/Controllers/Valves.h (.../Valves.h) (revision 9d40104500ae1c144a19b36b83a0515d32fb7fc9) @@ -36,6 +36,23 @@ NUM_OF_VALVES ///< Number of valves } VALVE_T; +#pragma pack(push, 1) +/// HD valves broadcast data +typedef struct +{ + U32 valveID; ///< Valve ID + U32 state; ///< Current state of the state machine + U32 currentPosID; ///< Current position in enum + S16 currentPos; ///< Current position in counts + S16 nextPos; ///< Next position in counts + F32 current; ///< Current of the valves + S16 prevPos; ///< Previous position in counts + +} HD_VALVE_DATA_T; +#pragma pack(pop) + +HD_VALVE_DATA_T valveData; ///< Valves data struct + // ********** public function prototypes ********* void initValves( void ); @@ -56,6 +73,10 @@ BOOL testResetValvesDataPublishInterval( void ); +BOOL testSetValvesPositionOverride( U32 valve, U32 position ); + +BOOL testResetValvesPositionOverride( U32 valve ); + /**@}*/ #endif