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

#if !defined(EA_1CD14954_139E_46b0_9148_74D0532E2536__INCLUDED_)
#define EA_1CD14954_139E_46b0_9148_74D0532E2536__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_1CD14954_139E_46b0_9148_74D0532E2536__INCLUDED_)*/

