Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed_io_osc.h
00001 /* 00002 * Pehr Hovey 00003 * 00004 * mBed OSC - IoOsc subsystem 00005 * Get/set digital output pins 00006 * Based on code from Make Controller 00007 */ 00008 /********************************************************************************* 00009 00010 Copyright 2006-2009 MakingThings 00011 00012 Licensed under the Apache License, 00013 Version 2.0 (the "License"); you may not use this file except in compliance 00014 with the License. You may obtain a copy of the License at 00015 00016 http://www.apache.org/licenses/LICENSE-2.0 00017 00018 Unless required by applicable law or agreed to in writing, software distributed 00019 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 00020 CONDITIONS OF ANY KIND, either express or implied. See the License for 00021 the specific language governing permissions and limitations under the License. 00022 00023 *********************************************************************************/ 00024 #ifndef MBED_IO_OSC_ 00025 #define MBED_IO_OSC_ 00026 //OSC Subsystems 00027 00028 #define IO_CHANNELS 14 //start with 8 00029 // Regular digital I/O 00030 int IoOsc_ReceiveMessage( int channel, char* message, int length ); 00031 const char* IoOsc_GetName( void ); 00032 int IoOsc_PropertySet( int index, int property, int value ); 00033 int IoOsc_ReceiveMessage( int channel, char* message, int length ); 00034 int IoOsc_PropertyGet( int property, int channel ); 00035 bool IoOsc_validIndex(int index); 00036 00037 00038 //Get/set digital IO 00039 int Io_SetValue(int index, int value); 00040 int Io_GetValue(int index); 00041 void Io_SetMode(int index, int mode); //in or out 00042 00043 //four onboard LEDs - on or off 00044 00045 #define LED_CHANNELS 4 00046 //Get/set LEDs 00047 int Led_SetValue(int index, int value); 00048 int Led_GetValue(int index); 00049 00050 int LedOsc_ReceiveMessage( int channel, char* message, int length ); 00051 const char* LedOsc_GetName( void ); 00052 int LedOsc_PropertySet( int index, int property, int value ); 00053 int LedOsc_ReceiveMessage( int channel, char* message, int length ); 00054 int LedOsc_PropertyGet( int property, int channel ); 00055 #endif
Generated on Wed Jul 13 2022 01:51:44 by
1.7.2