Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

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

int hamlib_port_t::alt
 

alternate

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
 

Parrallel 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

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

enum serial_control_state_e hamlib_port_t::rts_state
 

RTS set state

struct { ... } hamlib_port_t::serial
 

serial attributes

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

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 on Sat Sep 30 15:49:37 2006 for Hamlib - the C library reference by  doxygen 1.4.4