![]() |
Hamlib 4.7~git
|
Port definition. More...
#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 | asyncio |
| int | fd_sync_write |
| int | fd_sync_read |
| int | fd_sync_error_write |
| int | fd_sync_error_read |
| short | timeout_retry |
Port definition.
Of course, looks like OO painstakingly programmed in C, sigh.
| int hamlib_port::alt |
alternate
| int hamlib_port::asyncio |
enable asynchronous data handling if true – async collides with python keyword so _async is used
| int hamlib_port::client_port |
client socket port for tcp connection
| struct { ... } hamlib_port::cm108 |
CM108 attributes
| int hamlib_port::conf |
Configuration
| int hamlib_port::data_bits |
Number of data bits
| dcd_type_t hamlib_port::dcd |
DCD port of dcd_type_e type.
| enum serial_control_state_e hamlib_port::dtr_state |
DTR set state
| int hamlib_port::fd |
File descriptor
| int hamlib_port::fd_sync_error_read |
file descriptor for reading synchronous data error codes
| int hamlib_port::fd_sync_error_write |
file descriptor for writing synchronous data error codes
| int hamlib_port::fd_sync_read |
file descriptor for reading synchronous data
| int hamlib_port::fd_sync_write |
file descriptor for writing synchronous data
| short hamlib_port::flushx |
If true flush is done with read instead of TCFLUSH - MicroHam
| struct { ... } hamlib_port::gpio |
GPIO attributes
| void* hamlib_port::handle |
handle for USB
| enum serial_handshake_e hamlib_port::handshake |
Serial handshake
| int hamlib_port::iface |
interface
| int hamlib_port::on_value |
GPIO: 1 == normal, GPION: 0 == inverted
| struct { ... } hamlib_port::parallel |
parallel attributes
| enum serial_parity_e hamlib_port::parity |
Serial parity
| union { ... } hamlib_port::parm |
Port parameter union
| char hamlib_port::pathname[HAMLIB_FILPATHLEN] |
Port pathname
| int hamlib_port::pid |
Product ID
| int hamlib_port::pin |
Parallel port pin number
| struct { ... } hamlib_port::post_write_date |
hamlib internal use
| int hamlib_port::post_write_delay |
Delay between each commands send out, in mS
| char* hamlib_port::product |
Product (opt.)
| ptt_type_t hamlib_port::ptt |
PTT port of ptt_type_e type.
| int hamlib_port::ptt_bitnum |
Bit number for CM108 GPIO PTT
| int hamlib_port::rate |
Serial baud rate
| short hamlib_port::retry |
Maximum number of retries, 0 to disable
| rig_port_t hamlib_port::rig |
Communication port of rig_port_e type.
| enum serial_control_state_e hamlib_port::rts_state |
RTS set state
| struct { ... } hamlib_port::serial |
serial attributes
| int hamlib_port::stop_bits |
Number of stop bits
| int hamlib_port::timeout |
Timeout, in mS
| short hamlib_port::timeout_retry |
number of retries to make in case of read timeout errors, some serial interfaces may require this, 0 to disable
| union { ... } hamlib_port::type |
Type of port in use.
| struct { ... } hamlib_port::usb |
USB attributes
| int hamlib_port::value |
Toggle PTT ON or OFF
| char* hamlib_port::vendor_name |
Vendor name (opt.)
| int hamlib_port::vid |
Vendor ID
| int hamlib_port::write_delay |
Delay between each byte sent out, in mS