![]() |
Hamlib 4.7.2
|
#include <port.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 | |
| short | retry | |
| short | flushx | |
| char | pathname [HAMLIB_FILPATHLEN] | |
| 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 | |
| int | client_port | |
| RIG * | rig | |
| int hamlib_port_deprecated::alt |
alternate
| int hamlib_port_deprecated::client_port |
client socket port for tcp connection
| struct { ... } hamlib_port_deprecated::cm108 |
CM108 attributes
| int hamlib_port_deprecated::conf |
Configuration
| int hamlib_port_deprecated::data_bits |
Number of data bits
| dcd_type_t hamlib_port_deprecated::dcd |
DCD port type
| enum serial_control_state_e hamlib_port_deprecated::dtr_state |
DTR set state
| int hamlib_port_deprecated::fd |
File descriptor
| short hamlib_port_deprecated::flushx |
If true flush is done with read instead of TCFLUSH - MicroHam
| struct { ... } hamlib_port_deprecated::gpio |
GPIO attributes
| void* hamlib_port_deprecated::handle |
handle for USB
| enum serial_handshake_e hamlib_port_deprecated::handshake |
Serial handshake
| int hamlib_port_deprecated::iface |
interface
| int hamlib_port_deprecated::on_value |
GPIO: 1 == normal, GPION: 0 == inverted
| struct { ... } hamlib_port_deprecated::parallel |
parallel attributes
| enum serial_parity_e hamlib_port_deprecated::parity |
Serial parity
| union { ... } hamlib_port_deprecated::parm |
Port parameter union
| char hamlib_port_deprecated::pathname[HAMLIB_FILPATHLEN] |
Port pathname
| int hamlib_port_deprecated::pid |
Product ID
| int hamlib_port_deprecated::pin |
Parallel port pin number
| struct { ... } hamlib_port_deprecated::post_write_date |
hamlib internal use
| int hamlib_port_deprecated::post_write_delay |
Delay between each commands send out, in mS
| char* hamlib_port_deprecated::product |
Product (opt.)
| ptt_type_t hamlib_port_deprecated::ptt |
PTT port type
| int hamlib_port_deprecated::ptt_bitnum |
Bit number for CM108 GPIO PTT
| int hamlib_port_deprecated::rate |
Serial baud rate
| short hamlib_port_deprecated::retry |
Maximum number of retries, 0 to disable
| rig_port_t hamlib_port_deprecated::rig |
Communication port type
| RIG* hamlib_port_deprecated::rig |
our parent RIG device
| enum serial_control_state_e hamlib_port_deprecated::rts_state |
RTS set state
| struct { ... } hamlib_port_deprecated::serial |
serial attributes
| int hamlib_port_deprecated::stop_bits |
Number of stop bits
| int hamlib_port_deprecated::timeout |
Timeout, in mS
| union { ... } hamlib_port_deprecated::type |
Type of port in use.
| struct { ... } hamlib_port_deprecated::usb |
USB attributes
| int hamlib_port_deprecated::value |
Toggle PTT ON or OFF
| char* hamlib_port_deprecated::vendor_name |
Vendor name (opt.)
| int hamlib_port_deprecated::vid |
Vendor ID
| int hamlib_port_deprecated::write_delay |
Delay between each byte sent out, in mS