29 #ifdef HAVE_LINUX_PARPORT_H
30 # include <linux/parport.h>
33 #ifndef PARPORT_CONTROL_STROBE
34 # define PARPORT_CONTROL_STROBE 0x1
37 #ifndef PARPORT_CONTROL_AUTOFD
38 # define PARPORT_CONTROL_AUTOFD 0x2
41 #ifndef PARPORT_CONTROL_INIT
42 # define PARPORT_CONTROL_INIT 0x4
45 #ifndef PARPORT_CONTROL_SELECT
46 # define PARPORT_CONTROL_SELECT 0x8
49 #ifndef PARPORT_STATUS_ERROR
50 # define PARPORT_STATUS_ERROR 0x8
53 #ifndef PARPORT_STATUS_SELECT
54 # define PARPORT_STATUS_SELECT 0x10
57 #ifndef PARPORT_STATUS_PAPEROUT
58 # define PARPORT_STATUS_PAPEROUT 0x20
61 #ifndef PARPORT_STATUS_ACK
62 # define PARPORT_STATUS_ACK 0x40
65 #ifndef PARPORT_STATUS_BUSY
66 # define PARPORT_STATUS_BUSY 0x80
80 unsigned char control);
84 unsigned char *control);
87 unsigned char *status);
Port definition.
Definition: rig.h:1463
ptt_t
PTT status.
Definition: rig.h:441
int par_ptt_set(hamlib_port_t *p, ptt_t pttx)
Set or unset Push to talk bit on Parallel Port.
Definition: parallel.c:612
int HAMLIB_API par_unlock(hamlib_port_t *p)
Release lock on Parallel Port.
Definition: parallel.c:570
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:241
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:477
int par_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
get Data Carrier Detect (squelch) from Parallel Port
Definition: parallel.c:708
int par_open(hamlib_port_t *p)
Open Parallel Port.
Definition: parallel.c:127
int par_close(hamlib_port_t *p)
Close Parallel Port.
Definition: parallel.c:221
int par_ptt_get(hamlib_port_t *p, ptt_t *pttx)
Get state of Push to Talk from Parallel Port.
Definition: parallel.c:669
int HAMLIB_API par_read_control(hamlib_port_t *p, unsigned char *control)
Read control data for Parallel Port.
Definition: parallel.c:410
int HAMLIB_API par_read_data(hamlib_port_t *p, unsigned char *data)
Receive data on Parallel port.
Definition: parallel.c:282
int HAMLIB_API par_write_control(hamlib_port_t *p, unsigned char control)
Set control data for Parallel Port.
Definition: parallel.c:334
int HAMLIB_API par_lock(hamlib_port_t *p)
Get a lock on the Parallel Port.
Definition: parallel.c:538
Hamlib documentation for version 3.3 -- Wed Jan 29 2020 00:00:00
Project page: http://www.hamlib.org