32 unsigned char *rxbuffer,
36 unsigned char *rxbuffer,
40 const unsigned char *txbuffer,
44 const unsigned char *txbuffer,
47extern HAMLIB_EXPORT(
int) write_block_sync_error(
hamlib_port_t *p,
48 const unsigned char *txbuffer,
51extern HAMLIB_EXPORT(
int) port_flush_sync_pipes(
hamlib_port_t *p);
54 unsigned char *rxbuffer,
62 unsigned char *rxbuffer,
struct hamlib_port hamlib_port_t
Port definition.
int port_close(hamlib_port_t *p, rig_port_t port_type)
Close a hamlib_port.
Definition iofunc.c:383
int read_string(hamlib_port_t *p, unsigned char *rxbuffer, size_t rxmax, const char *stopset, int stopset_len, int flush_flag, int expected_len)
Read a string from the device directly or from the synchronous data pipe, depending on the device cap...
Definition iofunc.c:1555
int write_block(hamlib_port_t *p, const unsigned char *txbuffer, size_t count)
Write a block of characters to an fd.
Definition iofunc.c:1064
int read_block_direct(hamlib_port_t *p, unsigned char *rxbuffer, size_t count)
Read bytes directly from the device file descriptor.
Definition iofunc.c:1309
int port_open(hamlib_port_t *p)
Open a hamlib_port based on its rig port type.
Definition iofunc.c:228
int read_block(hamlib_port_t *p, unsigned char *rxbuffer, size_t count)
Read bytes from the device directly or from the synchronous data pipe, depending on the device caps.
Definition iofunc.c:1285
int read_string_direct(hamlib_port_t *p, unsigned char *rxbuffer, size_t rxmax, const char *stopset, int stopset_len, int flush_flag, int expected_len)
Read a string directly from the device file descriptor.
Definition iofunc.c:1594
enum rig_port_e rig_port_t
Port type.
Hamlib rig data structures.