Hamlib  3.3
Data Fields
hamlib_port 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 [512]
 
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
 
   struct {
      int   on_value
 
      int   value
 
   }   gpio
 
parm
 

Detailed Description

Port definition.

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

Examples
/tests/testrig.c.

Field Documentation

◆ alt

int hamlib_port::alt

alternate

◆ cm108

struct { ... } hamlib_port::cm108

CM108 attributes

◆ conf

int hamlib_port::conf

Configuration

◆ data_bits

int hamlib_port::data_bits

Number of data bits

◆ dcd

dcd_type_t hamlib_port::dcd

DCD port type

◆ dtr_state

enum serial_control_state_e hamlib_port::dtr_state

DTR set state

◆ fd

int hamlib_port::fd

File descriptor

◆ gpio

struct { ... } hamlib_port::gpio

GPIO attributes

◆ handle

void* hamlib_port::handle

handle for USB

◆ handshake

enum serial_handshake_e hamlib_port::handshake

Serial handshake

◆ iface

int hamlib_port::iface

interface

◆ on_value

int hamlib_port::on_value

GPIO: 1 == normal, GPION: 0 == inverted

◆ parallel

struct { ... } hamlib_port::parallel

parallel attributes

◆ parity

enum serial_parity_e hamlib_port::parity

Serial parity

◆ parm

union { ... } hamlib_port::parm

Port parameter union

Examples
/tests/testrig.c.

◆ pathname

char hamlib_port::pathname[512]

Port pathname

Examples
/tests/testrig.c.

◆ pid

int hamlib_port::pid

Product ID

◆ pin

int hamlib_port::pin

Parallel port pin number

◆ post_write_date

struct { ... } hamlib_port::post_write_date

hamlib internal use

◆ post_write_delay

int hamlib_port::post_write_delay

Delay between each commands send out, in mS

◆ product

char* hamlib_port::product

Product (opt.)

◆ ptt

ptt_type_t hamlib_port::ptt

PTT port type

◆ ptt_bitnum

int hamlib_port::ptt_bitnum

Bit number for CM108 GPIO PTT

◆ rate

int hamlib_port::rate

Serial baud rate

◆ retry

int hamlib_port::retry

Maximum number of retries, 0 to disable

◆ rig

rig_port_t hamlib_port::rig

Communication port type

Examples
/tests/testrig.c.

◆ rts_state

enum serial_control_state_e hamlib_port::rts_state

RTS set state

◆ serial

struct { ... } hamlib_port::serial

serial attributes

Examples
/tests/testrig.c.

◆ stop_bits

int hamlib_port::stop_bits

Number of stop bits

◆ timeout

int hamlib_port::timeout

Timeout, in mS

◆ usb

struct { ... } hamlib_port::usb

USB attributes

◆ value

int hamlib_port::value

Toggle PTT ON or OFF

◆ vendor_name

char* hamlib_port::vendor_name

Vendor name (opt.)

◆ vid

int hamlib_port::vid

Vendor ID

◆ write_delay

int hamlib_port::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.17

Hamlib documentation for version 3.3 -- Wed Jan 29 2020 00:00:00
Project page: http://www.hamlib.org