hamlib_port_t Struct Reference

Port definition. More...

#include <rig.h>


Data Fields

int fd
void * handle
int write_delay
int post_write_delay
struct {
post_write_date
int timeout
int retry
char pathname [100]
union {
   struct {
      int   rate
      int   data_bits
      int   stop_bits
      enum serial_parity_e   parity
      enum serial_handshake_e   handshake
      enum serial_control_state_e   rts_state
      enum serial_control_state_e   dtr_state
   }   serial
   struct {
      int   pin
   }   parallel
   struct {
      int   vid
      int   pid
      int   conf
      int   iface
      int   alt
   }   usb
parm
rig_port_t rig
ptt_type_t ptt
dcd_type_t dcd


Detailed Description

Port definition.

Of course, looks like OO painstakingly programmed in C, sigh.

Examples:

/tests/testrig.c.


Field Documentation

rig_port_t hamlib_port_t::rig

Communication port type

Examples:
/tests/testrig.c.

ptt_type_t hamlib_port_t::ptt

PTT port type

dcd_type_t hamlib_port_t::dcd

DCD port type

int hamlib_port_t::fd

File descriptor

void* hamlib_port_t::handle

handle for USB

int hamlib_port_t::write_delay

Delay between each byte sent out, in ms

int hamlib_port_t::post_write_delay

Delay between each commands send out, in ms

struct { ... } hamlib_port_t::post_write_date

hamlib internal use

int hamlib_port_t::timeout

Timeout, in ms

int hamlib_port_t::retry

Maximum number of retries, 0 to disable

char hamlib_port_t::pathname[100]

Port pathname

Examples:
/tests/testrig.c.

int hamlib_port_t::rate

Serial baud rate

int hamlib_port_t::data_bits

Number of data bits

int hamlib_port_t::stop_bits

Number of stop bits

enum serial_parity_e hamlib_port_t::parity

Serial parity

enum serial_handshake_e hamlib_port_t::handshake

Serial handshake

enum serial_control_state_e hamlib_port_t::rts_state

RTS set state

enum serial_control_state_e hamlib_port_t::dtr_state

DTR set state

struct { ... } hamlib_port_t::serial

serial attributes

Examples:
/tests/testrig.c.

int hamlib_port_t::pin

Parrallel port pin number

struct { ... } hamlib_port_t::parallel

parallel attributes

int hamlib_port_t::vid

Vendor ID

int hamlib_port_t::pid

Product ID

int hamlib_port_t::conf

Configuration

int hamlib_port_t::iface

interface

int hamlib_port_t::alt

alternate

struct { ... } hamlib_port_t::usb

USB attributes

union { ... } hamlib_port_t::parm

Port parameter union

Examples:
/tests/testrig.c.


The documentation for this struct was generated from the following file:
Generated on Fri Sep 14 23:44:18 2007 for Hamlib - the C library reference by  doxygen 1.5.1