OSC meeseage receiver for Sparkfun CC3000 WiFi Shield. Supports the following boards: FRDM-KL25Z,ST Nucleo F401RE,ST Nucleo F030R8,LPCXpresso1549,Seeduino-Arch-Pro.

Dependencies:   cc3000_hostdriver_mbedsocket mbed

Committer:
xshige
Date:
Sun Aug 31 04:28:50 2014 +0000
Revision:
0:1c9ac526d377
OSC receiver(Sparkfun CC3000 WiFi Sheild meets mbed!) Supports the following boards with CC3000 Shield.; FRDM-KL25Z,ST Nucleo F401RE,ST Nucleo F030R8,LPCXpresso1549,Seeduino-Arch-Pro

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xshige 0:1c9ac526d377 1 // OSC message Codec Header
xshige 0:1c9ac526d377 2 // 2013/10/28
xshige 0:1c9ac526d377 3 #ifndef _OSCMSGCODEC_H
xshige 0:1c9ac526d377 4 #define _OSCMSGCODEC_H
xshige 0:1c9ac526d377 5
xshige 0:1c9ac526d377 6 #include <string.h>
xshige 0:1c9ac526d377 7
xshige 0:1c9ac526d377 8 int encOSCmsg(char *packet , union OSCarg *msg);
xshige 0:1c9ac526d377 9 // makes packet from OSC message and returns packet size
xshige 0:1c9ac526d377 10
xshige 0:1c9ac526d377 11 void decOSCmsg(char *packet , union OSCarg *msg);
xshige 0:1c9ac526d377 12 // makes OSC message from packet
xshige 0:1c9ac526d377 13
xshige 0:1c9ac526d377 14 union OSCarg {
xshige 0:1c9ac526d377 15 // char*, int and float are assumed four bytes
xshige 0:1c9ac526d377 16 char *address;
xshige 0:1c9ac526d377 17 char *typeTag;
xshige 0:1c9ac526d377 18 long int i; // int32 for Arduino(16bits)
xshige 0:1c9ac526d377 19 float f;
xshige 0:1c9ac526d377 20 char *s;
xshige 0:1c9ac526d377 21 struct {
xshige 0:1c9ac526d377 22 long int len; // is "int i"
xshige 0:1c9ac526d377 23 char *p;
xshige 0:1c9ac526d377 24 }
xshige 0:1c9ac526d377 25 blob;
xshige 0:1c9ac526d377 26 char m[4]; // for MIDI
xshige 0:1c9ac526d377 27 char _b[4]; // endian conversion temp variable
xshige 0:1c9ac526d377 28 };
xshige 0:1c9ac526d377 29
xshige 0:1c9ac526d377 30 #endif // _OSCMSGCODEC_H