kopia lustrzana https://github.com/Hamlib/Hamlib
* Split functions so it'll be easier to add support for
different architectures. New functions are ser_ptt_open/par_ptt_open ser_ptt_set/par_ptt_set, ser_ptt_get/par_ptt_get, and ser_ptt_close/ par_ptt_close git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@359 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.1
rodzic
0bf1fe9b5d
commit
944abe6ca2
12
src/serial.h
12
src/serial.h
|
@ -6,7 +6,7 @@
|
|||
* Provides useful routines for read/write serial data for communicating
|
||||
* via serial interface .
|
||||
*
|
||||
* $Id: serial.h,v 1.3 2000-10-09 01:17:20 javabear Exp $
|
||||
* $Id: serial.h,v 1.4 2001-02-09 23:09:50 f4cfe Exp $
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -38,5 +38,15 @@ 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 post_write_delay);
|
||||
int fread_block(FILE *stream, unsigned char *rxbuffer, size_t count, int timeout);
|
||||
|
||||
/* Hamlib internal use, see rig.c */
|
||||
int ser_ptt_open(struct rig_state *rs);
|
||||
int par_ptt_open(struct rig_state *rs);
|
||||
int ser_ptt_set(struct rig_state *rs, ptt_t pttx);
|
||||
int par_ptt_set(struct rig_state *rs, ptt_t pttx);
|
||||
int ser_ptt_get(struct rig_state *rs, ptt_t *pttx);
|
||||
int par_ptt_get(struct rig_state *rs, ptt_t *pttx);
|
||||
int ser_ptt_close(struct rig_state *rs);
|
||||
int par_ptt_close(struct rig_state *rs);
|
||||
|
||||
#endif /* _SERIAL_H */
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue