Time Stamp using fingerprint with WIZwiki-W7500.

Dependencies:   GT511C3 NTPClient SDFileSystem WIZnetInterface mbed-src

Fork of GT511C3_HelloWorld_WIZwiki-W7500 by WIZnet

Committer:
tosihisa
Date:
Fri Jan 03 06:20:34 2014 +0000
Revision:
0:b11b455d4997
Child:
1:4a1be9379e92
1st Commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tosihisa 0:b11b455d4997 1
tosihisa 0:b11b455d4997 2 #include "mbed.h"
tosihisa 0:b11b455d4997 3
tosihisa 0:b11b455d4997 4 class GT511C3 : public Serial {
tosihisa 0:b11b455d4997 5 public:
tosihisa 0:b11b455d4997 6 enum Command {
tosihisa 0:b11b455d4997 7 CMD_Open = 0x01, // 01 Open Initialization
tosihisa 0:b11b455d4997 8 CMD_Close = 0x02, // 02 Close Termination
tosihisa 0:b11b455d4997 9 CMD_UsbInternalCheck = 0x03, // 03 UsbInternalCheck Check if the connected USB device is valid
tosihisa 0:b11b455d4997 10 CMD_ChangeBaudrate = 0x04, // 04 ChangeBaudrate Change UART baud rate
tosihisa 0:b11b455d4997 11 CMD_SetIAPMode = 0x05, // 05 SetIAPMode Enter IAP Mode In this mode, FW Upgrade is available
tosihisa 0:b11b455d4997 12 CMD_CmosLed = 0x12, // 12 CmosLed Control CMOS LED
tosihisa 0:b11b455d4997 13 CMD_GetEnrollCount = 0x20, // 20 GetEnrollCount Get enrolled fingerprint count
tosihisa 0:b11b455d4997 14 CMD_CheckEnrolled = 0x21, // 21 CheckEnrolled Check whether the specified ID is already enrolled
tosihisa 0:b11b455d4997 15 CMD_EnrollStart = 0x22, // 22 EnrollStart Start an enrollment
tosihisa 0:b11b455d4997 16 CMD_Enroll1 = 0x23, // 23 Enroll1 Make 1st template for an enrollment
tosihisa 0:b11b455d4997 17 CMD_Enroll2 = 0x24, // 24 Enroll2 Make 2nd template for an enrollment
tosihisa 0:b11b455d4997 18 CMD_Enroll3 = 0x25, // 25 Enroll3 Make 3rd template for an enrollment, merge three templates into one template, save merged template to the database
tosihisa 0:b11b455d4997 19 CMD_IsPressFinger = 0x26, // 26 IsPressFinger Check if a finger is placed on the sensor
tosihisa 0:b11b455d4997 20 CMD_DeleteID = 0x40, // 40 DeleteID Delete the fingerprint with the specified ID
tosihisa 0:b11b455d4997 21 CMD_DeleteAll = 0x41, // 41 DeleteAll Delete all fingerprints from the database
tosihisa 0:b11b455d4997 22 CMD_Verify = 0x50, // 50 Verify 1:1 Verification of the capture fingerprint image with the specified ID
tosihisa 0:b11b455d4997 23 CMD_Identify = 0x51, // 51 Identify 1:N Identification of the capture fingerprint image with the database
tosihisa 0:b11b455d4997 24 CMD_VerifyTemplate = 0x52, // 52 VerifyTemplate 1:1 Verification of a fingerprint template with the specified ID
tosihisa 0:b11b455d4997 25 CMD_IdentifyTemplate = 0x53, // 53 IdentifyTemplate 1:N Identification of a fingerprint template with the database
tosihisa 0:b11b455d4997 26 CMD_CaptureFinger = 0x60, // 60 CaptureFinger Capture a fingerprint image(256x256) from the sensor
tosihisa 0:b11b455d4997 27 CMD_MakeTemplate = 0x61, // 61 MakeTemplate Make template for transmission
tosihisa 0:b11b455d4997 28 CMD_GetImage = 0x62, // 62 GetImage Download the captured fingerprint image(256x256)
tosihisa 0:b11b455d4997 29 CMD_GetRawImage = 0x63, // 63 GetRawImage Capture & Download raw fingerprint image(320x240)
tosihisa 0:b11b455d4997 30 CMD_GetTemplate = 0x70, // 70 GetTemplate Download the template of the specified ID
tosihisa 0:b11b455d4997 31 CMD_SetTemplate = 0x71, // 71 SetTemplate Upload the template of the specified ID
tosihisa 0:b11b455d4997 32 CMD_GetDatabaseStart = 0x72, // 72 GetDatabaseStart Start database download, obsolete
tosihisa 0:b11b455d4997 33 CMD_GetDatabaseEnd = 0x73, // 73 GetDatabaseEnd End database download, obsolete
tosihisa 0:b11b455d4997 34 CMD_UpgradeFirmware = 0x80, // 80 UpgradeFirmware Not supported
tosihisa 0:b11b455d4997 35 CMD_UpgradeISOCDImage = 0x81, // 81 UpgradeISOCDImage Not supported
tosihisa 0:b11b455d4997 36 CMD_Ack = 0x30, // 30 Ack Acknowledge.
tosihisa 0:b11b455d4997 37 CMD_Nack = 0x31, // 31 Nack Non-acknowledge.
tosihisa 0:b11b455d4997 38 p };
tosihisa 0:b11b455d4997 39 GT511C3(PinName _tx, PinName _rx) : Serial(_tx,_rx){}
tosihisa 0:b11b455d4997 40 int Init(void);
tosihisa 0:b11b455d4997 41 int SendCommand(unsigned long Parameter,unsigned short Command);
tosihisa 0:b11b455d4997 42 int RecvResponse(unsigned long *Parameter,unsigned short *Response);
tosihisa 0:b11b455d4997 43 int ClearLine(void);
tosihisa 0:b11b455d4997 44 };