Kobayashi Akihiro / ActiveCaster

Dependents:   ActiveCaster_ ActiveCaster_2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers phaseCounterPeach.h Source File

phaseCounterPeach.h

00001 #ifndef PHASECOUNTER_h
00002 #define PHASECOUNTER_h
00003 
00004 //#include"gr_common/rx63n/iodefine_gcc63n.h"
00005 #include "RZ_A1H.h"
00006 
00007 #define ENC_INIT_VAL 0x7FFF
00008 
00009 class PhaseCounter
00010 {
00011 public:
00012     PhaseCounter(int);
00013     int getCount();
00014     void setCount(int ch, int num);
00015     void init();
00016 
00017 private:
00018     bool ch_available;
00019     
00020     unsigned short int pre_rawcount;
00021     int encount;
00022     
00023     int g_ch;
00024 };
00025 
00026 #endif
00027