xshige & Radio Junk Box's OSCReceiver modded version(#define INPUT_PORT >> extern) http://mbed.org/users/radiojunkbox/code/KAMUI_OSC-CV_Example/ http://mbed.org/users/xshige/programs/OSCReceiver/

Dependents:   OSCtoCVConverter

Committer:
casiotone401
Date:
Fri Dec 21 13:14:14 2012 +0000
Revision:
0:4ce7c0ce6a66
Child:
1:3d6dc580b565
change #define INPUT_PORT >> extern

Who changed what in which revision?

UserRevisionLine numberNew contents of line
casiotone401 0:4ce7c0ce6a66 1 //-------------------------------------------------------------
casiotone401 0:4ce7c0ce6a66 2 // KAMUI OSC-CV Example
casiotone401 0:4ce7c0ce6a66 3 // file : OSCReceiver.h
casiotone401 0:4ce7c0ce6a66 4 // referred to xshige's OSCReceiver
casiotone401 0:4ce7c0ce6a66 5 // http://mbed.org/users/xshige/programs/OSCReceiver/
casiotone401 0:4ce7c0ce6a66 6 // Copyright (C) 2012 RJB RadioJunkBox
casiotone401 0:4ce7c0ce6a66 7 // Released under the MIT License: http://mbed.org/license/mit
casiotone401 0:4ce7c0ce6a66 8 //-------------------------------------------------------------
casiotone401 0:4ce7c0ce6a66 9
casiotone401 0:4ce7c0ce6a66 10 #ifndef MBED_OSCRECEIVER_H
casiotone401 0:4ce7c0ce6a66 11 #define MBED_OSCRECEIVER_H
casiotone401 0:4ce7c0ce6a66 12
casiotone401 0:4ce7c0ce6a66 13 union OSCarg {
casiotone401 0:4ce7c0ce6a66 14 // char*, int and float are assumed four bytes
casiotone401 0:4ce7c0ce6a66 15 char *address;
casiotone401 0:4ce7c0ce6a66 16 char *typeTag;
casiotone401 0:4ce7c0ce6a66 17 int i;
casiotone401 0:4ce7c0ce6a66 18 float f;
casiotone401 0:4ce7c0ce6a66 19 char *s;
casiotone401 0:4ce7c0ce6a66 20 struct {
casiotone401 0:4ce7c0ce6a66 21 int len; // is "int i"
casiotone401 0:4ce7c0ce6a66 22 char *p;
casiotone401 0:4ce7c0ce6a66 23 } blob;
casiotone401 0:4ce7c0ce6a66 24 char m[4]; // for MIDI
casiotone401 0:4ce7c0ce6a66 25 char _b[4]; // endian conversion temp variable
casiotone401 0:4ce7c0ce6a66 26 };
casiotone401 0:4ce7c0ce6a66 27
casiotone401 0:4ce7c0ce6a66 28 void getOSCmsg(char *packet , union OSCarg *msg);
casiotone401 0:4ce7c0ce6a66 29
casiotone401 0:4ce7c0ce6a66 30 #endif