InBuffer.h
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Real2Virtual202111]]
#code(c){{
//#ifndef INBUFFER_H
//#define INBUFFER_H
#pragma once
#include "common.h"
/*
class CommandBuffer{
public:
ackReturned(unsigned char faceID);
putQueue(unsigned char faceID, char *x, int len);
putChar(unsigned char faceID, char x);
}
*/
#include "CommandBuffer.h"
class CommandBuffer;
class InBuffer{
private:
unsigned char faceID; /* input channel ID */
unsigned char (*getPort)(void); /* get port value (pho...
void (*setPortMode)(unsigned char s); /* set portmode ...
unsigned char now; /* current input */
unsigned char last; /* last input */
unsigned char p; /* current input bits...
// volatile unsigned char bits[MaxBits/8+1]; /...
unsigned char bits[MaxBits]; /* sampled binar...
unsigned char status; /* 0:waiting for the ...
unsigned char sampleInterval; /* sampling in...
unsigned char sampleIntervalCounter; /* counter for th...
unsigned char sampleIntForDecode; /* sampling inter...
unsigned char cin;
int inlen;
char inputBuffer[MaxInterFaceStrLen]; /* serial input ...
unsigned char nextDoorDirection;
unsigned char correspondingLEDNo;
unsigned char nextDoorFaceID;
unsigned char connected;
CommandBuffer *command;
unsigned char cbp; /* command buffer pointer */
public:
InBuffer(unsigned char id, CommandBuffer *com);
void setPortConf( unsigned char (*getfun)(void), void ...
void intrProcess(void); /* interrupt process */
void setStatus( unsigned char x); /* */
unsigned char getStatus(void);
unsigned char decode(void); /* decode the bits i...
unsigned char getChar(void); /* get the char , if...
unsigned char getConnected(void);
int getNextDoorDirection(void);
void parse(unsigned char c); /* serial input parser (L...
unsigned char startWith(char *c);
void shiftLeft( unsigned char i);
void returnAck(void);
void setCommand(CommandBuffer *x);
void setConnected(unsigned char x);
};
//#endif
}}
----
#counter
終了行:
[[Real2Virtual202111]]
#code(c){{
//#ifndef INBUFFER_H
//#define INBUFFER_H
#pragma once
#include "common.h"
/*
class CommandBuffer{
public:
ackReturned(unsigned char faceID);
putQueue(unsigned char faceID, char *x, int len);
putChar(unsigned char faceID, char x);
}
*/
#include "CommandBuffer.h"
class CommandBuffer;
class InBuffer{
private:
unsigned char faceID; /* input channel ID */
unsigned char (*getPort)(void); /* get port value (pho...
void (*setPortMode)(unsigned char s); /* set portmode ...
unsigned char now; /* current input */
unsigned char last; /* last input */
unsigned char p; /* current input bits...
// volatile unsigned char bits[MaxBits/8+1]; /...
unsigned char bits[MaxBits]; /* sampled binar...
unsigned char status; /* 0:waiting for the ...
unsigned char sampleInterval; /* sampling in...
unsigned char sampleIntervalCounter; /* counter for th...
unsigned char sampleIntForDecode; /* sampling inter...
unsigned char cin;
int inlen;
char inputBuffer[MaxInterFaceStrLen]; /* serial input ...
unsigned char nextDoorDirection;
unsigned char correspondingLEDNo;
unsigned char nextDoorFaceID;
unsigned char connected;
CommandBuffer *command;
unsigned char cbp; /* command buffer pointer */
public:
InBuffer(unsigned char id, CommandBuffer *com);
void setPortConf( unsigned char (*getfun)(void), void ...
void intrProcess(void); /* interrupt process */
void setStatus( unsigned char x); /* */
unsigned char getStatus(void);
unsigned char decode(void); /* decode the bits i...
unsigned char getChar(void); /* get the char , if...
unsigned char getConnected(void);
int getNextDoorDirection(void);
void parse(unsigned char c); /* serial input parser (L...
unsigned char startWith(char *c);
void shiftLeft( unsigned char i);
void returnAck(void);
void setCommand(CommandBuffer *x);
void setConnected(unsigned char x);
};
//#endif
}}
----
#counter
ページ名: