/****************************************************
 *  GyroSensor.h                                         
 *  Created on: 2012/04/17 11:45:47                      
 *  Implementation of the Class GyroSensor       
 *  Original author: hiroyuki.watanabe                     
 ****************************************************/

#if !defined(EA_366D60BD_24A8_44aa_BC4F_2C8C659AFC00__INCLUDED_)
#define EA_366D60BD_24A8_44aa_BC4F_2C8C659AFC00__INCLUDED_


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

#include "InputPort.h"


// 属性を保持するための構造体の定義
typedef struct GyroSensor
{
	unsigned int offset;
	INPUT_PORT inputPort;
} GyroSensor;

void GyroSensor_init(GyroSensor* this, INPUT_PORT a_inputPort);
unsigned int GyroSensor_getAngularVelocity(GyroSensor* this);
unsigned int GyroSensor_getOffset(GyroSensor* this);

#endif /*!defined(EA_366D60BD_24A8_44aa_BC4F_2C8C659AFC00__INCLUDED_)*/

