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:
Thu Feb 25 11:21:14 2016 +0000
Revision:
3:ff3e4aee583e
Parent:
2:6dab18e1eb37
minor change

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 2:6dab18e1eb37 9
casiotone401 2:6dab18e1eb37 10 #pragma O3
casiotone401 2:6dab18e1eb37 11 #pragma Otime
casiotone401 0:4ce7c0ce6a66 12
casiotone401 0:4ce7c0ce6a66 13 #ifndef MBED_OSCRECEIVER_H
casiotone401 0:4ce7c0ce6a66 14 #define MBED_OSCRECEIVER_H
casiotone401 0:4ce7c0ce6a66 15
casiotone401 0:4ce7c0ce6a66 16 union OSCarg {
casiotone401 0:4ce7c0ce6a66 17 // char*, int and float are assumed four bytes
casiotone401 2:6dab18e1eb37 18 const char *address;
casiotone401 2:6dab18e1eb37 19 const char *typeTag;
casiotone401 0:4ce7c0ce6a66 20 int i;
casiotone401 0:4ce7c0ce6a66 21 float f;
casiotone401 0:4ce7c0ce6a66 22 char *s;
casiotone401 0:4ce7c0ce6a66 23 struct {
casiotone401 0:4ce7c0ce6a66 24 int len; // is "int i"
casiotone401 0:4ce7c0ce6a66 25 char *p;
casiotone401 0:4ce7c0ce6a66 26 } blob;
casiotone401 0:4ce7c0ce6a66 27 char m[4]; // for MIDI
casiotone401 0:4ce7c0ce6a66 28 char _b[4]; // endian conversion temp variable
casiotone401 0:4ce7c0ce6a66 29 };
casiotone401 0:4ce7c0ce6a66 30
casiotone401 2:6dab18e1eb37 31 int getOSCmsg(const char *packet , union OSCarg *msg);
casiotone401 0:4ce7c0ce6a66 32
casiotone401 0:4ce7c0ce6a66 33 #endif