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

#if !defined(EA_549C1FEA_42C0_4092_832E_CDA615BA7AF5__INCLUDED_)
#define EA_549C1FEA_42C0_4092_832E_CDA615BA7AF5__INCLUDED_


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

#include "OutputPort.h"


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

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

#endif /*!defined(EA_549C1FEA_42C0_4092_832E_CDA615BA7AF5__INCLUDED_)*/

