Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

event.c File Reference

Event handling. More...

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <hamlib/rig.h>
#include "event.h"
Include dependency graph for event.c:

Go to the source code of this file.

Defines

#define CHECK_RIG_ARG(r)   (!(r) || !(r)->caps || !(r)->state.comm_state)

Functions

int add_trn_rig (RIG *rig)
int foreach_opened_rig (int(*cfunc)(RIG *, rig_ptr_t), rig_ptr_t data)
 execs cfunc() on each opened rig
int remove_trn_rig (RIG *rig)
int HAMLIB_API rig_get_trn (RIG *rig, int *trn)
 get the current transceive mode
int HAMLIB_API rig_set_dcd_callback (RIG *rig, dcd_cb_t cb, rig_ptr_t arg)
 set the callback for dcd events
int HAMLIB_API rig_set_freq_callback (RIG *rig, freq_cb_t cb, rig_ptr_t arg)
 set the callback for freq events
int HAMLIB_API rig_set_mode_callback (RIG *rig, mode_cb_t cb, rig_ptr_t arg)
 set the callback for mode events
int HAMLIB_API rig_set_pltune_callback (RIG *rig, pltune_cb_t cb, rig_ptr_t arg)
 set the callback for pipelined tuning module
int HAMLIB_API rig_set_ptt_callback (RIG *rig, ptt_cb_t cb, rig_ptr_t arg)
 set the callback for ptt events
int HAMLIB_API rig_set_trn (RIG *rig, int trn)
 control the transceive mode
int HAMLIB_API rig_set_vfo_callback (RIG *rig, vfo_cb_t cb, rig_ptr_t arg)
 set the callback for vfo events

Detailed Description

Event handling.

Definition in file event.c.


Generated by  Doxygen 1.6.0   Back to index