scc.h

来自「最基本介绍C的很不错的程序代码」· C头文件 代码 · 共 42 行

H
42
字号
/********************************************************************** * * Filename:    scc.h *  * Description: Constants and macros for the Zilog 85230 SCC. * * Notes:        * *  * Copyright (c) 1998 by Michael Barr.  This software is placed into * the public domain and may be used for any purpose.  However, this * notice must not be changed or removed and no warranty is either * expressed or implied by its publication or distribution. **********************************************************************/#ifndef _SCC_H#define _SCC_H#include "circbuf.h"class SCC{    public:                SCC();        void  reset(int channel);        void  init(int channel, unsigned long baudRate,                   CircBuf * pTxQueue, CircBuf * pRxQueue);        void  txStart(int channel);        void  rxStart(int channel);    private:            static void interrupt  Interrupt(void);};#endif /* _SCC_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?