void AppProtocolSendMessageWithVarArg(const OUTGOING_MESSAGE* msg, const void* data, int size) { if (state != STATE_OPEN) return; BYTE prev = SyncInterruptLevel(1); ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg)); ByteQueuePushBuffer(&tx_queue, data, size); SyncInterruptLevel(prev); }
void AppProtocolSendMessageWithVarArgSplit(const OUTGOING_MESSAGE* msg, const void* data1, int size1, const void* data2, int size2) { BYTE prev = SyncInterruptLevel(1); ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg)); ByteQueuePushBuffer(&tx_queue, data1, size1); ByteQueuePushBuffer(&tx_queue, data2, size2); SyncInterruptLevel(prev); }
void BootProtocolSendMessage(const OUTGOING_MESSAGE* msg) { ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg)); }
void AppProtocolSendMessage(const OUTGOING_MESSAGE* msg) { BYTE prev = SyncInterruptLevel(1); ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg)); SyncInterruptLevel(prev); }