kopia lustrzana https://github.com/Hamlib/Hamlib
added fread_block
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@198 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
e61e1fb8e8
commit
64abe98a72
|
@ -6,7 +6,7 @@
|
||||||
* Provides useful routines for read/write serial data for communicating
|
* Provides useful routines for read/write serial data for communicating
|
||||||
* via serial interface .
|
* via serial interface .
|
||||||
*
|
*
|
||||||
* $Id: serial.h,v 1.1 2000-10-01 14:24:47 f4cfe Exp $
|
* $Id: serial.h,v 1.2 2000-10-08 21:46:48 f4cfe Exp $
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
#ifndef _SERIAL_H
|
#ifndef _SERIAL_H
|
||||||
#define _SERIAL_H 1
|
#define _SERIAL_H 1
|
||||||
|
|
||||||
#include <rig.h>
|
#include <hamlib/rig.h>
|
||||||
|
|
||||||
|
|
||||||
int serial_open(struct rig_state *rs);
|
int serial_open(struct rig_state *rs);
|
||||||
|
@ -36,6 +36,7 @@ int serial_open(struct rig_state *rs);
|
||||||
int read_sleep(int fd, unsigned char *rxbuffer, int num , int read_delay);
|
int read_sleep(int fd, unsigned char *rxbuffer, int num , int read_delay);
|
||||||
int read_block(int fd, unsigned char *rxbuffer, size_t count, int timeout);
|
int read_block(int fd, unsigned char *rxbuffer, size_t count, int timeout);
|
||||||
int write_block(int fd, const unsigned char *txbuffer, size_t count, int write_delay);
|
int write_block(int fd, const unsigned char *txbuffer, size_t count, int write_delay);
|
||||||
|
int fread_block(FILE *stream, unsigned char *rxbuffer, size_t count, int timeout);
|
||||||
|
|
||||||
#endif /* _SERIAL_H */
|
#endif /* _SERIAL_H */
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue