Hamlib
4.7.1
Toggle main menu visibility
Loading...
Searching...
No Matches
cm108.h
1
/*
2
* Hamlib Interface - CM108 GPIO communication header
3
* Copyright (c) 2000-2003 by Frank Singleton
4
* Copyright (c) 2000-2010 by Stephane Fillod
5
* Copyright (c) 2011 by Andrew Errington
6
*
7
* This library is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU Library General Public License as
9
* published by the Free Software Foundation; either version 2 of
10
* the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Library General Public License for more details.
16
*
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
*
21
*/
22
23
#ifndef _CM108_H
24
#define _CM108_H 1
25
26
#include "
hamlib/rig.h
"
27
28
29
__BEGIN_DECLS
30
31
/* Hamlib internal use, see rig.c */
32
int
cm108_open
(
hamlib_port_t
*p);
33
int
cm108_close
(
hamlib_port_t
*p);
34
int
cm108_ptt_set
(
hamlib_port_t
*p,
ptt_t
pttx);
35
int
cm108_ptt_get
(
hamlib_port_t
*p,
ptt_t
*pttx);
36
int
cm108_dcd_get(
hamlib_port_t
*p, dcd_t *dcdx);
37
38
extern
HAMLIB_EXPORT(
int
) cm108_write_data(
hamlib_port_t
*p,
39
unsigned
char
data);
40
41
extern
HAMLIB_EXPORT(
int
) cm108_write_control(
hamlib_port_t
*p,
42
unsigned
char
control);
43
44
extern
HAMLIB_EXPORT(
int
) cm108_read_data(
hamlib_port_t
*p,
45
unsigned
char
*data);
46
47
extern
HAMLIB_EXPORT(
int
) cm108_read_control(
hamlib_port_t
*p,
48
unsigned
char
*control);
49
50
extern
HAMLIB_EXPORT(
int
) cm108_read_status(
hamlib_port_t
*p,
51
unsigned
char
*status);
52
53
extern
HAMLIB_EXPORT(
int
) cm108_lock(
hamlib_port_t
*p);
54
55
extern
HAMLIB_EXPORT(
int
) cm108_unlock(
hamlib_port_t
*p);
56
57
__END_DECLS
58
59
#endif
/* _CM108_H */
hamlib_port_t
struct hamlib_port hamlib_port_t
Port definition.
cm108_ptt_get
int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx)
Get the state of Push To Talk from a CM108 GPIO.
Definition
cm108.c:347
cm108_ptt_set
int cm108_ptt_set(hamlib_port_t *p, ptt_t pttx)
Set or unset the Push To Talk bit on a CM108 GPIO.
Definition
cm108.c:264
cm108_open
__BEGIN_DECLS int cm108_open(hamlib_port_t *p)
Open CM108 HID port (/dev/hidrawX).
Definition
cm108.c:165
cm108_close
int cm108_close(hamlib_port_t *p)
Close a CM108 HID port.
Definition
cm108.c:242
ptt_t
ptt_t
PTT status.
Definition
rig.h:694
rig.h
Hamlib rig data structures.
src
cm108.h
Generated by
1.17.0
Hamlib documentation for version 4.7.1—
Project page:
http://www.hamlib.org