29 #ifdef HAVE_LINUX_PARPORT_H
31 # include <linux/parport.h>
34 #ifndef PARPORT_CONTROL_STROBE
35 # define PARPORT_CONTROL_STROBE 0x1
38 #ifndef PARPORT_CONTROL_AUTOFD
39 # define PARPORT_CONTROL_AUTOFD 0x2
42 #ifndef PARPORT_CONTROL_INIT
43 # define PARPORT_CONTROL_INIT 0x4
46 #ifndef PARPORT_CONTROL_SELECT
47 # define PARPORT_CONTROL_SELECT 0x8
50 #ifndef PARPORT_STATUS_ERROR
51 # define PARPORT_STATUS_ERROR 0x8
54 #ifndef PARPORT_STATUS_SELECT
55 # define PARPORT_STATUS_SELECT 0x10
58 #ifndef PARPORT_STATUS_PAPEROUT
59 # define PARPORT_STATUS_PAPEROUT 0x20
62 #ifndef PARPORT_STATUS_ACK
63 # define PARPORT_STATUS_ACK 0x40
66 #ifndef PARPORT_STATUS_BUSY
67 # define PARPORT_STATUS_BUSY 0x80
79 extern HAMLIB_EXPORT(
int)
par_write_data(hamlib_port_t *p,
unsigned char data);
81 unsigned char control);
83 extern HAMLIB_EXPORT(
int)
par_read_data(hamlib_port_t *p,
unsigned char *data);
85 unsigned char *control);
88 unsigned char *status);
90 extern HAMLIB_EXPORT(
int)
par_lock(hamlib_port_t *p);
91 extern HAMLIB_EXPORT(
int)
par_unlock(hamlib_port_t *p);
ptt_t
PTT status.
Definition: rig.h:535
int par_ptt_set(hamlib_port_t *p, ptt_t pttx)
Set or unset Push to talk bit on Parallel Port.
Definition: parallel.c:633
int HAMLIB_API par_unlock(hamlib_port_t *p)
Release lock on Parallel Port.
Definition: parallel.c:591
Hamlib rig data structures.
int HAMLIB_API par_write_data(hamlib_port_t *p, unsigned char data)
Send data on Parallel port.
Definition: parallel.c:244
enum dcd_e dcd_t
DCD status.
int HAMLIB_API par_read_status(hamlib_port_t *p, unsigned char *status)
Get parallel port status.
Definition: parallel.c:496
int par_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
get Data Carrier Detect (squelch) from Parallel Port
Definition: parallel.c:733
__BEGIN_DECLS int par_open(hamlib_port_t *p)
Open Parallel Port.
Definition: parallel.c:129
int par_close(hamlib_port_t *p)
Close Parallel Port.
Definition: parallel.c:224
int par_ptt_get(hamlib_port_t *p, ptt_t *pttx)
Get state of Push to Talk from Parallel Port.
Definition: parallel.c:690
int HAMLIB_API par_read_control(hamlib_port_t *p, unsigned char *control)
Read control data for Parallel Port.
Definition: parallel.c:425
int HAMLIB_API par_read_data(hamlib_port_t *p, unsigned char *data)
Receive data on Parallel port.
Definition: parallel.c:289
int HAMLIB_API par_write_control(hamlib_port_t *p, unsigned char control)
Set control data for Parallel Port.
Definition: parallel.c:345
int HAMLIB_API par_lock(hamlib_port_t *p)
Get a lock on the Parallel Port.
Definition: parallel.c:559
Hamlib documentation for version 4.0~git -- Mon Jun 15 2020 00:00:00
Project page: http://www.hamlib.org