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

#if !defined(EA_B616C562_2E4B_4eff_9E01_DC0A1F1103C0__INCLUDED_)
#define EA_B616C562_2E4B_4eff_9E01_DC0A1F1103C0__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_B616C562_2E4B_4eff_9E01_DC0A1F1103C0__INCLUDED_)*/

