#ifndef __JQ_UIDGENERATE_H__
#define __JQ_UIDGENERATE_H__
#include <stdio.h>
#include <stdbool.h>
#include "stm32f10x.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

