Kobayashi Akihiro / ActiveCaster

Dependents:   ActiveCaster_ ActiveCaster_2

phaseCounterPeach.h

Committer:
e5119053f6
Date:
2022-01-24
Revision:
0:5e4f1e288e2a

File content as of revision 0:5e4f1e288e2a:

#ifndef PHASECOUNTER_h
#define PHASECOUNTER_h

//#include"gr_common/rx63n/iodefine_gcc63n.h"
#include "RZ_A1H.h"

#define ENC_INIT_VAL 0x7FFF

class PhaseCounter
{
public:
    PhaseCounter(int);
    int getCount();
    void setCount(int ch, int num);
    void init();

private:
    bool ch_available;
    
    unsigned short int pre_rawcount;
    int encount;
    
    int g_ch;
};

#endif