39 extern HAMLIB_EXPORT(
int) cm108_write_data(
hamlib_port_t *p,
unsigned char data);
40 extern HAMLIB_EXPORT(
int) cm108_write_control(
hamlib_port_t *p,
unsigned char control);
41 extern HAMLIB_EXPORT(
int) cm108_read_data(
hamlib_port_t *p,
unsigned char *data);
42 extern HAMLIB_EXPORT(
int) cm108_read_control(
hamlib_port_t *p,
unsigned char *control);
43 extern HAMLIB_EXPORT(
int) cm108_read_status(
hamlib_port_t *p,
unsigned char *status);
int cm108_ptt_set(hamlib_port_t *p, ptt_t pttx)
Set or unset Push to talk bit on CM108 GPIO.
Definition: cm108.c:150
int cm108_open(hamlib_port_t *p)
Open CM108 HID port (/dev/hidrawX)
Definition: cm108.c:78
Hamlib rig data structures.
ptt_t
PTT status.
Definition: rig.h:403
enum dcd_e dcd_t
DCD status.
Port definition.
Definition: rig.h:1338
int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx)
Get state of Push to Talk from CM108 GPIO.
Definition: cm108.c:214
int cm108_close(hamlib_port_t *p)
Close CM108 HID port.
Definition: cm108.c:137
int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
get Data Carrier Detect (squelch) from CM108 GPIO
Definition: cm108.c:239