kopia lustrzana https://github.com/Hamlib/Hamlib
cleanup comments
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@121 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
0d67418271
commit
5c5764c92b
|
@ -5,7 +5,7 @@
|
|||
* Provides useful routines for read/write serial data for communicating
|
||||
* via serial interface .
|
||||
*
|
||||
* $Id: serial.h,v 1.8 2000-09-17 00:06:52 javabear Exp $
|
||||
* $Id: serial.h,v 1.9 2000-09-19 00:16:03 javabear Exp $
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -31,38 +31,17 @@
|
|||
|
||||
|
||||
int serial_open(struct rig_state *rs);
|
||||
|
||||
|
||||
int close_port(int fd);
|
||||
|
||||
|
||||
/*
|
||||
* Read "num" bytes from "fd" and put results into
|
||||
* an array of unsigned char pointed to by "rxbuffer"
|
||||
*
|
||||
* Sleeps every second until number of bytes to read
|
||||
* is the amount requested.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
int read_sleep(int fd, unsigned char *rxbuffer, int num );
|
||||
int read_block(int fd, unsigned char *rxbuffer, size_t count, int timeout);
|
||||
int write_block2(int fd, const unsigned char *txbuffer, size_t count, int write_delay);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* todo :Should move conversion stuff to another file -- FS
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Convert char to packed decimal
|
||||
* eg: 33 (0x21) => 0x33
|
||||
|
|
Ładowanie…
Reference in New Issue