Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
parallel.c File Reference

Parallel Port IO. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include "hamlib/rig.h"
#include "parallel.h"
Include dependency graph for parallel.c:

Macros

#define CP_ACTIVE_LOW_BITS   0x0B
 
#define SP_ACTIVE_LOW_BITS   0x80
 

Functions

int par_open (hamlib_port_t *port)
 Open Parallel Port. More...
 
int par_close (hamlib_port_t *port)
 Close Parallel Port. More...
 
int par_write_data (hamlib_port_t *port, unsigned char data)
 Send data on Parallel port. More...
 
int par_read_data (hamlib_port_t *port, unsigned char *data)
 Receive data on Parallel port. More...
 
int par_write_control (hamlib_port_t *port, unsigned char control)
 Set control data for Parallel Port. More...
 
int par_read_control (hamlib_port_t *port, unsigned char *control)
 Read control data for Parallel Port. More...
 
int par_read_status (hamlib_port_t *port, unsigned char *status)
 Get parallel port status. More...
 
int par_lock (hamlib_port_t *port)
 Get a lock on the Parallel Port. More...
 
int par_unlock (hamlib_port_t *port)
 Release lock on Parallel Port. More...
 
int par_ptt_set (hamlib_port_t *p, ptt_t pttx)
 Set or unset Push to talk bit on Parallel Port. More...
 
int par_ptt_get (hamlib_port_t *p, ptt_t *pttx)
 Get state of Push to Talk from Parallel Port. More...
 
int par_dcd_get (hamlib_port_t *p, dcd_t *dcdx)
 get Data Carrier Detect (squelch) from Parallel Port More...
 

Detailed Description

Parallel Port IO.


Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org