⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 非常好用的gps数据读写接口
💻 C
字号:
/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */#ifdef HAVE_CONFIG_H#  include <config.h>#endif#include <gtk/gtk.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include "interface.h"#include "support.h"#include "phlayer.h"#include "llayer.h"#include "def.h"#include "convert.h"#include "datatypes.h"#include "device.h"#include "pvt.h"#include "almanac.h"#include "updategui.h"/* globals */int tty;Almanac_Type satinfo[ANZSAT];int timeouthandler[10];DeviceInfo garmingps;D600_Date_Time_Type utctime;char ttydevice[80]="/dev/ttyUSB0";intmain (int argc, char *argv[]){	unsigned int s;	char *gcommand;  GtkWidget *window1;#ifdef ENABLE_NLS  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");  textdomain (GETTEXT_PACKAGE);#endif  gtk_set_locale ();  gtk_init (&argc, &argv);	add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");	/*	* The following code was added by Glade to create one of each component	* (except popup menus), just so that you see something after building	* the project. Delete any components that you don't want shown initially.	*/	window1 = create_window1();	gtk_widget_show (window1);	tty=InitTTY();	updateGuiDeviceinfo((gpointer *)window1);	timeouthandler[pvt]=g_timeout_add(3000, (GtkFunction)updateGuiPvt, window1);	gtk_main ();	/* abort current transfer */	SendCommand(tty, "\x0a\x02\x0a\x00", 4);	//10 (\xa) command, 10 abort transf	gcommand=GetCommand(tty, &s);   //ack    	CloseTTY(tty);  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -