ID Chip Reader
chip_reader.h
Go to the documentation of this file.
1 
11 #pragma once
12 #ifndef CHIP_READER_H_
13 #define CHIP_READER_H_
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
35 long ReadIdCardChip(unsigned char mrzInformation[], unsigned char imageFilePath[]);
36 
37 /*
38  * @brief Reads data with only the document number instead of MRZ information.
39  *
40  * Given the document number, this function derives the holder's birth year and test possible birth
41  * dates to find the correct one.
42  *
43  * @param[in] documentNumber The document number as an array of 9 unsigned chars.
44  * @param[out] imageFilePath The file path to the image file that will be created after reading data
45  * from the ID card chip.
46  *
47  * @return A long value representing the status code. APP_SUCCESS indicates successful reading of
48  * data from the ID card chip, otherwise an error code is returned.
49  */
50 long ReadIdCardChipWithDocumentNumber(unsigned char documentNumber[9],
51  unsigned char imageFilePath[]);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif // #ifndef CHIP_READER_H_