Radio Junk Box / Mbed 2 deprecated KAMUI_OSC-CV_Example

Dependencies:   NetServices TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OSCReceiver.h Source File

OSCReceiver.h

00001 //-------------------------------------------------------------
00002 // KAMUI OSC-CV Example
00003 // file : OSCReceiver.h
00004 //   referred to xshige's OSCReceiver
00005 //   http://mbed.org/users/xshige/programs/OSCReceiver/
00006 // Copyright (C) 2012 RJB RadioJunkBox
00007 // Released under the MIT License: http://mbed.org/license/mit
00008 //-------------------------------------------------------------
00009 
00010 #ifndef MBED_OSCRECEIVER_H
00011 #define MBED_OSCRECEIVER_H
00012 
00013 union OSCarg {
00014 // char*, int and float are assumed four bytes
00015         char *address;
00016         char *typeTag;
00017         int i;
00018         float f;
00019         char *s;
00020         struct {
00021             int len; // is "int i"
00022             char *p;
00023         } blob;
00024         char m[4];  // for MIDI
00025         char _b[4]; // endian conversion temp variable
00026 };
00027 
00028 void getOSCmsg(char *packet , union OSCarg *msg);
00029 
00030 #endif