#ifndef __RO_COMMON_H__ #define __RO_COMMON_H__ #include "hal_stdtypes.h" // ********** version ********** #define RO_VERSION_MAJOR 0 #define RO_VERSION_MINOR 0 #define RO_VERSION_MICRO 0 #define RO_VERSION_BUILD 3 // ********** development build switches ********** #ifndef _RELEASE_ #ifndef _VECTORCAST_ // #define TASK_TIMING_OUTPUT_ENABLED 1 // Re-purposes alarm lamp pins for task timing #include #include #endif #endif #include "Common.h" /** * @addtogroup Main * @{ */ // **** Common Definitions **** #pragma pack(push,1) /// Payload record structure for an RO versions message. typedef struct { U08 major; ///< RO version major revision. U08 minor; ///< RO version minor revision. U08 micro; ///< RO version micro revision. U16 build; ///< RO build version. U08 fpgaId; ///< RO FPGA ID. U08 fpgaMajor; ///< RO FPGA major revision. U08 fpgaMinor; ///< RO FPGA minor revision. U08 fpgaLab; ///< RO FPGA lab revision. U32 compatibilityRev; ///< RO compatibility revision. } RO_VERSIONS_T; /// Record defining the fields in a UI version request message. typedef struct { U08 major; ///< Major version for UI software. U08 minor; ///< Minor version for UI software. U08 micro; ///< Micro version for UI software. U16 build; ///< Build number for UI software. U32 compatibility; ///< Compatibility revision. } UI_VERSIONS_T; /// Payload record structure for a peristaltic pump data message. typedef struct { U32 setPoint; ///< Set point. F32 measFlow; ///< Measured flow in mL/min. F32 measRotorSpd; ///< Measured rotor speed in RPM. F32 measPumpSpd; ///< Measured pump speed in RPM. F32 measMCSpd; ///< Measured motor speed in RPM. F32 measMCCurr; ///< Measured motor current in Amps. F32 pwmDC; ///< Duty cycle. } PERISTALTIC_PUMP_STATUS_PAYLOAD_T; /// Payload record structure for a pump set point override message. typedef struct { BOOL reset; ///< Reset. S32 setPt; ///< Set point. U32 ctrlMode; ///< Control mode. } OVERRIDE_PUMP_SET_PT_PAYLOAD_T; #pragma pack(pop) // **** Common Macros **** /**@}*/ // **** VectorCAST Definitions **** #ifdef _VECTORCAST_ #endif #endif