FPM10AL 指纹识别模块例程
}
for(i=0;i<11;i++)
{
UART1_Send_Byte(FP_Search_0_9[i]);
}
}
void FINGERPRINT_Cmd_Save_Finger( unsigned char ucH_Char,unsigned char ucL_Char ) {
unsigned long temp = 0;
unsigned char i;
// SAVE_FINGER[9]={0x01,0x00,0x06,0x06,0x01,0x00,0x0B,0x00,0x19};//将BUFFER1中的特征码存放到指定的位置
FP_Save_Finger[5] = ucH_Char;
FP_Save_Finger[6] = ucL_Char;
for(i=0;i<7;i++) //计算校验和
temp = temp + FP_Save_Finger[i];
FP_Save_Finger[7]=(temp & 0x00FF00) >> 8; //存放校验数据
FP_Save_Finger[8]= temp & 0x0000FF;
for(i=0;i<6;i++)
UART1_Send_Byte(FP_Pack_Head[i]); //发送包头
for(i=0;i<9;i++)
UART1_Send_Byte(FP_Save_Finger[i]); //发送命令 将图像转换成 特征码 存放在 CHAR_buffer1
}
//接收反馈数据缓冲
void FINGERPRINT_Recevice_Data(unsigned char ucLength)
{
unsigned char i;
for (i=0;i<ucLength;i++)
UART1_FINGERPRINT_RECEVICE_BUFFER[i] = UART1_Receive_Byte();