Hamlib  4.5.5
event.h
1 /*
2  * Hamlib Interface - event handling header
3  * Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21 
22 #ifndef _EVENT_H
23 #define _EVENT_H 1
24 
25 #include <hamlib/rig.h>
26 
27 int rig_poll_routine_start(RIG *rig);
28 int rig_poll_routine_stop(RIG *rig);
29 
30 int rig_fire_freq_event(RIG *rig, vfo_t vfo, freq_t freq);
31 int rig_fire_mode_event(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
32 int rig_fire_vfo_event(RIG *rig, vfo_t vfo);
33 int rig_fire_ptt_event(RIG *rig, vfo_t vfo, ptt_t ptt);
34 int rig_fire_dcd_event(RIG *rig, vfo_t vfo, dcd_t dcd);
35 int rig_fire_pltune_event(RIG *rig, vfo_t vfo, freq_t *freq, rmode_t *mode, pbwidth_t *width);
36 int rig_fire_spectrum_event(RIG *rig, struct rig_spectrum_line *line);
37 
38 #endif /* _EVENT_H */
39 
double freq_t
Frequency type,.
Definition: rig.h:410
shortfreq_t pbwidth_t
Definition: rig.h:602
The Rig structure.
Definition: rig.h:2662
Hamlib rig data structures.
ptt_t
PTT status.
Definition: rig.h:633
unsigned int vfo_t
VFO definition.
Definition: rig.h:470
uint64_t rmode_t
Radio mode.
Definition: rig.h:1250
Represents a single line of rig spectrum scope FFT data.
Definition: rig.h:1728
int rig_poll_routine_start(RIG *rig)
Start rig poll routine.
Definition: event.c:251
int rig_poll_routine_stop(RIG *rig)
Stop rig poll routine.
Definition: event.c:304