Control of mbed using OSC. Based on code from the Make Controller. Right now you can turn the onboard LEDs on/off and toggle 8 digital out pins. More I/O will be done in the future.
mbed_system_osc.h@0:439354122597, 2010-03-17 (annotated)
- Committer:
- pehrhovey
- Date:
- Wed Mar 17 03:17:38 2010 +0000
- Revision:
- 0:439354122597
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pehrhovey | 0:439354122597 | 1 | /* |
pehrhovey | 0:439354122597 | 2 | * Pehr Hovey |
pehrhovey | 0:439354122597 | 3 | * |
pehrhovey | 0:439354122597 | 4 | * mBed OSC - SystemOsc subsystem |
pehrhovey | 0:439354122597 | 5 | * Get/set info about the system like ip address, hostname |
pehrhovey | 0:439354122597 | 6 | * Based on code from Make Controller |
pehrhovey | 0:439354122597 | 7 | */ |
pehrhovey | 0:439354122597 | 8 | /********************************************************************************* |
pehrhovey | 0:439354122597 | 9 | |
pehrhovey | 0:439354122597 | 10 | Copyright 2006-2009 MakingThings |
pehrhovey | 0:439354122597 | 11 | |
pehrhovey | 0:439354122597 | 12 | Licensed under the Apache License, |
pehrhovey | 0:439354122597 | 13 | Version 2.0 (the "License"); you may not use this file except in compliance |
pehrhovey | 0:439354122597 | 14 | with the License. You may obtain a copy of the License at |
pehrhovey | 0:439354122597 | 15 | |
pehrhovey | 0:439354122597 | 16 | http://www.apache.org/licenses/LICENSE-2.0 |
pehrhovey | 0:439354122597 | 17 | |
pehrhovey | 0:439354122597 | 18 | Unless required by applicable law or agreed to in writing, software distributed |
pehrhovey | 0:439354122597 | 19 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
pehrhovey | 0:439354122597 | 20 | CONDITIONS OF ANY KIND, either express or implied. See the License for |
pehrhovey | 0:439354122597 | 21 | the specific language governing permissions and limitations under the License. |
pehrhovey | 0:439354122597 | 22 | |
pehrhovey | 0:439354122597 | 23 | *********************************************************************************/ |
pehrhovey | 0:439354122597 | 24 | #ifndef MBED_SYS_OSC_ |
pehrhovey | 0:439354122597 | 25 | #define MBED_SYS_OSC_ |
pehrhovey | 0:439354122597 | 26 | //OSC Subsystems |
pehrhovey | 0:439354122597 | 27 | |
pehrhovey | 0:439354122597 | 28 | int SystemOsc_ReceiveMessage( int channel, char* message, int length ); |
pehrhovey | 0:439354122597 | 29 | const char* SystemOsc_GetName( void ); |
pehrhovey | 0:439354122597 | 30 | int SystemOsc_PropertySet( int property, char* typedata, int channel ); |
pehrhovey | 0:439354122597 | 31 | int SystemOsc_ReceiveMessage( int channel, char* message, int length ); |
pehrhovey | 0:439354122597 | 32 | int SystemOsc_PropertyGet( int property, int channel ); |
pehrhovey | 0:439354122597 | 33 | |
pehrhovey | 0:439354122597 | 34 | #endif |