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
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
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::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

enum serial_handshake_e hamlib_port_t::handshake
 

Serial handshake

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::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

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 Sun Feb 19 03:46:23 2006 for Hamlib - the C library reference by  doxygen 1.4.4