serial_device.h

00001 #ifndef SERIAL_DEVICE_C_H
00002 #define SERIAL_DEVICE_C_H
00003 
00004 /*
00005   シリアル制御
00006   Satofumi KAMIMURA
00007   $Id$
00008 */
00009 
00010 #include "cpp_extern_macro.h"
00011 BEGIN_C_DECLS;
00012 
00013 extern int serial_open(const char *devName, long baudrate);
00014 extern void serial_close(int id);
00015 extern int serial_is_connected(int id);
00016 extern int serial_recv(int id, char *data, int size, int timeout);
00017 extern int serial_send(int id, const char *data, int length);
00018 extern void serial_flush(int id);
00019 extern int serial_set_baudrate(int id, long baudrate);
00020 
00021 END_C_DECLS;
00022 #endif /* !SERIAL_DEVICE_C_H */
00023 

Generated on Mon Apr 13 22:52:05 2009 by  doxygen 1.5.7.1