|
M5Unit-FINGER 0.0.2 git rev:9f22200
|
Base class for FPC1xxx family. More...
#include <unit_FPC1xxx.hpp>
Classes | |
| struct | config_t |
| Settings for begin. More... | |
Public Types | |
| using | Frame = std::array<uint8_t, 8> |
| using | VariableFrame = std::vector<uint8_t> |
Public Member Functions | |
| virtual bool | begin () override |
| Begin communication with the unit. | |
| bool | readSerialNumber (uint32_t &no) |
| Read the serial number (24 bits) | |
| bool | readVersion (char str[9]) |
| Read the version string. | |
| bool | sleep (void) |
| Go to deep sleep. | |
Settings for begin | |
| config_t | config () |
| Gets the configuration. | |
| void | config (const config_t &cfg) |
| Set the configuration. | |
Properties | |
| virtual uint16_t | resolutionWidth () const |
| Gets the width of resolution. | |
| virtual uint16_t | resolutionHeight () const |
| Gets the height of resolution. | |
| uint16_t | imageWidth (const bool raw) const |
| Get the image width. | |
| uint16_t | imageHeight (const bool raw) const |
| Get the resolution height. | |
| virtual uint16_t | minimumUserID () const |
| Get the minimum user ID. | |
| virtual uint16_t | maximumUserID () const |
| Get the maximum user ID. | |
Settings | |
| bool | readRegistrationMode (fpc1xxx::Mode &mode) |
| Read the registration mode. | |
| bool | writeRegistrationMode (const fpc1xxx::Mode mode) |
| Write the registration mode. | |
| bool | readComparisonLevel (uint8_t &lv) |
| Read the comparison level. | |
| bool | writeComparisonLevel (const uint8_t lv) |
| Write the comparison level. | |
| bool | writeBaudRate (const fpc1xxx::BaudRate baud) |
| Write the baud rate. | |
| bool | readTimeout (uint8_t &timeout) |
| Read the timeout. | |
| bool | writeTimeout (const uint8_t timeout) |
| Write the timeout. | |
User data | |
| bool | readRegisteredUserCount (uint16_t &count) |
| Read the number of registered users. | |
| bool | readUser (uint8_t &permission, const uint16_t user_id) |
| Read the user permission. | |
| bool | readAllUser (std::vector< fpc1xxx::User > &v) |
| Get the all user data. | |
| bool | readUserCharacteristic (uint8_t characteristic[193], const uint16_t user_id) |
| Read the user characteristic data. | |
| bool | findAvailableUserID (uint16_t &user_id, const uint16_t low=0, const uint16_t high=0) |
| Find the unregistered user id in specific range. | |
| bool | deleteUser (const uint16_t user_id) |
| Delete user data. | |
| bool | deleteAllUsers () |
| Delete all user data. | |
Finger | |
| bool | registerFinger (const uint16_t user_id, const uint8_t permission, const uint8_t step=4) |
| Register finger. | |
| bool | verifyFinger (bool &match, const uint16_t user_id) |
| Verify specific user finger (1:1) | |
| bool | identifyFinger (uint16_t &user_id, uint8_t &permission) |
| Identify finger (1:N) | |
| bool | scanCharacteristic (uint8_t characteristic[193]) |
| Scan characteristic. | |
| virtual bool | captureImage (std::vector< uint8_t > &img, const bool raw=false) |
| Capture finger image. | |
| bool | registerCharacteristic (const uint16_t user_id, const uint8_t permission, const uint8_t characteristic[193]) |
| Register characteristic. | |
| bool | verifyCharacteristic (bool &match, const uint16_t user_id, const uint8_t characteristic[193]) |
| Verify specific user characteristic (1:1) | |
| bool | identifyCharacteristic (uint16_t &user_id, const uint8_t characteristic[193]) |
| Identify characteristic (1:N) | |
| bool | compareCharacteristic (bool &match, const uint8_t characteristic[193]) |
| Compare characteristic. | |
Base class for FPC1xxx family.
| Chip | Resolution | Unit |
|---|---|---|
| FPC1020 | 192x192 | |
| FPC1020AM | 192x192 | |
| FPC1020AP | 192x192 | |
| FPC1020A | 160x160 | Unit Finger (SKU:U008) |
| FPC1021 | 160x160 | |
| FPC1024 | 192x192 | |
| FPC1025 | 160x160 | |
| FPC1523 | 96x96 | |
|
overridevirtual |
Begin communication with the unit.
Reimplemented in m5::unit::UnitFPC1020A.
|
inlinevirtual |
Capture finger image.
| [out] | img | Image vector (4 or 8 bits grayscale) |
| raw | Capture raw image(8bits) if true, Capture compressed image(4bits) if false |
| bool m5::unit::UnitFPC1XXX::compareCharacteristic | ( | bool & | match, |
| const uint8_t | characteristic[193] ) |
Compare characteristic.
| [out] | match | Match if true |
| characteristic | Characteristic data |
| bool m5::unit::UnitFPC1XXX::deleteAllUsers | ( | ) |
Delete all user data.
| bool m5::unit::UnitFPC1XXX::deleteUser | ( | const uint16_t | user_id | ) |
Delete user data.
| user_id | UserID |
| bool m5::unit::UnitFPC1XXX::findAvailableUserID | ( | uint16_t & | user_id, |
| const uint16_t | low = 0, | ||
| const uint16_t | high = 0 ) |
Find the unregistered user id in specific range.
| [out] | user_id | User ID |
| low | Lowest user ID (Minimum user ID if zero) | |
| high | Highest user ID (Maximum user ID if zero) |
| bool m5::unit::UnitFPC1XXX::identifyCharacteristic | ( | uint16_t & | user_id, |
| const uint8_t | characteristic[193] ) |
Identify characteristic (1:N)
| [out] | user_id | Matching UserID, 0 if NoUser |
| characteristic | Characteristic data |
| bool m5::unit::UnitFPC1XXX::identifyFinger | ( | uint16_t & | user_id, |
| uint8_t & | permission ) |
Identify finger (1:N)
| [out] | user_id | Matching UserID, 0 if NoUser |
| [out] | permission | Matching user permission, 0 if NoUser |
|
inlinevirtual |
Get the maximum user ID.
Reimplemented in m5::unit::UnitFPC1020A.
|
inlinevirtual |
Get the minimum user ID.
Reimplemented in m5::unit::UnitFPC1020A.
| bool m5::unit::UnitFPC1XXX::readAllUser | ( | std::vector< fpc1xxx::User > & | v | ) |
Get the all user data.
| [out] | v | User data vector |
| bool m5::unit::UnitFPC1XXX::readComparisonLevel | ( | uint8_t & | lv | ) |
Read the comparison level.
| [out] | lv | Comparison level (0-9) |
| bool m5::unit::UnitFPC1XXX::readRegisteredUserCount | ( | uint16_t & | count | ) |
Read the number of registered users.
| [out] | count | Number of registered users |
| bool m5::unit::UnitFPC1XXX::readRegistrationMode | ( | fpc1xxx::Mode & | mode | ) |
Read the registration mode.
| [out] | mode | Mode |
| bool m5::unit::UnitFPC1XXX::readSerialNumber | ( | uint32_t & | no | ) |
Read the serial number (24 bits)
| [out] | sno | Serial number |
| bool m5::unit::UnitFPC1XXX::readTimeout | ( | uint8_t & | timeout | ) |
Read the timeout.
| [out] | timeout | Timeout value |
| bool m5::unit::UnitFPC1XXX::readUser | ( | uint8_t & | permission, |
| const uint16_t | user_id ) |
Read the user permission.
| [out] | permission | Permission(1,2,3) |
| user_id | user ID |
| bool m5::unit::UnitFPC1XXX::readUserCharacteristic | ( | uint8_t | characteristic[193], |
| const uint16_t | user_id ) |
Read the user characteristic data.
| [out] | characteristic | User characteristic (At least 193 bytes) |
| user_id | User ID |
| bool m5::unit::UnitFPC1XXX::readVersion | ( | char | str[9] | ) |
Read the version string.
| [out] | str | Output string buffer (At least 9 bytes) |
| bool m5::unit::UnitFPC1XXX::registerCharacteristic | ( | const uint16_t | user_id, |
| const uint8_t | permission, | ||
| const uint8_t | characteristic[193] ) |
Register characteristic.
| user_id | UserID |
| permission | Permission(1,2,3) |
| characteristic | Characteristic data |
| bool m5::unit::UnitFPC1XXX::registerFinger | ( | const uint16_t | user_id, |
| const uint8_t | permission, | ||
| const uint8_t | step = 4 ) |
Register finger.
| user_id | UserID |
| permission | Permission (1,2, or 3) |
| step | Number of intermediate step repetitions |
|
inlinevirtual |
Gets the height of resolution.
Reimplemented in m5::unit::UnitFPC1020A.
|
inlinevirtual |
Gets the width of resolution.
Reimplemented in m5::unit::UnitFPC1020A.
| bool m5::unit::UnitFPC1XXX::scanCharacteristic | ( | uint8_t | characteristic[193] | ) |
Scan characteristic.
| [out] | characteristic | Characteristic data (At least 193 bytes) |
| bool m5::unit::UnitFPC1XXX::sleep | ( | void | ) |
Go to deep sleep.
| bool m5::unit::UnitFPC1XXX::verifyCharacteristic | ( | bool & | match, |
| const uint16_t | user_id, | ||
| const uint8_t | characteristic[193] ) |
Verify specific user characteristic (1:1)
| [out] | match | Match if true |
| user_id | UserID | |
| characteristic | Characteristic data |
| bool m5::unit::UnitFPC1XXX::verifyFinger | ( | bool & | match, |
| const uint16_t | user_id ) |
Verify specific user finger (1:1)
| [out] | match | Match if true |
| user_id | UserID |
| bool m5::unit::UnitFPC1XXX::writeBaudRate | ( | const fpc1xxx::BaudRate | baud | ) |
Write the baud rate.
| baud | BaudRate |
| bool m5::unit::UnitFPC1XXX::writeComparisonLevel | ( | const uint8_t | lv | ) |
Write the comparison level.
| lv | Comparison level (0-9) |
| bool m5::unit::UnitFPC1XXX::writeRegistrationMode | ( | const fpc1xxx::Mode | mode | ) |
Write the registration mode.
| mode | Mode |
| bool m5::unit::UnitFPC1XXX::writeTimeout | ( | const uint8_t | timeout | ) |
Write the timeout.
| timeout | Timeout value |