/****************************************************
 *  Motor.h                                         
 *  Created on: 2012/04/17 3:02:15                      
 *  Implementation of the Class Motor       
 *  Original author: hiroyuki.watanabe                     
 ****************************************************/

#if !defined(EA_647283A7_1C1B_4c47_A250_AB7AA5E7B3AF__INCLUDED_)
#define EA_647283A7_1C1B_4c47_A250_AB7AA5E7B3AF__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_647283A7_1C1B_4c47_A250_AB7AA5E7B3AF__INCLUDED_)*/

