/****************************************************
 *  Motor.h                                         
 *  Created on: 2012/04/17 11:46:03                      
 *  Implementation of the Class Motor       
 *  Original author: hiroyuki.watanabe                     
 ****************************************************/

#if !defined(EA_817AF72A_5646_4224_B4AB_E3FC153D878A__INCLUDED_)
#define EA_817AF72A_5646_4224_B4AB_E3FC153D878A__INCLUDED_


#include "kernel.h"
#include "kernel_id.h"

#include "OutputPort.h"


// 属性を保持するための構造体の定義
typedef struct Motor
{
	OUTPUT_PORT outputPort;
} Motor;

void Motor_init(Motor* this, OUTPUT_PORT a_outputPort);
long Motor_getAngle(Motor* this);
void Motor_rotate(Motor* this, char pwm);

#endif /*!defined(EA_817AF72A_5646_4224_B4AB_E3FC153D878A__INCLUDED_)*/

