MakingThings
  • Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

stepper.h

00001 /*********************************************************************************
00002 
00003  Copyright 2006-2008 MakingThings
00004 
00005  Licensed under the Apache License, 
00006  Version 2.0 (the "License"); you may not use this file except in compliance 
00007  with the License. You may obtain a copy of the License at
00008 
00009  http://www.apache.org/licenses/LICENSE-2.0 
00010  
00011  Unless required by applicable law or agreed to in writing, software distributed
00012  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
00013  CONDITIONS OF ANY KIND, either express or implied. See the License for
00014  the specific language governing permissions and limitations under the License.
00015 
00016 *********************************************************************************/
00017 
00018 /*
00019   stepper.h
00020 
00021   MakingThings
00022 */
00023 
00024 #ifndef STEPPER_H
00025 #define STEPPER_H
00026 
00027 
00028 int Stepper_SetActive( int index, int state );
00029 int Stepper_GetActive( int index );
00030 
00031 int  Stepper_SetPosition( int index, int position );
00032 int  Stepper_GetPosition( int index );
00033 int  Stepper_SetPositionRequested( int index, int positionRequested );
00034 int  Stepper_GetPositionRequested( int index );
00035 int  Stepper_SetDuty( int index, int duty );
00036 int  Stepper_GetDuty( int index );
00037 int  Stepper_SetBipolar( int index, int bipolar );
00038 int  Stepper_GetBipolar( int index );
00039 int  Stepper_SetHalfStep( int index, int bipolar );
00040 int  Stepper_GetHalfStep( int index );
00041 int  Stepper_SetSpeed( int index, int speed );
00042 int  Stepper_GetSpeed( int index );
00043 void Stepper_SetAcceleration( int index, int acceleration );
00044 int  Stepper_GetAcceleration( int index );
00045 int Stepper_Step( int index, int steps );
00046 
00047 /* OSC Interface */
00048 const char* StepperOsc_GetName( void );
00049 int StepperOsc_ReceiveMessage( int channel, char* message, int length );
00050 
00051 
00052 #endif

The Make Controller Kit is an open source project maintained by MakingThings.
MakingThings code is released under the Apache 2.0 license.
Bug tracker, development wiki and status can be found at http://dev.makingthings.com.
This document was last updated on 18 May 2009.