Hamlib  1.2.15.3
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

int hamlib_port_t::alt

alternate

struct { ... } hamlib_port_t::cm108

CM108 attributes

int hamlib_port_t::conf

Configuration

int hamlib_port_t::data_bits

Number of data bits

dcd_type_t hamlib_port_t::dcd

DCD port type

enum serial_control_state_e hamlib_port_t::dtr_state

DTR set state

int hamlib_port_t::fd

File descriptor

void* hamlib_port_t::handle

handle for USB

enum serial_handshake_e hamlib_port_t::handshake

Serial handshake

int hamlib_port_t::iface

interface

struct { ... } hamlib_port_t::parallel

parallel attributes

enum serial_parity_e hamlib_port_t::parity

Serial parity

union { ... } hamlib_port_t::parm

Port parameter union

Examples:
/tests/testrig.c.
char hamlib_port_t::pathname[100]

Port pathname

Examples:
/tests/testrig.c.
int hamlib_port_t::pid

Product ID

int hamlib_port_t::pin

Parallel port pin number

struct { ... } hamlib_port_t::post_write_date

hamlib internal use

int hamlib_port_t::post_write_delay

Delay between each commands send out, in mS

char* hamlib_port_t::product

Product (opt.)

ptt_type_t hamlib_port_t::ptt

PTT port type

int hamlib_port_t::rate

Serial baud rate

int hamlib_port_t::retry

Maximum number of retries, 0 to disable

rig_port_t hamlib_port_t::rig

Communication port type

Examples:
/tests/testrig.c.
enum serial_control_state_e hamlib_port_t::rts_state

RTS set state

struct { ... } hamlib_port_t::serial

serial attributes

Examples:
/tests/testrig.c.
int hamlib_port_t::stop_bits

Number of stop bits

int hamlib_port_t::timeout

Timeout, in mS

struct { ... } hamlib_port_t::usb

USB attributes

char* hamlib_port_t::vendor_name

Vendor name (opt.)

int hamlib_port_t::vid

Vendor ID

int hamlib_port_t::write_delay

Delay between each byte sent out, in mS


The documentation for this struct was generated from the following file:

Generated by doxygen 1.8.11

Hamlib documentation for version 1.2.15.3
Project page: http://www.hamlib.org