You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

54 lines
1.5 KiB

/*
Copyright Jeroen Vreeken (jeroen@vreeken.net), 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _INCLUDE_INPUT_H_
#define _INCLUDE_INPUT_H_
#include <stdint.h>
#include <stdbool.h>
#include <poll.h>
#include <hamlib/rig.h>
int io_init_tty(void);
int io_init_input(char *device, bool inputtoggle);
int io_fs_nr(void);
int io_poll_fill(struct pollfd *fds, int count);
bool io_state_rx_get(void);
int io_handle(struct pollfd *fds, int count, void (*cb_control)(char *));
int io_hl_init(rig_model_t rig_model, int dcd_th, ptt_type_t ptt, char *ptt_file, dcd_type_t dcd, char *dcd_file, char *rig_file);
bool io_hl_dcd_get(void);
enum io_hl_ptt {
IO_HL_PTT_OFF = 0,
IO_HL_PTT_AUDIO,
IO_HL_PTT_OTHER,
};
void io_hl_ptt_set(enum io_hl_ptt state);
bool io_hl_aux1_get(void);
bool io_hl_aux2_get(void);
bool io_hl_aux3_get(void);
bool io_dmlassoc_get(void);
void io_dmlassoc_set(bool val);
#endif /* _INCLUDE_INPUT_H_ */