Hamlib
3.0.1
|
Serial port IO. 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 "serial.h"
#include "misc.h"
Macros | |
#define | OPEN open |
#define | CLOSE close |
#define | IOCTL ioctl |
Functions | |
int | serial_open (hamlib_port_t *rp) |
Open serial port using rig.state data. More... | |
int | serial_setup (hamlib_port_t *rp) |
Set up Serial port according to requests in port. More... | |
int | serial_flush (hamlib_port_t *p) |
Flush all characters waiting in RX buffer. More... | |
int | ser_open (hamlib_port_t *p) |
Open serial port. More... | |
int | ser_close (hamlib_port_t *p) |
Close serial port. More... | |
int | ser_set_rts (hamlib_port_t *p, int state) |
Set Request to Send (RTS) bit. More... | |
int | ser_get_rts (hamlib_port_t *p, int *state) |
Get RTS bit. More... | |
int | ser_set_dtr (hamlib_port_t *p, int state) |
Set Data Terminal Ready (DTR) bit. More... | |
int | ser_get_dtr (hamlib_port_t *p, int *state) |
Get DTR bit. More... | |
int | ser_set_brk (hamlib_port_t *p, int state) |
Set Break. More... | |
int | ser_get_car (hamlib_port_t *p, int *state) |
Get Carrier (CI?) bit. More... | |
int | ser_get_cts (hamlib_port_t *p, int *state) |
Get Clear to Send (CTS) bit. More... | |
int | ser_get_dsr (hamlib_port_t *p, int *state) |
Get Data Set Ready (DSR) bit. More... | |
Serial port IO.
Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org