hamlib_port_t Struct Reference
[Rig (transceiver) API]

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

Communication port type

Examples:
/tests/testrig.c.

PTT port type

DCD port type

File descriptor

handle for USB

Delay between each byte sent out, in mS

Delay between each commands send out, in mS

hamlib internal use

Timeout, in mS

Maximum number of retries, 0 to disable

Port pathname

Examples:
/tests/testrig.c.

Serial baud rate

Number of data bits

Number of stop bits

Serial parity

Serial handshake

RTS set state

DTR set state

struct { ... } hamlib_port_t::serial

serial attributes

Examples:
/tests/testrig.c.

Parallel port pin number

struct { ... } hamlib_port_t::parallel

parallel attributes

Vendor ID

Product ID

Configuration

interface

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:

Hamlib documentation for version 1.2.8 -- Mon Dec 15 18:03:30 2008
Project page: http://hamlib.org