OutBuffer.h
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Real2Virtual202111]]
#code(c){{
//#ifndef OUTBUFFER_H
//#define OUTBUFFER_H
#pragma once
#include "common.h"
class OutBuffer{
private:
unsigned char channelID; /* output channel ID */
unsigned char output; /* output char */
unsigned char pb; /* current output bits positio...
unsigned char bits[BitsParChar]; /* output code (char...
// unsigned char sampleInterval; /* sampling interval ...
unsigned char sampleIntervalCounter;
unsigned char status;
unsigned char stringOutputStatus;
unsigned char ledNo; /* led No for the output */
int strp; /* current output char position*/
int strl; /* length of the output string */
int sendingLength;
int sentLength;
int ackFlag;
unsigned char str[MaxInterFaceStrLen]; /* output str...
unsigned char allOrOne; /* LEDs emmision mode */
public:
OutBuffer(unsigned char id);
void clear(void);
unsigned char (*getPort[DirMax])(void); /* get port st...
unsigned char getStatus(void);
unsigned char getStringOutputStatus(void);
unsigned char isOutPutting(void);
unsigned char putChar(unsigned char c);
void putChar1(unsigned char c);
int putString(char *s);
void putStringStart( char *s);
int putStringEnd( char *s);
void putStringWaitPreviousOutput(void);
void putStringX(char *s);
void (*setPort[DirMax])(unsigned char s); /* port on f...
void (*setPortMode[DirMax])(unsigned char s);
void (*setPortX)( unsigned char s); /* port on functio...
void (*setPortXMode)(unsigned char s); /* port off fun...
void setPortConf(unsigned char ledn, void (* portf)(un...
void setPortXConf(void (* portf)(unsigned char x), voi...
void intrProcess(void); /* interrupt process */
void setLedNumber( unsigned char n);
void setLedOn( unsigned char n);
void setLedOff( unsigned char n);
void setLedNo(unsigned char ledNo);
void setPortXOn(void);
void setPortXOff(void);
void setStatus( unsigned char s);
void setAllOrOne( unsigned char allOrOne);
void setStringOutputStatus(unsigned char c);
void waitUntilOutputDone(void);
int waitForAck(void);
};
//#endif
}}
----
#counter
終了行:
[[Real2Virtual202111]]
#code(c){{
//#ifndef OUTBUFFER_H
//#define OUTBUFFER_H
#pragma once
#include "common.h"
class OutBuffer{
private:
unsigned char channelID; /* output channel ID */
unsigned char output; /* output char */
unsigned char pb; /* current output bits positio...
unsigned char bits[BitsParChar]; /* output code (char...
// unsigned char sampleInterval; /* sampling interval ...
unsigned char sampleIntervalCounter;
unsigned char status;
unsigned char stringOutputStatus;
unsigned char ledNo; /* led No for the output */
int strp; /* current output char position*/
int strl; /* length of the output string */
int sendingLength;
int sentLength;
int ackFlag;
unsigned char str[MaxInterFaceStrLen]; /* output str...
unsigned char allOrOne; /* LEDs emmision mode */
public:
OutBuffer(unsigned char id);
void clear(void);
unsigned char (*getPort[DirMax])(void); /* get port st...
unsigned char getStatus(void);
unsigned char getStringOutputStatus(void);
unsigned char isOutPutting(void);
unsigned char putChar(unsigned char c);
void putChar1(unsigned char c);
int putString(char *s);
void putStringStart( char *s);
int putStringEnd( char *s);
void putStringWaitPreviousOutput(void);
void putStringX(char *s);
void (*setPort[DirMax])(unsigned char s); /* port on f...
void (*setPortMode[DirMax])(unsigned char s);
void (*setPortX)( unsigned char s); /* port on functio...
void (*setPortXMode)(unsigned char s); /* port off fun...
void setPortConf(unsigned char ledn, void (* portf)(un...
void setPortXConf(void (* portf)(unsigned char x), voi...
void intrProcess(void); /* interrupt process */
void setLedNumber( unsigned char n);
void setLedOn( unsigned char n);
void setLedOff( unsigned char n);
void setLedNo(unsigned char ledNo);
void setPortXOn(void);
void setPortXOff(void);
void setStatus( unsigned char s);
void setAllOrOne( unsigned char allOrOne);
void setStringOutputStatus(unsigned char c);
void waitUntilOutputDone(void);
int waitForAck(void);
};
//#endif
}}
----
#counter
ページ名: