예제 #1
0
파일: protocol.c 프로젝트: clausdenk/ioio
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);
}
예제 #2
0
파일: protocol.c 프로젝트: hagleitn/ioio
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);
}
예제 #3
0
파일: boot_protocol.c 프로젝트: 21rcc/ioio
void BootProtocolSendMessage(const OUTGOING_MESSAGE* msg) {
  ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg));
}
예제 #4
0
파일: protocol.c 프로젝트: hagleitn/ioio
void AppProtocolSendMessage(const OUTGOING_MESSAGE* msg) {
  BYTE prev = SyncInterruptLevel(1);
  ByteQueuePushBuffer(&tx_queue, (const BYTE*) msg, OutgoingMessageLength(msg));
  SyncInterruptLevel(prev);
}