forked from liuning587/QGDW1376_2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
33 changed files
with
6,438 additions
and
6,347 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>GDW1376_2</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>?name?</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.append_environment</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildArguments</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildCommand</key> | ||
<value>make</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildLocation</key> | ||
<value>${workspace_loc:/GDW1376_2/Debug}</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.contents</key> | ||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
<value>false</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.stopOnError</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
<value>true</value> | ||
</dictionary> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.core.cnature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
</natures> | ||
</projectDescription> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>GDW1376_2</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>?name?</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.append_environment</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildArguments</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildCommand</key> | ||
<value>make</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildLocation</key> | ||
<value>${workspace_loc:/GDW1376_2/Debug}</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.contents</key> | ||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
<value>false</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.stopOnError</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
<value>true</value> | ||
</dictionary> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.core.cnature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
/** | ||
****************************************************************************** | ||
* @file GDW1376_2.h | ||
* @brief API include file of GDW1376_2.h. | ||
* @details This file including all API functions's declare of GDW1376_2.h. | ||
* @copyright | ||
****************************************************************************** | ||
*/ | ||
#ifndef GDW1376_2_H_ | ||
#define GDW1376_2_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Includes | ||
----------------------------------------------------------------------------*/ | ||
/* NONE */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Macro Definitions | ||
----------------------------------------------------------------------------*/ | ||
#define ERR_NONE (0) /**< 无错误 */ | ||
#define ERR_INPUT (1) /**< 输入参数错误 */ | ||
#define ERR_CHKFRM_0x68 (2) /**< 报文头0x68 */ | ||
#define ERR_CHKFRM_LEN (3) /**< 输入报文长度无效 */ | ||
#define ERR_CHKFRM_0x16 (4) /**< 报文尾0x16 */ | ||
#define ERR_CHKFRM_cs (5) /**< 报文cs错误 */ | ||
#define ERR_AFN_FN (6) /**< 不支持的FN*/ | ||
#define ERR_APP_LEN (7) /**< 应用数据LEN有误 */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Type Definitions | ||
----------------------------------------------------------------------------*/ | ||
typedef void (*pcallback)(const char*); | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Globals | ||
----------------------------------------------------------------------------*/ | ||
/* NONE */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Function Prototypes | ||
----------------------------------------------------------------------------*/ | ||
extern int | ||
GDW1376_2_parse(const unsigned char *pin, | ||
unsigned int len, | ||
pcallback pcb, | ||
const char *pline_head, | ||
const char *pline_end); | ||
|
||
extern const char * | ||
GDW1376_2_error(int errid); | ||
|
||
extern const char * | ||
GDW1376_2_ver_str(void); | ||
|
||
extern const char * | ||
GDW1376_2_changelog(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* GDW1376_2_H_ */ | ||
/*--------------------------End of GDW1376_2.h-----------------------------*/ | ||
/** | ||
****************************************************************************** | ||
* @file GDW1376_2.h | ||
* @brief API include file of GDW1376_2.h. | ||
* @details This file including all API functions's declare of GDW1376_2.h. | ||
* @copyright | ||
****************************************************************************** | ||
*/ | ||
#ifndef GDW1376_2_H_ | ||
#define GDW1376_2_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Includes | ||
----------------------------------------------------------------------------*/ | ||
/* NONE */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Macro Definitions | ||
----------------------------------------------------------------------------*/ | ||
#define ERR_NONE (0) /**< 无错误 */ | ||
#define ERR_INPUT (1) /**< 输入参数错误 */ | ||
#define ERR_CHKFRM_0x68 (2) /**< 报文头0x68 */ | ||
#define ERR_CHKFRM_LEN (3) /**< 输入报文长度无效 */ | ||
#define ERR_CHKFRM_0x16 (4) /**< 报文尾0x16 */ | ||
#define ERR_CHKFRM_cs (5) /**< 报文cs错误 */ | ||
#define ERR_AFN_FN (6) /**< 不支持的FN*/ | ||
#define ERR_APP_LEN (7) /**< 应用数据LEN有误 */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Type Definitions | ||
----------------------------------------------------------------------------*/ | ||
typedef void (*pcallback)(const char*); | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Globals | ||
----------------------------------------------------------------------------*/ | ||
/* NONE */ | ||
|
||
/*----------------------------------------------------------------------------- | ||
Section: Function Prototypes | ||
----------------------------------------------------------------------------*/ | ||
extern int | ||
GDW1376_2_parse(const unsigned char *pin, | ||
unsigned int len, | ||
pcallback pcb, | ||
const char *pline_head, | ||
const char *pline_end); | ||
|
||
extern const char * | ||
GDW1376_2_error(int errid); | ||
|
||
extern const char * | ||
GDW1376_2_ver_str(void); | ||
|
||
extern const char * | ||
GDW1376_2_changelog(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* GDW1376_2_H_ */ | ||
/*--------------------------End of GDW1376_2.h-----------------------------*/ |
Oops, something went wrong.