*
*/
-#include <gtk/gtk.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-#include <wdsp.h>
-
-#include "new_menu.h"
#include "about_menu.h"
-#include "discovered.h"
-#include "radio.h"
+#include <arpa/inet.h> // for inet_ntoa
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for TRUE, gboolean, gpointer, FALSE
+#include <gtk/gtk.h> // for GtkWidget, gtk_grid_attach, GTK_GRID
+#include <netinet/in.h> // for sockaddr_in
+#include <stdio.h> // for sprintf, NULL
+#include <string.h> // for strcat, strcpy
+#include <wdsp.h> // for GetWDSPVersion
+#include "discovered.h" // for DISCOVERED, _DISCOVERED::(anonymous)
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for radio
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
*
*/
+#include <gtk/gtk.h> // for GtkWidget
+
extern void about_menu(GtkWidget *parent);
-#include <gtk/gtk.h>
-#include "actions.h"
+#include <glib-object.h> // for g_signal_handler_block, g_signal_handl...
+#include <glib.h> // for g_malloc0, TRUE, g_free, g_malloc0_n
+#include <gtk/gtk.h> // for GtkWidget, gtk_container_add, gtk_togg...
+#include <stddef.h> // for NULL
+#include "actions.h" // for ACTION_TABLE, ActionTable, ACTIONS
+#include "gobject/gclosure.h" // for G_CALLBACK
#define GRID_WIDTH 6
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovery.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "band_menu.h"
-#include "diversity_menu.h"
-#include "vfo.h"
-#include "radio.h"
-#include "radio_menu.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#ifdef PURESIGNAL
-#include "ps_menu.h"
-#endif
-#include "agc.h"
-#include "filter.h"
-#include "mode.h"
-#include "band.h"
-#include "bandstack.h"
-#include "noise_menu.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "ext.h"
-#include "zoompan.h"
#include "actions.h"
-#include "gpio.h"
-#include "toolbar.h"
-#ifdef LOCALCW
-#include "iambic.h"
-#endif
+#include <glib/gtypes.h> // for GINT_TO_POINTER
+#include <string.h> // for NULL, strlen
+#include "adc.h" // for ADC
+#include "agc.h" // for AGC_LAST
+#include "band.h" // for BAND, band_get_band, canTransmit, BANDS
+#include "bandstack.h" // for BANDSTACK
+#include "discovered.h" // for NEW_PROTOCOL, DISCOVERED
+#include "diversity_menu.h" // for update_diversity_gain, update_diversity_...
+#include "ext.h" // for ext_vfo_update, ext_num_pad, local_set_f...
+#include "filter.h" // for filter_shift_changed, filter_width_changed
+#include "gpio.h" // for switches_controller1, MAX_FUNCTIONS, swi...
+#include "iambic.h" // for keyer_event
+#include "main.h" // for CONTROLLER1, CONTROLLER2_V1, CONTROLLER2_V2
+#include "mode.h" // for MODES, modeCWL, modeCWU, modeLSB, modeUSB
+#include "new_menu.h" // for start_agc, start_band, start_bandstack
+#include "new_protocol.h" // for schedule_high_priority, setMox, setTune
+#include "noise_menu.h" // for update_noise
+#include "radio.h" // for active_receiver, transmitter, receiver
+#include "receiver.h" // for RECEIVER, set_agc, set_offset
+#include "sliders.h" // for set_af_gain, set_agc_gain, set_rf_gain
+#include "toolbar.h" // for function, update_toolbar_labels, mox_update
+#include "transmitter.h" // for TRANSMITTER, transmitter_set_out_of_band
+#include "vfo.h" // for _vfo, vfo_band_changed, vfo, _mode_settings
+#include "wdsp.h" // for SetRXAANFRun
+#include "zoompan.h" // for update_pan, update_zoom
ACTION_TABLE ActionTable[] = {
{NO_ACTION, "NONE", NULL, TYPE_NONE},
+#include <glib.h> // for gint
enum ACTION {
NO_ACTION=0,
#ifndef ADC_H
#define ADC_H
+#include <stdbool.h>
+
enum {
AUTOMATIC=0,
MANUAL
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, g_idle_add, gboolean
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdio.h> // for NULL, sprintf
+#include "agc.h" // for AGC_FAST, AGC_LONG, AGC_MEDIUM, AGC_OFF
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER, set_agc
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void agc_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "ant_menu.h"
-#include "band.h"
-#include "radio.h"
-#include "new_protocol.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <stdio.h> // for NULL
+#include <string.h> // for strlen
+#include "band.h" // for BAND, BANDS, band_get_band, XVTRS, band10
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for device, protocol, new_pa_board, set_al...
+#include "receiver.h" // for RECEIVER
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
*
*/
+#include <gtk/gtk.h> // for GtkWidget
+
void ant_menu(GtkWidget *parent);
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "bandstack.h"
#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "alex.h"
-#include "property.h"
-#include "radio.h"
-#include "vfo.h"
+#include <glib.h> // for g_print, TRUE
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atoi, atoll, strtod
+#include <string.h> // for strlen, strcpy
+#include "alex.h" // for ALEX_ATTENUATION_0dB
+#include "bandstack.h" // for BANDSTACK_ENTRY, BANDSTACK
+#include "filter.h" // for filterF6, filterF5, filterF3
+#include "mode.h" // for modeUSB, modeCWU, modeCWL, modeSAM, modeLSB
+#include "property.h" // for setProperty, getProperty
+#include "radio.h" // for cw_is_on_vfo_freq, cw_keyer_sidetone_frequency
+#include "transmitter.h" // for TRANSMITTER
+#include "vfo.h" // for _vfo, get_tx_freq, get_tx_mode, get_tx_vfo
#define LINESDR
#ifndef _BAND_H
#define _BAND_H
+#include <stdbool.h>
#include "bandstack.h"
enum {
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "band_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h> // for NULL, sprintf
+#include <string.h> // for strlen
+#include "band.h" // for BAND, band_get_band, BANDS, XVTRS
+#include "button_text.h" // for set_button_text_color
+#include "discovered.h" // for DISCOVERED
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver, radio
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for vfo_band_changed, _vfo, vfo
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <glib.h> // for gboolean, gpointer
+#include <gtk/gtk.h> // for GtkWidget
extern void band_menu(GtkWidget *parent);
extern gboolean band_select_cb (GtkWidget *widget, gpointer data);
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "bandstack_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h> // for NULL, sprintf
+#include "band.h" // for band_get_band, BAND
+#include "bandstack.h" // for BANDSTACK_ENTRY, BANDSTACK
+#include "button_text.h" // for set_button_text_color
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for mode_string
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for _vfo, vfo_bandstack_changed, vfo
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void bandstack_menu(GtkWidget *parent);
-#include <gtk/gtk.h>
+#include <glib-object.h> // for g_object_unref
+#include <glib.h> // for g_snprintf, gchar
+#include <gtk/gtk.h> // for gtk_style_context_add_provider, gtk_...
+#include <stddef.h> // for NULL
+#include "gtk/gtkcssprovider.h" // for gtk_css_provider_load_from_data, gtk...
void set_button_text_color(GtkWidget *widget,char *color) {
GtkStyleContext *style_context;
*
*/
-#include <gtk/gtk.h>
-#include <glib.h>
-#include <glib/gprintf.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "channel.h"
-#include "discovered.h"
-#include "actions.h"
-#include "gpio.h"
-#include "i2c.h"
-
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for g_print, gint, FALSE, TRUE, gchar, gpo...
+#include <glib/gprintf.h> // for g_sprintf
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_label_new, gtk_la...
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for NULL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for ENCODER, encoders, gpio_restore_state
+#include "i2c.h" // for i2c_sw, i2c_address_1, i2c_device
+#include "main.h" // for controller, CONTROLLER2_V2, CONTROLLER1
#ifdef GPIO
-#include <gtk/gtk.h>
#include "css.h"
+#include <gdk/gdk.h> // for gdk_display_get_default, gdk_display...
+#include <glib-object.h> // for g_object_unref
+#include <gtk/gtk.h> // for gtk_style_context_add_provider_for_s...
+#include <stddef.h> // for NULL
+#include "gtk/gtkcssprovider.h" // for gtk_css_provider_load_from_data, gtk...
char *css=
" @define-color TOGGLE_ON rgb(100%,0%,0%);\n"
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "pa_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "iambic.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, g_idle_add, gboolean, FALSE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdint.h> // for uintptr_t
+#include <stdio.h> // for NULL
+#include "discovered.h" // for NEW_PROTOCOL
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "iambic.h" // for keyer_update
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for schedule_high_priority
+#include "radio.h" // for cw_keyer_mode, cw_breakin, cw_is_on_vf...
+#include "receiver.h" // for receiver_filter_changed
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h>
extern void cw_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
#include "discovered.h"
int selected_device=0;
*
*/
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#ifdef MIDI
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#endif
-
-#include "discovered.h"
-#include "old_discovery.h"
-#include "new_discovery.h"
-#include "main.h"
-#include "radio.h"
-#ifdef USBOZY
-#include "ozyio.h"
-#endif
-#include "ext.h"
-#ifdef GPIO
-#include "actions.h"
-#include "gpio.h"
-#include "configure.h"
-#endif
-#include "protocols.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "property.h"
-#include "log.h"
+#include <arpa/inet.h> // for inet_ntoa
+#include <gdk/gdk.h> // for GdkEventButton, GdkRGBA, gdk_cursor_new
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, gboolean, g_idle_add
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_button...
+#include <netinet/in.h> // for sockaddr_in, in_addr
+#include <stdio.h> // for NULL, fclose, fopen, sprintf, fgets
+#include <string.h> // for strnlen, strncpy
+#include <unistd.h> // for _exit
+#include "configure.h" // for configure_gpio
+#include "discovered.h" // for DISCOVERED, _DISCOVERED::(anonymous)
+#include "ext.h" // for ext_discovery
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for gpio_set_defaults, gpio_restore_state
+#include "log.h" // for log_trace, log_info
+#include "main.h" // for status_text, controller, top_window
+#include "old_discovery.h" // for old_discovery
+#include "pango/pango-font.h" // for pango_font_description_from_string
+#include "protocols.h" // for configure_protocols, protocols_restore...
+#include "radio.h" // for start_radio, radio
static GtkWidget *discovery_dialog;
static DISCOVERED *d;
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
#include "display_menu.h"
-#include "channel.h"
-#include "radio.h"
-#include "wdsp.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for active_receiver, reconfigure_radio
+#include "receiver.h" // for RECEIVER, set_displaying
+#include "wdsp.h" // for SetDisplayAverageMode, SetDisplayDetec...
static GtkWidget *parent_window=NULL;
-static GtkWidget *menu_b=NULL;
-
static GtkWidget *dialog=NULL;
static void cleanup() {
*
*/
+#include <gtk/gtk.h> // for GtkWidget
+
extern void display_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pthread.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "diversity_menu.h"
-#include "radio.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "sliders.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect, G_OBJECT
+#include <glib.h> // for gpointer, g_idle_add, gboolean, FALSE
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <math.h> // for round, cos, pow, sin
+#include <stdio.h> // for NULL
+#include "discovered.h" // for ORIGINAL_PROTOCOL, NEW_PROTOCOL
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for schedule_high_priority, schedule_recei...
+#include "old_protocol.h" // for old_protocol_run, old_protocol_stop
+#include "radio.h" // for div_gain, div_phase, diversity_enabled
+#include "sliders.h" // for show_diversity_gain, show_diversity_phase
-#include <math.h>
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void diversity_menu(GtkWidget *parent);
extern void update_diversity_gain(double increment);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "dsp_menu.h"
-#include "agc.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "wdsp.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect, G_OBJECT
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL
+#include "agc.h" // for AGC_LONG, AGC_SLOW
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
+#include "wdsp.h" // for SetRXAAGCHangThreshold, SetRXAEMNRPosi...
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
void dsp_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h> // for GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for TRUE, gboolean, gpointer, gint, FALSE
+#include <glib/gprintf.h> // for g_sprintf
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_set_name
+#include <stdio.h> // for NULL, sprintf
+#include "action_dialog.h" // for action_dialog
+#include "actions.h" // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for ENCODER, encoders
+#include "main.h" // for CONTROLLER1, CONTROLLER2_V1, CONTROLLE...
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
static GtkWidget *parent_window=NULL;
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
#include "equalizer_menu.h"
-#include "radio.h"
-#include "channel.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, FALSE, gboolean, TRUE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_scale_add_mark, gtk_range_set_value
+#include <stdio.h> // for NULL
+#include <wdsp.h> // for SetRXAEQRun, SetRXAGrphEQ, SetTXAEQRun
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for rx_equalizer, tx_equalizer, can_transmit
+#include "receiver.h" // for RECEIVER
+#include "transmitter.h" // for TRANSMITTER
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
void equalizer_menu(GtkWidget *parent);
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
#include "error_handler.h"
-#include "main.h"
+#include <glib.h> // for g_idle_add, g_timeout_add, FALSE, gint, gpointer
+#include <gtk/gtk.h> // for GtkWidget, gtk_container_add, gtk_dialog_get_co...
+#include <stdio.h> // for sprintf, NULL, fprintf, stderr
+#include <stdlib.h> // for exit
+#include "main.h" // for top_window
static GtkWidget *dialog;
static gint timer;
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
#include "exit_menu.h"
-#include "discovery.h"
-#include "radio.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
+#include <gdk/gdk.h> // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gboolean, gpointer, TRUE, FALSE
+#include <gtk/gtk.h> // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h> // for NULL
+#include <stdlib.h> // for system
+#include <unistd.h> // for _exit
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for gpio_close
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for new_protocol_stop
+#include "old_protocol.h" // for old_protocol_stop
+#include "radio.h" // for radioSaveState, protocol
static GtkWidget *parent_window=NULL;
+#include <gtk/gtk.h> // for GtkWidget
+
extern void exit_menu(GtkWidget *parent);
*
*/
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovery.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "toolbar.h"
-#include "band_menu.h"
-#include "diversity_menu.h"
-#include "vfo.h"
-#include "radio.h"
-#include "radio_menu.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#ifdef PURESIGNAL
-#include "ps_menu.h"
-#endif
-#include "agc.h"
-#include "filter.h"
-#include "mode.h"
-#include "band.h"
-#include "bandstack.h"
-#include "noise_menu.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
#include "ext.h"
-#include "zoompan.h"
+#include <glib.h> // for g_idle_add, g_print, FALSE, g_timeout_add
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_window_set_title, GTK_WINDOW
+#include <stdio.h> // for NULL
+#include <stdlib.h> // for free
+#include <string.h> // for strlen
+#include "agc.h" // for AGC_LAST
+#include "band.h" // for BAND, band_get_band, BANDS, get_band_fro...
+#include "band_menu.h" // for band_select_cb
+#include "bandstack.h" // for BANDSTACK
+#include "discovered.h" // for DISCOVERED, NEW_PROTOCOL
+#include "discovery.h" // for discovery
+#include "diversity_menu.h" // for update_diversity_gain, update_diversity_...
+#include "filter.h" // for FILTERS
+#include "main.h" // for top_window
+#include "mode.h" // for MODES
+#include "new_menu.h" // for start_filter, start_mode, start_band
+#include "new_protocol.h" // for schedule_high_priority, schedule_receive...
+#include "noise_menu.h" // for update_noise
+#include "radio.h" // for active_receiver, transmitter, can_transmit
+#include "radio_menu.h" // for setDuplex
+#include "receiver.h" // for RECEIVER, set_agc, set_offset
+#include "sliders.h" // for set_af_gain, set_agc_gain, set_attenuati...
+#include "toolbar.h" // for function, mox_update, tune_update, updat...
+#include "transmitter.h" // for TRANSMITTER, tx_set_mode, tx_set_twotone
+#include "vfo.h" // for _vfo, vfo, _mode_settings, mode_settings
+#include "wdsp.h" // for SetRXAANFRun
+#include "zoompan.h" // for remote_set_pan, remote_set_zoom, set_pan
// The following calls functions can be called usig g_idle_add
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "fft_menu.h"
-#include "radio.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_toggle...
+#include <stdio.h> // for NULL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for set_filter_type, receiver
+#include "receiver.h" // for RECEIVER
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
void fft_menu(GtkWidget *parent);
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include "sliders.h"
#include "filter.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "radio.h"
-#include "property.h"
+#include <glib.h> // for gint
+#include <stdio.h> // for sprintf, fprintf, stderr
+#include <stdlib.h> // for atoi
+#include "property.h" // for getProperty, setProperty
+#include "radio.h" // for receiver
+#include "receiver.h" // for RECEIVER
+#include "sliders.h" // for set_filter_shift, set_filter_width
+#include "vfo.h" // for _vfo, vfo, vfo_filter_changed
FILTER filterLSB[FILTERS]={
{-5150,-150,"5.0k"},
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
-
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "filter_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE, g_idl...
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_button...
+#include <stdio.h> // for NULL, sprintf
+#include "button_text.h" // for set_button_text_color
+#include "ext.h" // for ext_vfo_update
+#include "filter.h" // for FILTER, filters, FILTERS
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for modeCWL, modeCWU, modeFMN
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver, transmitter
+#include "receiver.h" // for RECEIVER, set_filter, set_deviation
+#include "transmitter.h" // for tx_set_filter, transmitter_set_deviation
+#include "vfo.h" // for _vfo, vfo, vfo_filter_changed
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void filter_menu(GtkWidget *parent);
extern int filter_select(void *data);
// Note that all pin numbers are now the Broadcom GPIO
-#include <gtk/gtk.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <fcntl.h>
-#include <poll.h>
-#include <sched.h>
-
-#ifdef GPIO
-#include <gpiod.h>
-#include <linux/i2c-dev.h>
-#include <i2c/smbus.h>
-#include <sys/ioctl.h>
-#endif
-
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "toolbar.h"
-#include "radio.h"
-#include "toolbar.h"
-#include "main.h"
-#include "property.h"
-#include "vfo.h"
-#include "wdsp.h"
-#include "new_menu.h"
-#include "encoder_menu.h"
-#include "diversity_menu.h"
-#include "actions.h"
#include "gpio.h"
-#include "i2c.h"
-#include "ext.h"
-#include "sliders.h"
-#include "new_protocol.h"
-#include "zoompan.h"
-#ifdef LOCALCW
-#include "iambic.h"
-#include "log.h"
+#include <errno.h> // for errno
+#include <gpiod.h> // for gpiod_line_request_config, gpiod_chip_close
+#include <sched.h> // for timespec
+#include <stdint.h> // for uint64_t, uint32_t
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atoi, exit
+#include <time.h> // for clock_gettime, CLOCK_MONOTONIC_RAW
+#include <unistd.h> // for usleep
+#include "actions.h" // for NO_ACTION, MOX, FUNCTION, MENU_FREQUENCY, PROC...
+#include "i2c.h" // for i2c_init, i2c_interrupt
+#include "iambic.h" // for keyer_event
+#include "log.h" // for log_trace, log_error, log_debug
+#include "main.h" // for controller, NO_CONTROLLER, CONTROLLER2_V1, CON...
+#include "property.h" // for setProperty, getProperty, clearProperties, loa...
+#include "radio.h" // for vfo_encoder_divisor
+#include "toolbar.h" // for function, update_toolbar_labels
//
// Broadcom pins #9, 10, 11 are not used
// by Controller1 and Controller2_V1
// (and keep #2,3 reserved for I2C extensions)
//
+#ifdef LOCALCW
+
int CWL_BUTTON=17; // was 9
int CWR_BUTTON=21; //was 11
int SIDETONE_GPIO=10;
int ENABLE_GPIO_SIDETONE=0;
int ENABLE_CW_BUTTONS=1;
int CW_ACTIVE_LOW=1;
+
#endif
#ifdef PTT
#ifndef _GPIO_H
#define _GPIO_H
+#include <time.h> // for clock_gettime, CLOCK_MONOTONIC_RAW
+#include <glib.h>
+
#define MAX_ENCODERS 5
#define MAX_SWITCHES 16
#define MAX_FUNCTIONS 6
--- /dev/null
+property_version=3.00
+switches[5,15].switch_address=0
+switches[5,15].switch_pullup=0
+switches[5,15].switch_enabled=0
+switches[5,14].switch_address=0
+switches[5,14].switch_pullup=0
+switches[5,14].switch_enabled=0
+switches[5,13].switch_address=0
+switches[5,13].switch_pullup=0
+switches[5,13].switch_enabled=0
+switches[5,12].switch_address=0
+switches[5,12].switch_pullup=0
+switches[5,12].switch_enabled=0
+switches[5,11].switch_address=0
+switches[5,11].switch_pullup=0
+switches[5,11].switch_enabled=0
+switches[5,10].switch_address=0
+switches[5,10].switch_pullup=0
+switches[5,10].switch_enabled=0
+switches[5,9].switch_address=0
+switches[5,9].switch_pullup=0
+switches[5,9].switch_enabled=0
+switches[5,8].switch_address=0
+switches[5,8].switch_pullup=0
+switches[5,8].switch_enabled=0
+switches[5,7].switch_address=22
+switches[5,7].switch_pullup=1
+switches[5,7].switch_enabled=1
+switches[5,6].switch_address=23
+switches[5,6].switch_pullup=1
+switches[5,6].switch_enabled=1
+switches[5,5].switch_address=24
+switches[5,5].switch_pullup=1
+switches[5,5].switch_enabled=1
+switches[5,4].switch_address=5
+switches[5,4].switch_pullup=1
+switches[5,4].switch_enabled=1
+switches[5,3].switch_address=6
+switches[5,3].switch_pullup=1
+switches[5,3].switch_enabled=1
+switches[5,2].switch_address=12
+switches[5,2].switch_pullup=1
+switches[5,2].switch_enabled=1
+switches[5,1].switch_address=13
+switches[5,1].switch_pullup=1
+switches[5,1].switch_enabled=1
+switches[5,0].switch_address=27
+switches[5,0].switch_pullup=1
+switches[5,0].switch_enabled=1
+switches[4,15].switch_address=0
+switches[4,15].switch_pullup=0
+switches[4,15].switch_enabled=0
+switches[4,14].switch_address=0
+switches[4,14].switch_pullup=0
+switches[4,14].switch_enabled=0
+switches[4,13].switch_address=0
+switches[4,13].switch_pullup=0
+switches[4,13].switch_enabled=0
+switches[4,12].switch_address=0
+switches[4,12].switch_pullup=0
+switches[4,12].switch_enabled=0
+switches[4,11].switch_address=0
+switches[4,11].switch_pullup=0
+switches[4,11].switch_enabled=0
+switches[4,10].switch_address=0
+switches[4,10].switch_pullup=0
+switches[4,10].switch_enabled=0
+switches[4,9].switch_address=0
+switches[4,9].switch_pullup=0
+switches[4,9].switch_enabled=0
+switches[4,8].switch_address=0
+switches[4,8].switch_pullup=0
+switches[4,8].switch_enabled=0
+switches[4,7].switch_address=22
+switches[4,7].switch_pullup=1
+switches[4,7].switch_enabled=1
+switches[4,6].switch_address=23
+switches[4,6].switch_pullup=1
+switches[4,6].switch_enabled=1
+switches[4,5].switch_address=24
+switches[4,5].switch_pullup=1
+switches[4,5].switch_enabled=1
+switches[4,4].switch_address=5
+switches[4,4].switch_pullup=1
+switches[4,4].switch_enabled=1
+switches[4,3].switch_address=6
+switches[4,3].switch_pullup=1
+switches[4,3].switch_enabled=1
+switches[4,2].switch_address=12
+switches[4,2].switch_pullup=1
+switches[4,2].switch_enabled=1
+switches[4,1].switch_address=13
+switches[4,1].switch_pullup=1
+switches[4,1].switch_enabled=1
+switches[4,0].switch_address=27
+switches[4,0].switch_pullup=1
+switches[4,0].switch_enabled=1
+switches[3,15].switch_address=0
+switches[3,15].switch_pullup=0
+switches[3,15].switch_enabled=0
+switches[3,14].switch_address=0
+switches[3,14].switch_pullup=0
+switches[3,14].switch_enabled=0
+switches[3,13].switch_address=0
+switches[3,13].switch_pullup=0
+switches[3,13].switch_enabled=0
+switches[3,12].switch_address=0
+switches[3,12].switch_pullup=0
+switches[3,12].switch_enabled=0
+switches[3,11].switch_address=0
+switches[3,11].switch_pullup=0
+switches[3,11].switch_enabled=0
+switches[3,10].switch_address=0
+switches[3,10].switch_pullup=0
+switches[3,10].switch_enabled=0
+switches[3,9].switch_address=0
+switches[3,9].switch_pullup=0
+switches[3,9].switch_enabled=0
+switches[3,8].switch_address=0
+switches[3,8].switch_pullup=0
+switches[3,8].switch_enabled=0
+switches[3,7].switch_address=22
+switches[3,7].switch_pullup=1
+switches[3,7].switch_enabled=1
+switches[3,6].switch_address=23
+switches[3,6].switch_pullup=1
+switches[3,6].switch_enabled=1
+switches[3,5].switch_address=24
+switches[3,5].switch_pullup=1
+switches[3,5].switch_enabled=1
+switches[3,4].switch_address=5
+switches[3,4].switch_pullup=1
+switches[3,4].switch_enabled=1
+switches[3,3].switch_address=6
+switches[3,3].switch_pullup=1
+switches[3,3].switch_enabled=1
+switches[3,2].switch_address=12
+switches[3,2].switch_pullup=1
+switches[3,2].switch_enabled=1
+switches[3,1].switch_address=13
+switches[3,1].switch_pullup=1
+switches[3,1].switch_enabled=1
+switches[3,0].switch_address=27
+switches[3,0].switch_pullup=1
+switches[3,0].switch_enabled=1
+switches[2,15].switch_address=0
+switches[2,15].switch_pullup=0
+switches[2,15].switch_enabled=0
+switches[2,14].switch_address=0
+switches[2,14].switch_pullup=0
+switches[2,14].switch_enabled=0
+switches[2,13].switch_address=0
+switches[2,13].switch_pullup=0
+switches[2,13].switch_enabled=0
+switches[2,12].switch_address=0
+switches[2,12].switch_pullup=0
+switches[2,12].switch_enabled=0
+switches[2,11].switch_address=0
+switches[2,11].switch_pullup=0
+switches[2,11].switch_enabled=0
+switches[2,10].switch_address=0
+switches[2,10].switch_pullup=0
+switches[2,10].switch_enabled=0
+switches[2,9].switch_address=0
+switches[2,9].switch_pullup=0
+switches[2,9].switch_enabled=0
+switches[2,8].switch_address=0
+switches[2,8].switch_pullup=0
+switches[2,8].switch_enabled=0
+switches[2,7].switch_address=22
+switches[2,7].switch_pullup=1
+switches[2,7].switch_enabled=1
+switches[2,6].switch_address=23
+switches[2,6].switch_pullup=1
+switches[2,6].switch_enabled=1
+switches[2,5].switch_address=24
+switches[2,5].switch_pullup=1
+switches[2,5].switch_enabled=1
+switches[2,4].switch_address=5
+switches[2,4].switch_pullup=1
+switches[2,4].switch_enabled=1
+switches[2,3].switch_address=6
+switches[2,3].switch_pullup=1
+switches[2,3].switch_enabled=1
+switches[2,2].switch_address=12
+switches[2,2].switch_pullup=1
+switches[2,2].switch_enabled=1
+switches[2,1].switch_address=13
+switches[2,1].switch_pullup=1
+switches[2,1].switch_enabled=1
+switches[2,0].switch_address=27
+switches[2,0].switch_pullup=1
+switches[2,0].switch_enabled=1
+switches[1,15].switch_address=0
+switches[1,15].switch_pullup=0
+switches[1,15].switch_enabled=0
+switches[1,14].switch_address=0
+switches[1,14].switch_pullup=0
+switches[1,14].switch_enabled=0
+switches[1,13].switch_address=0
+switches[1,13].switch_pullup=0
+switches[1,13].switch_enabled=0
+switches[1,12].switch_address=0
+switches[1,12].switch_pullup=0
+switches[1,12].switch_enabled=0
+switches[1,11].switch_address=0
+switches[1,11].switch_pullup=0
+switches[1,11].switch_enabled=0
+switches[1,10].switch_address=0
+switches[1,10].switch_pullup=0
+switches[1,10].switch_enabled=0
+switches[1,9].switch_address=0
+switches[1,9].switch_pullup=0
+switches[1,9].switch_enabled=0
+switches[1,8].switch_address=0
+switches[1,8].switch_pullup=0
+switches[1,8].switch_enabled=0
+switches[1,7].switch_address=22
+switches[1,7].switch_pullup=1
+switches[1,7].switch_enabled=1
+switches[1,6].switch_address=23
+switches[1,6].switch_pullup=1
+switches[1,6].switch_enabled=1
+switches[1,5].switch_address=24
+switches[1,5].switch_pullup=1
+switches[1,5].switch_enabled=1
+switches[1,4].switch_address=5
+switches[1,4].switch_pullup=1
+switches[1,4].switch_enabled=1
+switches[1,3].switch_address=6
+switches[1,3].switch_pullup=1
+switches[1,3].switch_enabled=1
+switches[1,2].switch_address=12
+switches[1,2].switch_pullup=1
+switches[1,2].switch_enabled=1
+switches[1,1].switch_address=13
+switches[1,1].switch_pullup=1
+switches[1,1].switch_enabled=1
+switches[1,0].switch_address=27
+switches[1,0].switch_pullup=1
+switches[1,0].switch_enabled=1
+switches[0,15].switch_address=0
+switches[0,15].switch_pullup=0
+switches[0,15].switch_enabled=0
+switches[0,14].switch_address=0
+switches[0,14].switch_pullup=0
+switches[0,14].switch_enabled=0
+switches[0,13].switch_address=0
+switches[0,13].switch_pullup=0
+switches[0,13].switch_enabled=0
+switches[0,12].switch_address=0
+switches[0,12].switch_pullup=0
+switches[0,12].switch_enabled=0
+switches[0,11].switch_address=0
+switches[0,11].switch_pullup=0
+switches[0,11].switch_enabled=0
+switches[0,10].switch_address=0
+switches[0,10].switch_pullup=0
+switches[0,10].switch_enabled=0
+switches[0,9].switch_address=0
+switches[0,9].switch_pullup=0
+switches[0,9].switch_enabled=0
+switches[0,8].switch_address=0
+switches[0,8].switch_pullup=0
+switches[0,8].switch_enabled=0
+switches[0,7].switch_address=22
+switches[0,7].switch_pullup=1
+switches[0,7].switch_enabled=1
+switches[0,6].switch_address=23
+switches[0,6].switch_pullup=1
+switches[0,6].switch_enabled=1
+switches[0,5].switch_address=24
+switches[0,5].switch_pullup=1
+switches[0,5].switch_enabled=1
+switches[0,4].switch_address=5
+switches[0,4].switch_pullup=1
+switches[0,4].switch_enabled=1
+switches[0,3].switch_address=6
+switches[0,3].switch_pullup=1
+switches[0,3].switch_enabled=1
+switches[0,2].switch_address=12
+switches[0,2].switch_pullup=1
+switches[0,2].switch_enabled=1
+switches[0,1].switch_address=13
+switches[0,1].switch_pullup=1
+switches[0,1].switch_enabled=1
+switches[0,0].switch_address=27
+switches[0,0].switch_pullup=1
+switches[0,0].switch_enabled=1
+encoders[4].switch_address=0
+encoders[4].switch_pullup=1
+encoders[4].switch_enabled=0
+encoders[4].top_encoder_address_b=0
+encoders[4].top_encoder_address_a=0
+encoders[4].top_encoder_pullup=1
+encoders[4].top_encoder_enabled=0
+encoders[4].bottom_encoder_address_b=0
+encoders[4].bottom_encoder_address_a=0
+encoders[4].bottom_encoder_pullup=1
+encoders[4].bottom_encoder_enabled=0
+encoders[3].switch_address=0
+encoders[3].switch_pullup=1
+encoders[3].switch_enabled=0
+encoders[3].top_encoder_address_b=0
+encoders[3].top_encoder_address_a=0
+encoders[3].top_encoder_pullup=1
+encoders[3].top_encoder_enabled=0
+encoders[3].bottom_encoder_address_b=17
+encoders[3].bottom_encoder_address_a=18
+encoders[3].bottom_encoder_pullup=1
+encoders[3].bottom_encoder_enabled=1
+encoders[2].switch_address=7
+encoders[2].switch_pullup=1
+encoders[2].switch_enabled=1
+encoders[2].top_encoder_address_b=0
+encoders[2].top_encoder_address_a=0
+encoders[2].top_encoder_pullup=1
+encoders[2].top_encoder_enabled=0
+encoders[2].bottom_encoder_address_b=21
+encoders[2].bottom_encoder_address_a=4
+encoders[2].bottom_encoder_pullup=1
+encoders[2].bottom_encoder_enabled=1
+encoders[1].switch_address=8
+encoders[1].switch_pullup=1
+encoders[1].switch_enabled=1
+encoders[1].top_encoder_address_b=0
+encoders[1].top_encoder_address_a=0
+encoders[1].top_encoder_pullup=1
+encoders[1].top_encoder_enabled=0
+encoders[1].bottom_encoder_address_b=19
+encoders[1].bottom_encoder_address_a=16
+encoders[1].bottom_encoder_pullup=1
+encoders[1].bottom_encoder_enabled=1
+encoders[0].switch_address=25
+encoders[0].switch_pullup=1
+encoders[0].switch_enabled=1
+encoders[0].top_encoder_address_b=0
+encoders[0].top_encoder_address_a=0
+encoders[0].top_encoder_pullup=1
+encoders[0].top_encoder_enabled=0
+encoders[0].bottom_encoder_address_b=26
+encoders[0].bottom_encoder_address_a=20
+encoders[0].bottom_encoder_pullup=1
+encoders[0].bottom_encoder_enabled=1
+controller=1
#ifdef GPIO
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <linux/i2c-dev.h>
-#include <i2c/smbus.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <stdbool.h>
-#include <gtk/gtk.h>
-
#include "i2c.h"
-#include "actions.h"
-#include "gpio.h"
-#include "band.h"
-#include "band_menu.h"
-#include "bandstack.h"
-#include "radio.h"
-#include "toolbar.h"
-#include "vfo.h"
-#include "ext.h"
+#include <errno.h> // for errno
+#include <fcntl.h> // for open, O_RDWR
+#include <glib.h> // for g_print, g_strerror, g_malloc, g_idle_add
+#include <i2c/smbus.h> // for i2c_smbus_read_word_data, i2c_smbus_write...
+#include <linux/i2c-dev.h> // for I2C_SLAVE
+#include <stdio.h> // for fprintf, stderr
+#include <sys/ioctl.h> // for ioctl
+#include "actions.h" // for PROCESS_ACTION, process_action, PRESSED
+#include "gpio.h" // for SWITCH, switches
char *i2c_device="/dev/i2c-1";
unsigned int i2c_address_1=0X20;
*
*/
-#include <gtk/gtk.h>
+#include <gdk/gdk.h> // for GdkRGBA
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, FALSE, gboolean
+#include <gtk/gtk.h> // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <stdio.h> // for fprintf, stderr
+#include "cairo.h" // for cairo_paint, cairo_set_source_rgb, cai...
+#include "gobject/gclosure.h" // for G_CALLBACK
static gboolean draw_led_cb (GtkWidget *widget, cairo_t *cr, gpointer data) {
GdkRGBA *color=(GdkRGBA *)data;
#define MAX_DISPLAY_WIDTH 1024 // edit
#define MAX_DISPLAY_HEIGHT 600 // edit
-#include <arpa/inet.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include "actions.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "configure.h"
-#include "discovered.h"
#include "main.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "button_text.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "wdsp.h"
-#ifdef I2C
-#include "i2c.h"
-#endif
-#include "discovery.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "css.h"
-#include "ext.h"
-#include "vfo.h"
-
-#include "log.h"
+#include <gdk/gdk.h> // for gdk_cursor_new, GdkEventKey, gdk_scree...
+#include <gio/gio.h> // for g_application_run, G_APPLICATION, G_AP...
+#include <glib-object.h> // for g_object_unref, g_signal_connect
+#include <gtk/gtk.h> // for GtkWidget, gtk_events_pending, gtk_gri...
+#include <pthread.h> // for pthread_create, pthread_t
+#include <stdbool.h> // for bool
+#include <stdio.h> // for perror
+#include <string.h> // for strcpy, strlen
+#include <unistd.h> // for _exit, usleep, getcwd
+#include "audio.h" // for audio_get_cards
+#include "band.h" // for canTransmit
+#include "css.h" // for load_css
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "ext.h" // for ext_discovery, ext_vfo_update
+#include "gdk/gdkkeysyms.h" // for GDK_KEY_d, GDK_KEY_space, GDK_KEY_u
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for gpio_close
+#include "log.h" // for log_debug, log_warn
+#include "new_protocol.h" // for setMox, getMox, getTune, new_protocol_...
+#include "old_protocol.h" // for old_protocol_stop
+#include "radio.h" // for radioSaveState, radio, step, protocol
+#include "transmitter.h" // for transmitter_set_out_of_band
+#include "vfo.h" // for vfo_move
+#include "wdsp.h" // for WDSPwisdom, wisdom_get_status
struct utsname unameData;
#ifndef _MAIN_H
#define _MAIN_H
-#include <sys/utsname.h>
+#include <gdk/gdk.h> // for GdkEventKey
+#include <glib.h> // for gpointer
+#include <gtk/gtk.h> // for GtkWidget
+#include <stdbool.h> // for bool
+#include <sys/utsname.h> // for utsname
+
extern struct utsname unameData;
enum {
*
*/
-#include <sys/resource.h>
-#include <stdio.h>
-#include "log.h"
+#include <bits/types/struct_rusage.h> // for rusage, rusage::(anonymous)
+#include <sys/resource.h> // for getrusage, RUSAGE_SELF
+#include "log.h" // for log_trace
void show_memory(char *title) {
struct rusage r_usage;
*
*/
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "receiver.h"
#include "meter.h"
-#include "radio.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "mode.h"
-#include "vox.h"
-#include "new_menu.h"
-#include "vfo.h"
+#include <gdk/gdk.h> // for gdk_window_create_similar_surface, GDK...
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gboolean, gpointer, TRUE, FALSE
+#include <gtk/gtk.h> // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <math.h> // for M_PI, fmax, sqrt
+#include <stdio.h> // for sprintf, NULL
+#include "adc.h" // for ADC
+#include "cairo.h" // for cairo_move_to, cairo_line_to, cairo_se...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for start_meter
+#include "radio.h" // for adc, filter_board, vox_threshold, vox_...
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for _vfo, vfo
+#include "vox.h" // for vox_get_peak
static GtkWidget *parent_window;
#ifndef _METER_H
#define _METER_H
-#include <gtk/gtk.h>
+#include <gtk/gtk.h> // for GtkWidget
+#include "receiver.h" // for RECEIVER
#define SMETER 0
#define POWER 1
*
*/
-#include <gtk/gtk.h>
-#include <string.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
-#include "receiver.h"
#include "meter_menu.h"
-#include "meter.h"
-#include "radio.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdlib.h> // for NULL
+#include <wdsp.h> // for RXA_S_AV, RXA_S_PK, TXA_ALC_AV, TXA_AL...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for alc, smeter, analog_meter, with_gain
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
void meter_menu (GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "band_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h> // for NULL, sprintf
+#include "button_text.h" // for set_button_text_color
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for MODES, mode_string
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for vfo_mode_changed, _vfo, vfo
static GtkWidget *parent_window=NULL;
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "noise_menu.h"
-#include "radio.h"
-
-#include <wdsp.h>
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "noise_menu.h" // for update_nb
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
static GtkWidget *parent_window = NULL;
static GtkWidget *dialog = NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h>
extern void nb_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <netinet/in.h>
-#include <ifaddrs.h>
-#include <string.h>
-#include <errno.h>
-
-#include "discovered.h"
-//#include "discovery.h"
-
+#include <arpa/inet.h> // for inet_ntoa
+#include <glib.h> // for gpointer, g_main_context_iteration, g_thread...
+#include <ifaddrs.h> // for ifaddrs, freeifaddrs, getifaddrs
+#include <net/if.h> // for IFF_RUNNING, IFF_UP
+#include <netinet/in.h> // for sockaddr_in, in_addr, htons, INADDR_BROADCAST
+#include <stdio.h> // for fprintf, perror, stderr, NULL
+#include <stdlib.h> // for exit
+#include <string.h> // for strcpy, memcpy
+#include <sys/socket.h> // for setsockopt, SOL_SOCKET, AF_INET, bind, recvfrom
+#include <sys/time.h> // for timeval
+#include <unistd.h> // for close
+#include "discovered.h" // for DISCOVERED, discovered, devices, _DISCOVERED...
static char interface_name[64];
static struct sockaddr_in interface_addr={0};
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
#include "new_menu.h"
-#include "about_menu.h"
-#include "exit_menu.h"
-#include "radio_menu.h"
-#include "rx_menu.h"
-#include "ant_menu.h"
-#include "display_menu.h"
-#include "dsp_menu.h"
-#include "pa_menu.h"
-#include "rigctl_menu.h"
-#include "oc_menu.h"
-#include "cw_menu.h"
-#include "nb_menu.h"
-#include "store_menu.h"
-#include "xvtr_menu.h"
-#include "equalizer_menu.h"
-#include "radio.h"
-#include "step_menu.h"
-#include "meter_menu.h"
-#include "band_menu.h"
-#include "bandstack_menu.h"
-#include "mode_menu.h"
-#include "filter_menu.h"
-#include "noise_menu.h"
-#include "agc_menu.h"
-#include "vox_menu.h"
-#include "diversity_menu.h"
-#include "tx_menu.h"
-#include "ps_menu.h"
-#include "encoder_menu.h"
-#include "switch_menu.h"
-#include "toolbar_menu.h"
-#include "vfo_menu.h"
-#include "fft_menu.h"
-#include "main.h"
-#include "actions.h"
-#include "gpio.h"
-#include "old_protocol.h"
-#include "new_protocol.h"
-#ifdef CLIENT_SERVER
-#include "server_menu.h"
-#endif
-#ifdef MIDI
-#include "midi_menu.h"
-#endif
+#include <gdk/gdk.h> // for GdkEventButton, GdkRGBA, GdkEvent
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for TRUE, gboolean, gpointer, FALSE
+#include <gtk/gtk.h> // for gtk_button_new_with_label, gtk_grid_at...
+#include <stdio.h> // for NULL
+#include "about_menu.h" // for about_menu
+#include "agc_menu.h" // for agc_menu
+#include "ant_menu.h" // for ant_menu
+#include "band_menu.h" // for band_menu
+#include "bandstack_menu.h" // for bandstack_menu
+#include "cw_menu.h" // for cw_menu
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "display_menu.h" // for display_menu
+#include "diversity_menu.h" // for diversity_menu
+#include "dsp_menu.h" // for dsp_menu
+#include "encoder_menu.h" // for encoder_menu
+#include "equalizer_menu.h" // for equalizer_menu
+#include "exit_menu.h" // for exit_menu
+#include "fft_menu.h" // for fft_menu
+#include "filter_menu.h" // for filter_menu
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "main.h" // for top_window, CONTROLLER1, CONTROLLER2_V1
+#include "meter_menu.h" // for meter_menu
+#include "mode_menu.h" // for mode_menu
+#include "nb_menu.h" // for nb_menu
+#include "noise_menu.h" // for noise_menu
+#include "oc_menu.h" // for oc_menu
+#include "pa_menu.h" // for pa_menu
+#include "radio.h" // for can_transmit, protocol, RECEIVERS, n_adc
+#include "radio_menu.h" // for radio_menu
+#include "rigctl_menu.h" // for rigctl_menu
+#include "rx_menu.h" // for rx_menu
+#include "step_menu.h" // for step_menu
+#include "store_menu.h" // for store_menu
+#include "switch_menu.h" // for switch_menu
+#include "toolbar_menu.h" // for toolbar_menu
+#include "tx_menu.h" // for tx_menu
+#include "vfo_menu.h" // for vfo_menu
+#include "vox_menu.h" // for vox_menu
+#include "xvtr_menu.h" // for xvtr_menu
static GtkWidget *dialog=NULL;
+#include <gtk/gtk.h>
+
extern GtkWidget *sub_menu;
extern void new_menu();
//#define ECHO_MIC
-#include <gtk/gtk.h>
-
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <semaphore.h>
-#include <math.h>
-#include <sys/select.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "alex.h"
-#include "audio.h"
-#include "band.h"
#include "new_protocol.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "signal.h"
-#include "vfo.h"
-#include "toolbar.h"
-#include "vox.h"
-#include "ext.h"
-#include "iambic.h"
+#include <arpa/inet.h> // for inet_ntoa
+#include <errno.h> // for errno
+#include <glib.h> // for g_print, gpointer, g_thread_new, GThread
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <math.h> // for sqrt
+#include <netinet/in.h> // for sockaddr_in, htons, ntohs, IPPROTO_UDP
+#include <pthread.h> // for pthread_mutex_lock, pthread_mutex_unlock
+#include <semaphore.h> // for sem_init, sem_post, sem_wait, sem_t
+#include <stdio.h> // for NULL
+#include <stdlib.h> // for exit, free, malloc, abort
+#include <string.h> // for memset, memcpy
+#include <sys/select.h> // for select, FD_SET, FD_ZERO, fd_set
+#include <sys/socket.h> // for sendto, recvfrom, setsockopt, bind, socket
+#include <sys/time.h> // for timeval, gettimeofday
+#include <unistd.h> // for usleep, close
+#include "adc.h" // for ADC
+#include "alex.h" // for ALEX_RX_ANTENNA_BYPASS, ALEX_RX_ANTENNA_EXT1
+#include "audio.h" // for audio_get_next_mic_sample, audio_open_input
+#include "band.h" // for band_get_band, BAND
+#include "discovered.h" // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "ext.h" // for ext_mox_update
+#include "iambic.h" // for keyer_event
+#include "mode.h" // for modeCWL, modeCWU
+#include "radio.h" // for isTransmitting, radio, receiver, transmitter
+#include "receiver.h" // for RECEIVER, add_iq_samples, add_div_iq_samples
+#include "transmitter.h" // for TRANSMITTER, add_mic_sample, add_ps_iq_samples
+#include "vfo.h" // for _vfo, vfo, get_tx_mode, get_tx_vfo, VFO_A
#define min(x,y) (x<y?x:y)
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <sys/stat.h>
-#include <ifaddrs.h>
-#include <pthread.h>
-#include <semaphore.h>
-#include <time.h>
-#include <math.h>
-#include <errno.h>
-
-#include <gtk/gtk.h>
-
-#include "discovered.h"
-#include "new_protocol.h"
+#include <errno.h> // for errno, ETIMEDOUT
+#include <netinet/in.h> // for sockaddr_in, htons
+#include <pthread.h> // for pthread_create, pthread_t
+#include <semaphore.h> // for sem_timedwait
+#include <stdio.h> // for fprintf, stderr, fseek, NULL, fclose, fopen
+#include <stdlib.h> // for exit, malloc
+#include <string.h> // for memcpy, memset
+#include <sys/socket.h> // for sendto
+#include <time.h> // for clock_gettime, timespec, CLOCK_REALTIME
+#include "discovered.h" // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "new_protocol.h" // for response, response_sem, data_socket, PROGR...
static long sequence;
static long block_sequence;
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
#include "noise_menu.h"
-#include "channel.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, g_idle_add, gboolean
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <stdio.h> // for NULL, sprintf
+#include <wdsp.h> // for SetEXTANBAdvtime, SetEXTANBHangtime
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for _mode_settings, _vfo, mode_settings, vfo
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void noise_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "oc_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "new_protocol.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, g_print, gboolean, FALSE, TRUE
+#include <glib/gtypes.h> // for GPOINTER_TO_UINT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL, fprintf, sprintf, stderr
+#include <string.h> // for strlen
+#include "band.h" // for BAND, band_get_band, BANDS, band10, band6
+#include "discovered.h" // for NEW_PROTOCOL, DEVICE_HERMES_LITE, DEVI...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for schedule_high_priority
+#include "radio.h" // for OCtune, protocol, OCfull_tune_time
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void oc_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/select.h>
-
-#include "discovered.h"
-#include "discovery.h"
#include "old_discovery.h"
-#include "log.h"
+#include <arpa/inet.h> // for inet_ntoa, inet_aton
+#include <errno.h> // for errno, EINPROGRESS
+#include <fcntl.h> // for fcntl, F_SETFL, O_NONBLOCK, F_GETFL
+#include <glib.h> // for gpointer, g_main_context_iteration, g_thread...
+#include <ifaddrs.h> // for ifaddrs, freeifaddrs, getifaddrs
+#include <net/if.h> // for IFF_RUNNING, IFF_UP
+#include <netinet/in.h> // for sockaddr_in, in_addr, htons, INADDR_BROADCAST
+#include <stdio.h> // for perror, NULL, size_t
+#include <stdlib.h> // for exit
+#include <string.h> // for strcpy, memcpy, memset, strerror
+#include <sys/select.h> // for timeval, select, FD_SET, FD_ZERO, fd_set
+#include <sys/socket.h> // for setsockopt, socket, AF_INET, SOL_SOCKET, bind
+#include <unistd.h> // for close
+#include "discovered.h" // for DISCOVERED, discovered, devices, _DISCOVERED...
+#include "discovery.h" // for ipaddr_tcp
+#include "log.h" // for log_trace, log_error, log_debug
static char interface_name[64];
static struct sockaddr_in interface_addr={0};
*
*/
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <semaphore.h>
-#include <string.h>
-#include <errno.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "audio.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
#include "old_protocol.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "signal.h"
-#include "toolbar.h"
-#include "vfo.h"
-#include "ext.h"
-#include "iambic.h"
-#include "error_handler.h"
-#include "log.h"
+#include <arpa/inet.h> // for inet_ntoa
+#include <errno.h> // for errno, EAGAIN
+#include <glib.h> // for gpointer, g_idle_add, g_thread_new, GThread
+#include <math.h> // for sqrt
+#include <netinet/in.h> // for sockaddr_in, htons, ntohs, IPPROTO_UDP
+#include <stdint.h> // for uint32_t
+#include <stdio.h> // for perror, NULL, size_t
+#include <stdlib.h> // for exit
+#include <string.h> // for memcpy, strerror
+#include <sys/socket.h> // for setsockopt, SOL_SOCKET, recvfrom, sendto
+#include <sys/time.h> // for timeval, gettimeofday
+#include <unistd.h> // for usleep, close
+#include "adc.h" // for ADC
+#include "audio.h" // for audio_get_next_mic_sample, audio_open_input
+#include "band.h" // for band_get_band, BAND, band_get_current, band...
+#include "discovered.h" // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "ext.h" // for ext_mox_update
+#include "iambic.h" // for keyer_event
+#include "log.h" // for log_error, log_trace, log_info, log_debug
+#include "mode.h" // for modeCWL, modeCWU
+#include "radio.h" // for isTransmitting, transmitter, receiver, device
+#include "receiver.h" // for RECEIVER, add_iq_samples, add_div_iq_samples
+#include "transmitter.h" // for TRANSMITTER, add_mic_sample, add_ps_iq_samples
+#include "vfo.h" // for _vfo, vfo, get_tx_vfo, get_tx_mode, VFO_A
#define min(x,y) (x<y?x:y)
}
// bind to the interface
- log_trace("binding UDP socket to %s:%d\n",inet_ntoa(radio->info.network.interface_address.sin_addr),ntohs(radio->info.network.interface_address.sin_port));
+ log_trace("binding UDP socket to %s:%d",inet_ntoa(radio->info.network.interface_address.sin_addr),ntohs(radio->info.network.interface_address.sin_port));
if(bind(tmp,(struct sockaddr*)&radio->info.network.interface_address,radio->info.network.interface_length)<0) {
log_error("old_protocol: bind socket failed for data_socket: %s", strerror(errno));
exit(-1);
#ifndef _OLD_PROTOCOL_H
#define _OLD_PROTOCOL_H
+#include "receiver.h" // for RECEIVER
+
extern void old_protocol_stop();
extern void old_protocol_run();
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "pa_menu.h"
-#include "band.h"
-#include "radio.h"
-#include "vfo.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for FALSE, TRUE, gpointer, gboolean, g_print
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_combo_...
+#include <stdio.h> // for NULL, sprintf
+#include <string.h> // for strlen
+#include "band.h" // for BAND, band_get_band, BANDS, band10, band6
+#include "discovered.h" // for DEVICE_HERMES_LITE, DEVICE_HERMES_LITE2
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for pa_trim, pa_power, calcDriveLevel, tx_...
+#include "vfo.h" // for get_tx_vfo, _vfo, vfo
static GtkWidget *parent_window=NULL;
*/
#include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
extern void pa_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include "property.h"
-#include "log.h"
+#include <stdio.h> // for NULL, fclose, fopen, sprintf, fgets, fwrite, FILE
+#include <stdlib.h> // for malloc, free, atof
+#include <string.h> // for strlen, strcpy, strcmp, strtok
+#include "log.h" // for log_error
PROPERTY* properties=NULL;
#define PROPERTY_VERSION 3.0
+struct _PROPERTY;
typedef struct _PROPERTY PROPERTY;
/* --------------------------------------------------------------------------*/
*
*/
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include "protocols.h"
-#include "property.h"
-
+#include <gdk/gdk.h> // for GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_check_...
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for atoi, NULL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "property.h" // for getProperty, setProperty, clearProperties
static GtkWidget *dialog;
*
*/
+#include <glib.h> // for gboolean
+#include <gtk/gtk.h> // for GtkWidget
+
extern gboolean enable_protocol_1;
extern gboolean enable_protocol_2;
extern gboolean autostart;
*
*/
-#include <arpa/inet.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "adc.h"
-#include "audio.h"
-#include "dac.h"
-#include "discovered.h"
-// #include "discovery.h"
-#include "actions.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "gpio.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
#include "radio.h"
-#include "receiver.h"
-#include "rigctl.h"
-#include "rx_panadapter.h"
-#include "screen.h"
-#include "sliders.h"
-#include "store.h"
-#include "toolbar.h"
-#include "transmitter.h"
-#include "tx_panadapter.h"
-#include "vfo.h"
-#include "vox.h"
-#include "waterfall.h"
-#include "zoompan.h"
-#include "log.h"
-
-#ifdef LOCALCW
-#include "iambic.h"
-#endif
-#ifdef MIDI
-#include "alsa_midi.h"
-#include "midi_menu.h"
-// rather than including MIDI.h with all its internal stuff
-// (e.g. enum components) we just declare the single bit thereof
-// we need here to make a strict compiler happy.
-// extern void MIDIstartup();
-#endif
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <arpa/inet.h> // for inet_ntoa
+#include <gdk/gdk.h> // for gdk_cursor_new, gdk_window_set_cursor
+#include <glib-object.h> // for g_object_ref, g_signal_connect
+#include <gtk/gtk.h> // for gtk_fixed_put, gtk_container_remove
+#include <math.h> // for fmin, pow, exp, log10, sqrt
+#include <netinet/in.h> // for sockaddr_in
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atoi, atof, atoll
+#include <string.h> // for strcpy
+#include <sys/time.h> // for gettimeofday, timeval
+#include <unistd.h> // for usleep
+#include <wdsp.h> // for SetChannelState, CloseChannel, SetTXAP...
+#include "adc.h" // for ADC, ANTENNA_1, AUTOMATIC, HPF_13, HPF...
+#include "band.h" // for bandstack60, get_band_from_frequency
+#include "bandstack.h" // for BANDSTACK
+#include "channel.h" // for CHANNEL_TX
+#include "dac.h" // for DAC
+#include "discovered.h" // for DISCOVERED, NEW_PROTOCOL, _DISCOVERED:...
+#include "ext.h" // for ext_vfo_update
+#include "filter.h" // for filterRestoreState, filterSaveState
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for gpio_init, gpio_restore_actions, gpio_...
+#include "iambic.h" // for keyer_update
+#include "log.h" // for log_trace, log_error
+#include "main.h" // for display_width, top_window, display_height
+#include "meter.h" // for meter_init
+#include "mode.h" // for modeUSB, modeCWL, modeCWU, modeLSB
+#include "new_menu.h" // for new_menu
+#include "new_protocol.h" // for schedule_high_priority, schedule_recei...
+#include "old_protocol.h" // for old_protocol_run, old_protocol_stop
+#include "pango/pango-font.h" // for pango_font_description_from_string
+#include "property.h" // for setProperty, getProperty, clearProperties
+#include "receiver.h" // for RECEIVER, set_displaying, set_offset
+#include "rigctl.h" // for close_rigctl_ports, launch_rigctl, lau...
+#include "screen.h" // for SLIDERS_HEIGHT, ZOOMPAN_HEIGHT, TOOLBA...
+#include "sliders.h" // for sliders_init, att_type_changed
+#include "store.h" // for memRestoreState, memSaveState
+#include "toolbar.h" // for toolbar_init
+#include "transmitter.h" // for TRANSMITTER, tx_set_mode, create_trans...
+#include "vfo.h" // for _vfo, vfo, get_tx_mode, get_tx_vfo
+#include "vox.h" // for vox_cancel
+#include "zoompan.h" // for zoompan_init
#define min(x, y) (x < y ? x : y)
#define max(x, y) (x < y ? y : x)
#ifndef _RADIO_H
#define _RADIO_H
-#include "adc.h"
-#include "dac.h"
-#include "discovered.h"
-#include "receiver.h"
-#include "transmitter.h"
+#include <glib.h> // for gboolean, gint, GMutex
+#include <gtk/gtk.h> // for GtkWidget
+#include "adc.h" // for ADC
+#include "dac.h" // for DAC
+#include "discovered.h" // for DISCOVERED
+#include "receiver.h" // for RECEIVER
+#include "transmitter.h" // for TRANSMITTER
#define NEW_MIC_IN 0x00
#define NEW_LINE_IN 0x01
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovered.h"
-#include "new_menu.h"
#include "radio_menu.h"
-#include "adc.h"
-#include "band.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "vfo.h"
-#include "ext.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, g_idle_add, FALSE, gboolean
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdio.h> // for NULL
+#include "band.h" // for band_get_band, BAND, band_get_current_...
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DISCO...
+#include "ext.h" // for ext_vfo_update, ext_split_toggle
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "main.h" // for display_width, display_height
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for filter_board_changed, schedule_high_pr...
+#include "radio.h" // for filter_board, protocol, active_receiver
+#include "receiver.h" // for RECEIVER
+#include "sliders.h" // for att_type_changed
+#include "transmitter.h" // for reconfigure_transmitter, TRANSMITTER
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
*
*/
+#include <gtk/gtk.h> // for GtkWidget
+
extern void radio_menu(GtkWidget *parent);
extern void setDuplex(void);
extern void load_filters(void);
*
*/
-#include <gtk/gtk.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "agc.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "discovered.h"
-#include "ext.h"
-#include "filter.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
-#include "radio.h"
#include "receiver.h"
-#include "rx_panadapter.h"
-#include "sliders.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "waterfall.h"
-#include "zoompan.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "log.h"
+#include <glib-object.h> // for g_object_weak_ref, G_OBJECT, GObject
+#include <gtk/gtk.h> // for gtk_fixed_put, gtk_widget_set_size_request
+#include <math.h> // for ceil, fmax
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atoi, atof, malloc
+#include <string.h> // for strcpy, strlen
+#include <wdsp.h> // for SetRXAAGCAttack, SetRXAAGCDecay, SetRXAAG...
+#include "agc.h" // for AGC_MEDIUM, AGC_FAST, AGC_LONG, AGC_OFF
+#include "audio.h" // for audio_open_output, audio_write
+#include "band.h" // for BAND, band_get_band
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVICE_H...
+#include "ext.h" // for ext_start_rx, ext_vfo_update
+#include "filter.h" // for FILTER, filters
+#include "log.h" // for log_trace, log_debug, log_error
+#include "meter.h" // for meter_update, SMETER
+#include "mode.h" // for modeCWL, modeCWU, modeFMN
+#include "new_menu.h" // for menu_active_receiver_changed
+#include "new_protocol.h" // for new_protocol_audio_samples, schedule_high...
+#include "old_protocol.h" // for old_protocol_audio_samples
+#include "property.h" // for getProperty, setProperty
+#include "radio.h" // for active_receiver, isTransmitting, cw_keyer...
+#include "rx_panadapter.h" // for rx_panadapter_init, rx_panadapter_update
+#include "sliders.h" // for sliders_active_receiver_changed
+#include "transmitter.h" // for tx_set_filter, tx_set_mode, TRANSMITTER
+#include "vfo.h" // for _vfo, vfo, vfo_move, vfo_step, get_tx_mode
+#include "waterfall.h" // for waterfall_init, waterfall_update
+#include "zoompan.h" // for set_pan, zoompan_active_receiver_changed
#define min(x, y) (x < y ? x : y)
#define max(x, y) (x < y ? y : x)
#ifndef _RECEIVER_H
#define _RECEIVER_H
-#include <gtk/gtk.h>
-#ifdef PORTAUDIO
-#include "portaudio.h"
-#else
-#include <pulse/pulseaudio.h>
-#include <pulse/simple.h>
-#endif
+#include <gdk-pixbuf/gdk-pixbuf.h> // for GdkPixbuf
+#include <gdk/gdk.h> // for GdkEventButton, GdkEventMotion
+#include <glib.h> // for gint, gdouble, gboolean, gpointer
+#include <glib/gtypes.h> // for gint64, guint32
+#include <gtk/gtk.h> // for GtkWidget
+#include <pulse/simple.h> // for pa_simple
+#include "cairo.h" // for cairo_surface_t
enum _audio_t {
STEREO=0,
* greatly with hamlib integration!
*/
-#include <stdbool.h>
-
-#include <errno.h>
-#include <fcntl.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
-// #include <semaphore.h>
-#include "agc.h"
-#include "band.h"
-#include "band_menu.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "filter_menu.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "noise_menu.h"
-#include "old_protocol.h"
-#include "radio.h"
-#include "receiver.h"
#include "rigctl.h"
-#include "rigctl_menu.h"
-#include "rx_menu.h"
-#include "sliders.h"
-#include "store.h"
-#include "toolbar.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "zoompan.h"
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <wdsp.h>
-#ifdef LOCALCW
-#include "iambic.h" // declare keyer_update()
-#endif
-#include <math.h>
-#include "log.h"
+#include <termios.h>
+#include <errno.h> // for errno
+#include <fcntl.h> // for fcntl, O_NONBLOCK, open, F_GETFL
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <math.h> // for fmin, fmax, round
+#include <netinet/in.h> // for sockaddr_in, INADDR_ANY, htons
+#include <stdbool.h> // for false, true, bool
+#include <stdio.h> // for sprintf, NULL, perror, FILE, ssize_t
+#include <stdlib.h> // for atoi, strtol, atoll, abs, atof
+#include <string.h> // for strcpy, strerror, strncpy, memset
+#include <sys/socket.h> // for setsockopt, linger, SOL_SOCKET
+#include <termios.h> // for tcgetattr, tcsetattr, cc_t, cfseti...
+#include <unistd.h> // for usleep, close, _exit, read, write
+#include <wdsp.h> // for SetRXAANFRun
+#include "adc.h" // for ADC
+#include "band.h" // for band20, band10, band12, band136
+#include "discovered.h" // for ORIGINAL_PROTOCOL
+#include "ext.h" // for local_set_frequency, band_minus
+#include "filter.h" // for FILTER, filterVar1, filters, FILTERS
+#include "iambic.h" // for keyer_update
+#include "log.h" // for log_error, log_debug, log_trace
+#include "mode.h" // for modeLSB, modeAM, modeCWL, modeCWU
+#include "new_menu.h" // for start_bandstack
+#include "new_protocol.h" // for new_protocol_stop
+#include "noise_menu.h" // for update_noise
+#include "old_protocol.h" // for old_protocol_stop
+#include "radio.h" // for receiver, active_receiver, transmi...
+#include "receiver.h" // for RECEIVER, set_agc
+#include "rigctl_menu.h" // for rigctl_debug, ser_port, disable_se...
+#include "rx_menu.h" // for toggle_audio_output_device
+#include "sliders.h" // for update_af_gain, set_agc_gain, set_...
+#include "toolbar.h" // for mox_update, tune_update
+#include "transmitter.h" // for TRANSMITTER, tx_set_mode, cw_not_r...
+#include "vfo.h" // for _vfo, vfo_update, vfo, VFO_A, vfo_...
+#include "zoompan.h" // for set_zoom
#define NEW_PARSER
#ifndef RIGCTL_H
#define RIGCTL_H
-#include <stdbool.h>
+#include <glib.h> // for gpointer
+#include <stdbool.h> // for bool
+#include <stdint.h> // for uint32_t
void launch_rigctl ();
int launch_serial ();
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
-
-#include "new_menu.h"
#include "rigctl_menu.h"
-#include "rigctl.h"
-#include "band.h"
-#include "radio.h"
-#include "vfo.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL
+#include <string.h> // for strcpy
+#include <termios.h> // for B9600, B19200, B38400, B4800
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace, log_debug
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for disable_rigctl
+#include "rigctl.h" // for launch_rigctl, launch_serial, rigctl_e...
gboolean serial_enable = TRUE; // edit (enable serial at startup)
char ser_port[64]="/dev/ttyACM0";
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
+#include <glib.h> // for gboolean
+#include <gtk/gtk.h> // for GtkWidget
extern void rigctl_menu(GtkWidget *parent);
extern char ser_port[];
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
-#include "band.h"
-#include "discovered.h"
-#include "filter.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "radio.h"
-#include "receiver.h"
#include "rx_menu.h"
-#include "sliders.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, g_malloc, g_free, g_malloc_n
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdint.h> // for intptr_t
+#include <stdio.h> // for NULL, sprintf, size_t
+#include <string.h> // for strcpy, strlen, strcmp
+#include "audio.h" // for AUDIO_DEVICE, audio_close_output, audi...
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace, log_error
+#include "new_menu.h" // for sub_menu
+#include "new_protocol.h" // for schedule_high_priority
+#include "radio.h" // for active_receiver, protocol, device, set...
+#include "receiver.h" // for RECEIVER, receiver_change_adc, receive...
+#include "sliders.h" // for update_att_preamp
static GtkWidget *parent_window = NULL;
static GtkWidget *dialog = NULL;
*
*/
+#include <gtk/gtk.h> // for GtkWidget
+
extern void rx_menu(GtkWidget *parent);
extern void toggle_audio_output_device(void);
*
*/
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
#include "rx_panadapter.h"
-#include "vfo.h"
-#include "mode.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h> // for gdk_window_create_similar_surface, Gdk...
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gboolean, gpointer, gfloat, FALSE, TRUE
+#include <gtk/gtk.h> // for GtkWidget, gtk_widget_get_allocated_he...
+#include <math.h> // for floor
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for abs, NULL
+#include "adc.h" // for ADC
+#include "agc.h" // for AGC_FAST, AGC_MEDIUM, AGC_OFF
+#include "band.h" // for BAND, CHANNEL, band_channels_60m, band...
+#include "cairo.h" // for cairo_move_to, cairo_set_source_rgb
+#include "discovered.h" // for DEVICE_HERMES_LITE2, ORIGINAL_PROTOCOL
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for modeCWL, modeCWU
+#include "radio.h" // for adc, filter_board, ALEX, cw_keyer_side...
+#include "receiver.h" // for RECEIVER, receiver_button_press_event
+#include "vfo.h" // for _vfo, vfo
#define LINE_WIDTH 0.5
#ifndef _PANADAPTER_H
#define _PANADAPTER_H
+#include "receiver.h" // for RECEIVER
+
void rx_panadapter_update(RECEIVER* rx);
void rx_panadapter_init(RECEIVER *rx,int width,int height);
//#define COMPRESSION_SLIDER_INSTEAD_OF_SQUELCH 1
//
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "receiver.h"
#include "sliders.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "band.h"
-#include "discovered.h"
-#include "new_protocol.h"
-#include "vfo.h"
-#include "alex.h"
-#include "agc.h"
-#include "channel.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "transmitter.h"
-#include "property.h"
-#include "main.h"
-#include "ext.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "actions.h"
-#include "log.h"
+#include <glib-object.h> // for g_signal_connect, G_OBJECT
+#include <gtk/gtk.h> // for gtk_range_set_value, gtk_widget_show
+#include <math.h> // for pow
+#include <stdio.h> // for NULL, sprintf
+#include <stdlib.h> // for atoi, free
+#include "actions.h" // for AF_GAIN, AGC_GAIN, ATTENUATION, COMPRE...
+#include "adc.h" // for ADC
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace
+#include "main.h" // for top_window
+#include "pango/pango-font.h" // for pango_font_description_from_string
+#include "radio.h" // for active_receiver, adc, receiver, displa...
+#include "receiver.h" // for RECEIVER
+#include "transmitter.h" // for TRANSMITTER
+#include "wdsp.h" // for GetRXAAGCHangLevel, GetRXAAGCThresh
static int width;
static int height;
#ifndef _SLIDERS_H
#define _SLIDERS_H
-// include these since we are using RECEIVER and TRANSMITTER
-#include "receiver.h"
-#include "transmitter.h"
+#include <glib.h> // for gint, gpointer
+#include <gtk/gtk.h> // for GtkWidget
+#include "transmitter.h" // for TRANSMITTER
enum {
NO_FUNCTION=0,
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "radio.h"
-#include "vfo.h"
-#include "ext.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, TRUE, g_idle_add, gboolean
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for GtkWidget, gtk_grid_attach, GTK_GRID
+#include <stdio.h> // for NULL
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu
+#include "pango/pango-font.h" // for pango_font_description_from_string
+#include "radio.h" // for step
+#include "vfo.h" // for step_labels, steps, STEPS
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h>
extern void step_menu(GtkWidget *parent);
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "bandstack.h"
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "alex.h"
-#include "property.h"
#include "store.h"
-#include "store_menu.h"
-#include "log.h"
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for atoi, atoll
+#include <string.h> // for strcpy, strlen
+#include "filter.h" // for filterF0
+#include "log.h" // for log_trace
+#include "mode.h" // for modeCWU
+#include "property.h" // for getProperty, setProperty
+#include "store_menu.h" // for NUM_OF_MEMORYS
/*
struct MEM {
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
#include "store_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "rigctl.h"
-#include "band.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "store.h"
-#include "ext.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, gboolean, FALSE, TRUE, g_idl...
+#include <glib/gtypes.h> // for GPOINTER_TO_INT
+#include <gtk/gtk.h> // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h> // for sprintf, NULL
+#include <string.h> // for strcpy
+#include "band.h" // for get_band_from_frequency
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_debug, log_trace
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for active_receiver
+#include "receiver.h" // for RECEIVER
+#include "store.h" // for MEM, mem, memSaveState
+#include "vfo.h" // for _vfo, vfo, vfo_filter_changed, vfo_mod...
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+
#define NUM_OF_MEMORYS 5
+
+#include <gtk/gtk.h> // for GtkWidget
+
extern void store_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "toolbar.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h> // for GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gint, gpointer, TRUE, g_print, gboolean
+#include <glib/gprintf.h> // for g_sprintf
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for gtk_button_new_with_label, gtk_grid_at...
+#include <stdio.h> // for NULL
+#include "action_dialog.h" // for action_dialog
+#include "actions.h" // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for SWITCH, switches_controller1, MAX_FUNC...
+#include "main.h" // for controller, CONTROLLER1, NO_CONTROLLER
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "toolbar.h" // for update_toolbar_labels
static GtkWidget *parent_window=NULL;
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "actions.h"
-#include "gpio.h"
#include "toolbar.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "band.h"
-#include "discovered.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "vfo.h"
-#include "alex.h"
-#include "agc.h"
-#include "channel.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "property.h"
-#include "new_menu.h"
-#include "button_text.h"
-#include "ext.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "log.h"
+#include <gdk/gdk.h> // for GdkRGBA
+#include <glib-object.h> // for G_OBJECT, g_signal_connect
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h> // for NULL
+#include "actions.h" // for ACTION_TABLE, ActionTable, PROCESS_ACTION
+#include "band.h" // for canTransmit
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for SWITCH, switches_controller1
+#include "log.h" // for log_trace
+#include "new_menu.h" // for start_agc, start_band, start_bandstack
+#include "radio.h" // for setTune, setMox, getMox, getTune, tran...
+#include "receiver.h" // for set_offset, RECEIVER
+#include "transmitter.h" // for transmitter_set_out_of_band
+#include "vfo.h" // for _vfo, vfo
int function=0;
#ifndef _TOOLBAR_H
#define _TOOLBAR_H
-#include "gpio.h"
+#include <glib.h> // for gpointer
+#include <gtk/gtk.h> // for GtkWidget
+#include "gpio.h" // for SWITCH
+
#define MAX_FUNCTION 5
extern int function;
*
*/
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "toolbar.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h> // for GdkEvent
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gint, gpointer, TRUE, FALSE, gboolean
+#include <glib/gprintf.h> // for g_sprintf
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h> // for NULL
+#include "action_dialog.h" // for action_dialog
+#include "actions.h" // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "gpio.h" // for SWITCH, switches_controller1, MAX_FUNC...
+#include "main.h" // for top_window
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "toolbar.h" // for update_toolbar_labels
static GtkWidget *dialog=NULL;
static SWITCH *temp_switches;
*
*/
-#include <gtk/gtk.h>
-#include <math.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <wdsp.h>
-
-#include "alex.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "log.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
-#include "radio.h"
-#include "receiver.h"
-#include "toolbar.h"
#include "transmitter.h"
-#include "tx_panadapter.h"
-#include "vfo.h"
-#include "vox.h"
-#include "waterfall.h"
+#include <gdk/gdk.h> // for gdk_threads_add_timeout_full, GDK_KEY_...
+#include <glib-object.h> // for g_signal_connect, g_object_ref
+#include <glib/gtypes.h> // for GINT_TO_POINTER
+#include <gtk/gtk.h> // for gtk_widget_set_size_request, GTK_WINDOW
+#include <math.h> // for ceil, floor, sin, pow, sqrt
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atoi, atof, atoll
+#include <string.h> // for strcpy, strlen
+#include <wdsp.h> // for SetTXAPostGenRun, SetTXAAMCarrierLevel
+#include "alex.h" // for ALEX_TX_ANTENNA_1
+#include "audio.h" // for cw_audio_write
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "ext.h" // for ext_vfo_update, ext_mox_update
+#include "filter.h" // for FILTER, filters
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace, log_error, log_warn
+#include "main.h" // for display_width, keypress_cb, display_he...
+#include "meter.h" // for meter_update, POWER
+#include "mode.h" // for modeCWL, modeCWU, modeDIGL, modeFMN
+#include "new_protocol.h" // for new_protocol_iq_samples, new_protocol_...
+#include "old_protocol.h" // for old_protocol_iq_samples, old_protocol_...
+#include "property.h" // for getProperty, setProperty
+#include "radio.h" // for transmitter, protocol, active_receiver
+#include "receiver.h" // for RECEIVER
+#include "tx_panadapter.h" // for tx_panadapter_init, tx_panadapter_update
+#include "vfo.h" // for get_tx_mode, _vfo, vfo
+#include "vox.h" // for update_vox
double getNextSideToneSample();
double getNextInternalSideToneSample();
#ifndef _TRANSMITTER_H
#define _TRANSMITTER_H
-#include <gtk/gtk.h>
+#include <glib.h> // for gint, gboolean, gchar
+#include <gtk/gtk.h> // for GtkWidget
+#include "cairo.h" // for cairo_surface_t
#define CTCSS_FREQUENCIES 38
extern double ctcss_frequencies[CTCSS_FREQUENCIES];
*
*/
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "sliders.h"
-#include "transmitter.h"
-#include "ext.h"
-#include "filter.h"
-#include "mode.h"
-#include "vfo.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gpointer, g_malloc, g_idle_add, g_mall...
+#include <gtk/gtk.h> // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h> // for NULL, sprintf
+#include <string.h> // for strcpy, strlen, strcmp
+#include "audio.h" // for AUDIO_DEVICE, input_devices, audio_clo...
+#include "discovered.h" // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "ext.h" // for ext_sliders_update, ext_vfo_update
+#include "filter.h" // for FILTER, filters
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for modeFMN
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for transmitter, tx_filter_high, tx_filter...
+#include "receiver.h" // for RECEIVER
+#include "transmitter.h" // for TRANSMITTER, tx_set_filter, transmitte...
+#include "vfo.h" // for _vfo, vfo
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
extern void tx_menu(GtkWidget *parent);
extern void set_tune(double value);
*
*/
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <stdbool.h>
-#include <wdsp.h>
-
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
#include "tx_panadapter.h"
-#include "vfo.h"
-#include "mode.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "ext.h"
-#include "new_menu.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkEventButton, GdkEventMotion, gdk_wi...
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for TRUE, gboolean, FALSE, gpointer, g_idl...
+#include <gtk/gtk.h> // for gtk_widget_get_allocated_width, GtkWidget
+#include <math.h> // for floor
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for abs, NULL
+#include "band.h" // for BAND, band_get_band
+#include "cairo.h" // for cairo_move_to, cairo_set_source_rgb
+#include "discovered.h" // for DEVICE_HERMES_LITE2, ORIGINAL_PROTOCOL
+#include "ext.h" // for ext_start_tx
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace
+#include "mode.h" // for modeCWL, modeCWU
+#include "radio.h" // for transmitter, cw_keyer_sidetone_frequency
+#include "transmitter.h" // for TRANSMITTER
+#include "vfo.h" // for vfo_move, _vfo, vfo, get_tx_mode, get_...
static gint last_x;
static gboolean has_moved=FALSE;
#ifndef _PANADAPTER_H
#define _PANADAPTER_H
+#include "transmitter.h" // for TRANSMITTER
+
void tx_panadapter_update(TRANSMITTER *tx);
void tx_panadapter_init(TRANSMITTER *tx,int width,int height);
*
*/
-#include <arpa/inet.h>
-#include <ifaddrs.h>
-#include <math.h>
-#include <net/if.h>
-#include <net/if_arp.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <gtk/gtk.h>
-
-#include "agc.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "discovered.h"
-#include "filter.h"
-#include "main.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "property.h"
-#include "radio.h"
-#include "receiver.h"
-#include "rigctl.h"
-#include "toolbar.h"
-#include "transmitter.h"
#include "vfo.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "ext.h"
-#include "screen.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkEventButton, gdk_window_create_simi...
+#include <glib-object.h> // for g_signal_connect
+#include <gtk/gtk.h> // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <stdio.h> // for sprintf
+#include <stdlib.h> // for atoi, malloc, NULL, atoll, free, size_t
+#include <string.h> // for memset, strncpy, strlen
+#include <sys/types.h> // for uint
+#include "band.h" // for BAND, band_get_band, bandstack_get_ban...
+#include "bandstack.h" // for BANDSTACK_ENTRY, BANDSTACK
+#include "cairo.h" // for cairo_set_source_rgb, cairo_show_text
+#include "discovered.h" // for NEW_PROTOCOL
+#include "ext.h" // for ext_vfo_update, ext_update_noise
+#include "filter.h" // for FILTER, filterF6, filters
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace, log_debug
+#include "mode.h" // for modeCWU, modeCWL, mode_string, MODES
+#include "new_menu.h" // for start_vfo
+#include "new_protocol.h" // for schedule_general, schedule_high_priority
+#include "property.h" // for getProperty, setProperty
+#include "radio.h" // for active_receiver, receiver, step, recei...
+#include "receiver.h" // for RECEIVER, receiver_frequency_changed
+#include "screen.h" // for widget_props_t, colour_t, default_widg...
+#include "transmitter.h" // for tx_set_mode, TRANSMITTER
static GtkWidget *parent_window;
static int my_width;
#ifndef _VFO_H
#define _VFO_H
-#include "mode.h"
+#include <glib.h> // for gboolean
+#include <glib/gtypes.h> // for gint64
+#include <gtk/gtk.h> // for GtkWidget
enum { VFO_A = 0, VFO_B, MAX_VFOS };
*
*/
-#include <gtk/gtk.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <wdsp.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <ctype.h> // for isdigit
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for g_idle_add, gpointer, g_malloc, gchar
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_label_...
+#include <stdio.h> // for sprintf, NULL
+#include <stdlib.h> // for atof
+#include <string.h> // for strcmp, strcpy, strlen
+#include "button_text.h" // for set_button_text_color
+#include "ext.h" // for ext_vfo_update, ext_set_frequency
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "new_menu.h" // for sub_menu, NO_MENU, active_menu
+#include "radio.h" // for locked, rit_increment, active_receiver
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for SET_FREQUENCY, steps, STEPS, step_labels
static GtkWidget *parent_window=NULL;
static gint v;
*
*/
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "radio.h"
-#include "transmitter.h"
#include "vox.h"
-#include "vfo.h"
-#include "ext.h"
+#include <glib.h> // for g_idle_add, g_source_remove, g_timeout_add
+#include <glib/gtypes.h> // for GINT_TO_POINTER
+#include <stddef.h> // for NULL
+#include "ext.h" // for ext_vfo_update, ext_vox_changed
+#include "radio.h" // for vox_enabled, vox_hang, vox_threshold
+#include "transmitter.h" // for TRANSMITTER
static guint vox_timeout=0;
*
*/
+#include "transmitter.h" // for TRANSMITTER
+
extern void update_vox(TRANSMITTER *tx);
extern void vox_cancel();
extern double vox_get_peak();
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "led.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "transmitter.h"
-#include "vfo.h"
#include "vox_menu.h"
-#include "vox.h"
-#include "ext.h"
-#include "log.h"
+#include <glib-object.h> // for g_signal_connect, G_OBJECT
+#include <glib/gtypes.h> // for GINT_TO_POINTER
+#include <gtk/gtk.h> // for gtk_grid_attach, GtkWidget, gtk_widget...
+#include <stdio.h> // for NULL
+#include <unistd.h> // for usleep
+#include "ext.h" // for ext_vfo_update
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "led.h" // for led_set_color, create_led
+#include "log.h" // for log_debug
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for vox_enabled, vox_hang, vox_threshold
+#include "vox.h" // for vox_get_peak
static GtkWidget *parent_window=NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gdk/gdk.h> // for GdkEventButton
+#include <glib.h> // for gboolean, gpointer
+#include <gtk/gtk.h> // for GtkWidget
void vox_menu(GtkWidget *parent);
gboolean vox_cb (GtkWidget *widget, GdkEventButton *event, gpointer data);
*
*/
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <semaphore.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include "radio.h"
-#include "vfo.h"
#include "waterfall.h"
+#include <gdk-pixbuf/gdk-pixbuf.h> // for gdk_pixbuf_get_pixels, gdk_pixbuf...
+#include <gdk/gdk.h> // for gdk_cairo_set_source_pixbuf, GdkE...
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for gboolean, gpointer, FALSE, g_mute...
+#include <gtk/gtk.h> // for GtkWidget, gtk_drawing_area_new
+#include <string.h> // for memset, memmove, size_t, NULL
+#include "adc.h" // for ADC
+#include "cairo.h" // for cairo_paint, cairo_t
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "radio.h" // for adc, have_rx_gain, rx_gain_calibr...
+#include "vfo.h" // for _vfo, vfo
#ifdef CLIENT_SERVER
#include "client_server.h"
#ifndef _WATERFALL_H
#define _WATERFALL_H
+#include "receiver.h" // for RECEIVER
+
extern void waterfall_update(RECEIVER *rx);
extern void waterfall_init(RECEIVER *rx,int width,int height);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "vfo.h"
#include "xvtr_menu.h"
+#include <gdk/gdk.h> // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h> // for g_signal_connect
+#include <glib.h> // for FALSE, gpointer, TRUE, gboolean
+#include <glib/gtypes.h> // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h> // for GtkWidget, gtk_grid_attach, gtk_entry_...
+#include <stdio.h> // for NULL, sprintf
+#include <stdlib.h> // for atof, atoll
+#include <string.h> // for strcpy, strlen
+#include "band.h" // for BAND, band_get_band, BANDS, XVTRS
+#include "bandstack.h" // for BANDSTACK_ENTRY, BANDSTACK
+#include "filter.h" // for filterF6
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "mode.h" // for modeUSB
+#include "new_menu.h" // for sub_menu
+#include "radio.h" // for frequency_changed, active_receiver
+#include "receiver.h" // for RECEIVER
+#include "vfo.h" // for _vfo, vfo, vfo_xvtr_changed
static GtkWidget *parent_window = NULL;
static GtkWidget *dialog = NULL;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#include <gtk/gtk.h> // for GtkWidget
void xvtr_menu(GtkWidget *parent);
*
*/
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "receiver.h"
-#include "radio.h"
-#include "vfo.h"
-#include "sliders.h"
#include "zoompan.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "actions.h"
-#include "log.h"
+#include <gdk/gdk.h> // for GdkRGBA
+#include <glib-object.h> // for g_signal_handler_block, g_signal_handl...
+#include <glib.h> // for g_print, g_mutex_lock, g_mutex_unlock
+#include <gtk/gtk.h> // for gtk_range_set_value, GTK_RANGE, gtk_wi...
+#include <stdio.h> // for NULL, sprintf
+#include "actions.h" // for PAN, ZOOM
+#include "gobject/gclosure.h" // for G_CALLBACK
+#include "log.h" // for log_trace
+#include "main.h" // for top_window
+#include "pango/pango-font.h" // for pango_font_description_from_string
+#include "radio.h" // for active_receiver, receiver, display_zoo...
+#include "receiver.h" // for RECEIVER, receiver_change_pan, receive...
+#include "sliders.h" // for scale_status, scale_dialog, scale_time...
+#include "vfo.h" // for vfo_update
static int width;
static int height;
#ifndef _ZOOMPAN_H
#define _ZOOMPAN_H
+#include <gtk/gtk.h> // for GtkWidget
+
#define MAX_ZOOM 8
extern GtkWidget *zoompan_init(int my_width, int my_height);