cpuクラス



フィールド

static const unsigned int porta ポートA
static const unsigned int portb ポートB
static const unsigned int portc ポートC
static const unsigned int portd ポートD
static const unsigned int porte ポートE
static const unsigned int portf ポートF
static const unsigned int portg ポートG
static const unsigned int porth ポートH
static const unsigned int portj ポートJ
static const unsigned int portk ポートK
static const int SHIFT_MSB
static const int SHIFT_LSB
static const int PRE_CLOCK_MSB
static const int POST_CLOCK_MSB
static const int PRE_CLOCK_LSB
static const int POST_CLOCK_LSB
static bool TicInstalled 初期化されるとtrueになる


コンストラクタ

cpu() 初期化を行う


メソッド

static void writePin(unsigned int port, int bit, bool value)
static void writePort(unsigned int port, int value)
static void setOutput(int port, int bit)
static void setOutput(int port)
static void setInput(int port, int bit)
static void setInput(int port)
static int readPin(unsigned int port, int bit)
static int readPort(unsigned int port)
static void delay(unsigned wait)
static int rcTime(int timeout, int port, int bit, bool state)
static int pulseIn(unsigned timeout, unsigned port, int bit, bool pinState)
static void shiftOut(unsigned dataPort, int dPin, unsigned clockPort, int cPin, int bitCount, int mode, unsigned short data)
static int shiftIn(unsigned dataPort, int dPin, unsigned clockPort, int cPin, int bitCount, int mode)


親クラス

なし