/************************************************************************** * * Copyright (c) 2024-2024 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 MessagePayloads.h * * @author (last) Sean * @date (last) 07-Nov-2024 * * @author (original) Sean * @date (original) 07-Nov-2024 * ***************************************************************************/ #ifndef __MESSAGE_PAYLOADS_H__ #define __MESSAGE_PAYLOADS_H__ #ifdef _TD_ #include "TDCommon.h" #endif #ifdef _DD_ #include "DDCommon.h" #endif #ifdef _RO_ #include "ROCommon.h" #endif /** * @addtogroup Messaging * @{ */ // ********** public definitions ********** #pragma pack(push, 1) /// Payload record structure for requesting dialysate delivery. typedef struct { BOOL start; ///< Flag indicating whether to start/continue dialysate delivery (TRUE) or stop (FALSE). F32 dialRate; ///< Set dialysate rate (mL/min). F32 ufRate; ///< Set ultrafiltration rate (mL/min). F32 dialTemp; ///< Set dialysate temperature (deg C). BOOL bypassDialyzer; ///< Flag indicating whether bypass of dialyzer is requested. U32 acidType; ///< Type of acid being used to make dialysate. U32 bicarbType; ///< Type of bicarb being used to make dialysate. } DIALYSATE_DELIVERY_REQ_PAYLOAD_T; /// Payload record structure for requesting RO water. typedef struct { BOOL start; ///< Flag indicating whether to start/continue RO water delivery (TRUE) or stop (FALSE). F32 roRate; ///< Set RO water rate (mL/min). } RO_WATER_REQ_PAYLOAD_T; #pragma pack(pop) /**@}*/ #endif