KAMUI OSC-CV Example refer to OSCReceiver by xshige http://mbed.org/users/xshige/programs/OSCReceiver/

Dependencies:   NetServices TextLCD mbed

Committer:
radiojunkbox
Date:
Sun May 06 07:17:59 2012 +0000
Revision:
0:eabe87e89290
Rev. 1.0

Who changed what in which revision?

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