FPM10AL 指纹识别模块例程(3)

发布时间:2021-06-05

FPM10AL 指纹识别模块例程

//删除指纹模块里的所有指纹模版

void FINGERPRINT_Cmd_Delete_All_Model(void)

{

unsigned char i;

for(i=0;i<6;i++) //包头

UART1_Send_Byte(FP_Pack_Head[i]);

for(i=0;i<6;i++) //命令合并指纹模版

UART1_Send_Byte(FP_Delet_All_Model[i]);

}

//删除指纹模块里的指定指纹模版

void FINGERPRINT_Cmd_Delete_Model(unsigned int uiID_temp)

{

volatile unsigned int uiSum_temp = 0;

unsigned char i;

FP_Delete_Model[4]=(uiID_temp&0xFF00)>>8;

FP_Delete_Model[5]=(uiID_temp&0x00FF);

for(i=0;i<8;i++)

uiSum_temp = uiSum_temp + FP_Delete_Model[i];

//UART0_Send_Byte(uiSum_temp);

FP_Delete_Model[8]=(uiSum_temp&0xFF00)>>8;

FP_Delete_Model[9]=uiSum_temp&0x00FF;

for(i=0;i<6;i++) //包头

UART1_Send_Byte(FP_Pack_Head[i]);

for(i=0;i<10;i++) //命令合并指纹模版

UART1_Send_Byte(FP_Delete_Model[i]);

}

精彩图片

热门精选

大家正在看