Hamlib  1.2.15
Data Fields
hamlib_port_t Struct Reference

Port definition. More...

#include <rig.h>

Data Fields

union {
   rig_port_t   rig
   ptt_type_t   ptt
   dcd_type_t   dcd
type
int fd
void * handle
int write_delay
int post_write_delay
struct {
   int   tv_sec
   int   tv_usec
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   ptt_bitnum
   }   cm108
   struct {
      int   vid
      int   pid
      int   conf
      int   iface
      int   alt
      char *   vendor_name
      char *   product
   }   usb
parm

Detailed Description

Port definition.

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

Examples:
/tests/testrig.c.

Field Documentation

alternate

struct { ... } hamlib_port_t::cm108

CM108 attributes

Configuration

Number of data bits

DCD port type

DTR set state

File descriptor

handle for USB

Serial handshake

interface

struct { ... } hamlib_port_t::parallel

parallel attributes

Serial parity

union { ... } hamlib_port_t::parm

Port parameter union

Examples:
/tests/testrig.c.

Port pathname

Examples:
/tests/testrig.c.

Product ID

Parallel port pin number

hamlib internal use

Delay between each commands send out, in mS

Product (opt.)

PTT port type

Serial baud rate

Maximum number of retries, 0 to disable

Communication port type

Examples:
/tests/testrig.c.

RTS set state

struct { ... } hamlib_port_t::serial

serial attributes

Examples:
/tests/testrig.c.

Number of stop bits

Timeout, in mS

struct { ... } hamlib_port_t::usb

USB attributes

Vendor name (opt.)

Vendor ID

Delay between each byte sent out, in mS


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.6.1

Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:29
Project page: http://www.hamlib.org