30#ifdef HAVE_LINUX_PARPORT_H
31# include <linux/parport.h>
35#ifndef PARPORT_CONTROL_STROBE
36# define PARPORT_CONTROL_STROBE 0x1
39#ifndef PARPORT_CONTROL_AUTOFD
40# define PARPORT_CONTROL_AUTOFD 0x2
43#ifndef PARPORT_CONTROL_INIT
44# define PARPORT_CONTROL_INIT 0x4
47#ifndef PARPORT_CONTROL_SELECT
48# define PARPORT_CONTROL_SELECT 0x8
51#ifndef PARPORT_STATUS_ERROR
52# define PARPORT_STATUS_ERROR 0x8
55#ifndef PARPORT_STATUS_SELECT
56# define PARPORT_STATUS_SELECT 0x10
59#ifndef PARPORT_STATUS_PAPEROUT
60# define PARPORT_STATUS_PAPEROUT 0x20
63#ifndef PARPORT_STATUS_ACK
64# define PARPORT_STATUS_ACK 0x40
67#ifndef PARPORT_STATUS_BUSY
68# define PARPORT_STATUS_BUSY 0x80
80extern HAMLIB_EXPORT(
int)
par_write_data(hamlib_port_t *p,
unsigned char data);
82 unsigned char control);
84extern HAMLIB_EXPORT(
int)
par_read_data(hamlib_port_t *p,
unsigned char *data);
86 unsigned char *control);
89 unsigned char *status);
91extern HAMLIB_EXPORT(
int)
par_lock(hamlib_port_t *p);
92extern HAMLIB_EXPORT(
int)
par_unlock(hamlib_port_t *p);
int par_write_control(hamlib_port_t *p, unsigned char control)
Set control data for Parallel Port.
Definition parallel.c:339
__BEGIN_DECLS int par_open(hamlib_port_t *p)
Open Parallel Port.
Definition parallel.c:123
int par_ptt_get(hamlib_port_t *p, ptt_t *pttx)
Get state of Push to Talk from Parallel Port.
Definition parallel.c:684
int par_close(hamlib_port_t *p)
Close Parallel Port.
Definition parallel.c:218
int par_read_status(hamlib_port_t *p, unsigned char *status)
Get parallel port status.
Definition parallel.c:490
int par_ptt_set(hamlib_port_t *p, ptt_t pttx)
Set or unset Push to talk bit on Parallel Port.
Definition parallel.c:627
int par_lock(hamlib_port_t *p)
Get a lock on the Parallel Port.
Definition parallel.c:553
int par_unlock(hamlib_port_t *p)
Release lock on Parallel Port.
Definition parallel.c:585
int par_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
get Data Carrier Detect (squelch) from Parallel Port
Definition parallel.c:727
int par_read_control(hamlib_port_t *p, unsigned char *control)
Read control data for Parallel Port.
Definition parallel.c:419
int par_write_data(hamlib_port_t *p, unsigned char data)
Send data on Parallel port.
Definition parallel.c:238
int par_read_data(hamlib_port_t *p, unsigned char *data)
Receive data on Parallel port.
Definition parallel.c:283
ptt_t
PTT status.
Definition rig.h:679
Hamlib rig data structures.