/** * Wrapper API for RS485 communication * * @author sjlee@suprema.co.kr * @see */ /* * Copyright (c) 2006 Suprema Co., Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Suprema Co., Ltd. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Suprema. */ #ifndef __BS_SERIAL_485_H__ #define __BS_SERIAL_485_H__ #define WIN32_LEAN_AND_MEAN #include #ifdef __cplusplus extern "C" { #endif int BS_ReadSerial485( int handle, unsigned char* buf, int size, int timeout ); int BS_WriteSerial485( int handle, unsigned char* buf, int size, int timeout ); int BS_CalculateSerialTimeout485( int handle, int dataSize ); int BS_ClearSerialReadBuffer485( int handle ); int BS_ClearSerialWriteBuffer485( int handle ); #ifdef __cplusplus } #endif #endif