Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rf068446fdb7889d320ddb6ffbd58f347ce0501e7 -r36a2fa774e2f5721c30261a40360d706bb4ea4bb --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision f068446fdb7889d320ddb6ffbd58f347ce0501e7) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 36a2fa774e2f5721c30261a40360d706bb4ea4bb) @@ -35,11 +35,6 @@ typedef struct { - U08 confirmed; // 1 = confirmed, 0 = rejected/timed out -} OFF_BUTTON_MESSAGE_FROM_UI_PAYLOAD_T; - -typedef struct -{ U32 alarmState; // 0 = no alarms, 1 = low priority, 2 = medium priority, 3 = high priority U32 alarmTop; // ID of top active alarm U32 escalatesIn; // seconds @@ -49,26 +44,6 @@ typedef struct { - U32 setPoint; - F32 measFlow; - F32 measRotorSpd; - F32 measPumpSpd; - F32 measMCSpd; - F32 measMCCurr; - F32 pwmDC; -} PERISTALTIC_PUMP_STATUS_PAYLOAD_T; - -typedef struct -{ - F32 arterialPressure; - F32 venousPressure; - F32 bldPumpOcclusion; - F32 diPumpOcclusion; - F32 doPumpOcclusion; -} PRESSURE_OCCLUSION_DATA_T; - -typedef struct -{ U32 treatmentTimePrescribedinSec; U32 treatmentTimeElapsedinSec; U32 treatmentTimeRemaininginSec; @@ -347,7 +322,28 @@ return result; } +#ifdef CAN_TEST +void broadcastCANTest1LargeFrequentMessage() +{ + MESSAGE_T msg; + U32 i; + // create a message record + blankMessage( &msg ); + msg.hdr.msgID = MSG_ID_DG_CAN_TEST_1_LARGE_FREQ; + msg.hdr.payloadLen = 96; + + for ( i = 0; i < 96; i++ ) + { + msg.payload[i] = i+1; + } + + // serialize the message (w/ sync, CRC, and appropriate CAN padding) and add serialized message data to appropriate comm buffer + serializeMessage( msg, COMM_BUFFER_OUT_CAN_DG_BROADCAST, ACK_NOT_REQUIRED ); +} +#endif + + /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/