資源簡介
官方EC20 Linux驅動源碼 GObinet +移植手冊 +4G撥號程序源碼

代碼片段和文件信息
/*
?*?GSM?07.10?Implementation?with?User?Space?Serial?Ports
?*
?*?Code?heavily?based?on?gsmMuxd?written?by
?*?Copyright?(C)?2003?Tuukka?Karvonen?
?*?Modified?November?2004?by?David?Jander?
?*?Modified?January?2006?by?Tuukka?Karvonen?
?*?Modified?January?2006?by?Antti?Haapakoski?
?*?Modified?March?2006?by?Tuukka?Karvonen?
?*?Modified?October?2006?by?Vasiliy?Novikov?
?*
?*?Copyright?(C)?2008?M.?Dietrich?
?*?Modified?January?2009?by?Ulrik?Bech?Hald?
?*
?*?This?program?is?free?software;?you?can?redistribute?it?and/or
?*?modify?it?under?the?terms?of?the?GNU?General?Public?License
?*?as?published?by?the?Free?Software?Foundation;?either?version?2
?*?of?the?License?or?(at?your?option)?any?later?version.
?*
?*?This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.?See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*?along?with?this?program;?if?not?write?to?the?Free?Software
?*?Foundation?Inc.?59?Temple?Place?-?Suite?330?Boston?MA?02111-1307?USA.
?*/
#ifndef?_GNU_SOURCE
#define?_GNU_SOURCE
#endif
/*?If?compiled?with?the?MUX_ANDROID?flag?this?mux?will?be?enabled?to?run?under?Android?*/
/**************************/
/*?INCLUDES??????????????????????????*/
/**************************/
#include?
#include?
//#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#define?CMUX_DRIVER_VERSION?“Quectel_Linux_CMUX_Driver_V2.0.1“
//#define?XINGWANG_DEBUG
#ifdef?XINGWANG_DEBUG
//#include?“ct_linuxframwork_log.h“
#define?ct_linuxframwork_radiolog(lvl?tag?f?...)?do?{{fprintf(stderr“%d:%s():?“?f?“\n“?__LINE__?__FUNCTION__?##__VA_ARGS__);}}while(0)
#endif
#ifdef?MUX_ANDROID?//full?path?is?required?on?some?boards?i?donot?know?why
#define?MUX_CHN_DIR?“/data/misc/rild/“
int?ql_system(const?char?*?string)?{
????if?(system(string))?{
????????char?system_bin[100];
????????strcpy(system_bin?“/system/bin/“);
????????strcat(system_bin?string);
????????return?system(system_bin);
????}
????return?0;
}
#else
#define?MUX_CHN_DIR?“/dev/chn/“
#define?ql_system?system
#endif
/**************************/
/*?DEFINES????????????????????????????*/
/**************************/
/*Logging*/
#ifndef?MUX_ANDROID
#include?
//??#define?LOG(lvl?f?...)?do{if(lvl<=syslog_level)syslog(lvl“%s:%d:%s():?“?f?“\n“?__FILE__?__LINE__?__FUNCTION__?##__VA_ARGS__);}while(0)
#ifdef?XINGWANG_DEBUG
#defi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????382245??2017-12-20?14:21??Quectel_Linux&Android_CMUX_Driver_V2.0.1\Quectel_Android&Linux_CMUX_Driver_User_Guide_V1.1.pdf
?????文件??????95122??2017-12-20?10:45??Quectel_Linux&Android_CMUX_Driver_V2.0.1\src\gsm0710muxd_bp.c
?????文件????????246??2017-12-20?10:45??Quectel_Linux&Android_CMUX_Driver_V2.0.1\src\Makefile
?????目錄??????????0??2017-12-20?14:13??Quectel_Linux&Android_CMUX_Driver_V2.0.1\src
?????目錄??????????0??2017-12-20?14:21??Quectel_Linux&Android_CMUX_Driver_V2.0.1
-----------?---------??----------?-----??----
???????????????477613????????????????????5
- 上一篇:OSG官方入門教程包含程序代碼
- 下一篇:minst數據集
評論
共有 條評論