实现赋码仪命令
升级小板程序失败时停止
This commit is contained in:
37
elec/JQ_UIDGenerate.h
Normal file
37
elec/JQ_UIDGenerate.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef __JQ_UIDGENERATE_H__
|
||||
#define __JQ_UIDGENERATE_H__
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include "stdint-gcc.h"
|
||||
|
||||
|
||||
|
||||
#define DEF_YM_SPECIALCODE_INDEX 9
|
||||
|
||||
#pragma pack(1)
|
||||
typedef struct
|
||||
{
|
||||
unsigned char ucArrayYMUidCode[15];
|
||||
}ST_YMUID_TYPEDEF,*PST_YMUID_TYPEDEF;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t u8ArrayJQUidCode[8];
|
||||
}ST_JQUID_TYPEDEF,*PST_JQUID_TYPEDEF;
|
||||
|
||||
typedef union
|
||||
{
|
||||
uint32_t u32Value;
|
||||
uint8_t u8Val[4];
|
||||
}UNION_VALUE_CHANGE_TYPEDEF,*PST_VALUE_CHANGE_TYPEDEF;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
bool UidCode_YM2JQ(PST_JQUID_TYPEDEF pstJQUID,const PST_YMUID_TYPEDEF pstYMUID);
|
||||
|
||||
bool UidCode_JQ2YM(const PST_JQUID_TYPEDEF pstJQUID,PST_YMUID_TYPEDEF pstYMUID);
|
||||
|
||||
bool UidCode_JQ2YM_NoBackwardSequence(const PST_JQUID_TYPEDEF pstJQUID,PST_YMUID_TYPEDEF pstYMUID);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user