⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 secs1com.c

📁 SECS I, SECS II协议通讯源码
💻 C
字号:
/*
 * secs1com.c
 *
 * Stub for secs 1 byte communications, replace with routines to do
 * I/O over the serial port.  These are the functions which need to be
 * provided to SECS-I to get data communicated
 *
 * BORLAND C (16 bit) version
 *
 * Code by David Lindauer, CIMple technologies
 *
 */
#include "secs1.h"

/* Returns -1 if data not output */
/* this one is non-buffered, flush the output buffer if you are using
 * interrupts */
BOOL Secs1Charout(int data)
{
  return(data==-1);
}
/* this one is buffered */
BOOL Secs1BufferedCharout(int data)
{
  return(data==-1);
}
/* get a char from the input buffer */
int Secs1Charin(void)
{
  /* Returns -1 for no character */
    return(-1);
}
/* Clear all but last character in buffer, or last two if ACK, ENQ */
void Secs1Clearbuf(void)
{
}
/* Initialize routine
 * This routine will be called at power-up or whenever the baud rate changes
 */
void Secs1CharInit(void)
{
}

⌨️ 快捷键说明

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