Hamlib
3.0.1
|
Generic file-based IO functions. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include "hamlib/rig.h"
#include "iofunc.h"
#include "misc.h"
#include "serial.h"
#include "parallel.h"
#include "usb_port.h"
#include "network.h"
#include "cm108.h"
Macros | |
#define | port_write(p, b, c) write((p)->fd,(b),(c)) |
#define | port_select(p, n, r, w, e, t) select((n),(r),(w),(e),(t)) |
Functions | |
int | port_open (hamlib_port_t *p) |
Open a hamlib_port based on its rig port type. More... | |
int | port_close (hamlib_port_t *p, rig_port_t port_type) |
Close a hamlib_port. More... | |
int | write_block (hamlib_port_t *p, const char *txbuffer, size_t count) |
Write a block of characters to an fd. More... | |
int | read_block (hamlib_port_t *p, char *rxbuffer, size_t count) |
Read bytes from an fd. More... | |
int | read_string (hamlib_port_t *p, char *rxbuffer, size_t rxmax, const char *stopset, int stopset_len) |
Read a string from an fd. More... | |
Generic file-based IO functions.
Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org