![]() |
SparkFun Fingerprint Sensor - FPC2534 Pro
v0.9.9-3-g5d0d172
Library for the SparkFun Fingerprint Sensor - FPC2534 Pro
|
#include <SparkFun_FPC2534.h>
Public Member Functions | |
| SfeFPC2534UART () | |
| bool | begin (HardwareSerial &theUART) |
| Initialize the sensor using UART communication. More... | |
| fpc_result_t | requestStatus (void) |
| Request the status from the device. More... | |
| fpc_result_t | requestVersion (void) |
| Request the version from the device. More... | |
| fpc_result_t | requestEnroll (fpc_id_type_t &id) |
| Request to start an enrollment operation. More... | |
| fpc_result_t | requestIdentify (fpc_id_type_t &id, uint16_t tag) |
| Request to start an identification operation. More... | |
| fpc_result_t | requestAbort (void) |
| Send an abort command to the device. More... | |
| fpc_result_t | requestListTemplates (void) |
| Send a list templates command to the device. More... | |
| fpc_result_t | requestDeleteTemplate (fpc_id_type_t &id) |
| Request to delete a template. More... | |
| fpc_result_t | sendReset (void) |
| Request to send a reset command to the device. More... | |
| fpc_result_t | startNavigationMode (uint8_t orientation) |
| Populate and transfer a CMD_SET_CRYPTO_KEY request. More... | |
| fpc_result_t | startBuiltInSelfTest (void) |
| Start the BuiltIn Self Test. (BIST ) More... | |
| fpc_result_t | requestSetGPIO (uint8_t pin, uint8_t mode, uint8_t state) |
| Send GPIO control command to the device. More... | |
| fpc_result_t | requestGetGPIO (uint8_t pin) |
| Respond to a GPIO get state command to the device. More... | |
| fpc_result_t | setSystemConfig (fpc_system_config_t *cfg) |
| Set the system configuration on the device. More... | |
| fpc_result_t | requestGetSystemConfig (uint8_t type) |
| Request the system configuration from the device. More... | |
| fpc_result_t | factoryReset (void) |
| Send a factory reset command to the device. More... | |
| uint16_t | currentMode (void) const |
| Get the current operating mode of the device. More... | |
| bool | isFingerPresent (void) const |
| Check if a finger is currently present on the sensor. More... | |
| void | setCallbacks (const sfDevFPC2534Callbacks_t &callbacks) |
| Set the callback functions for the library to call on events. This is required. More... | |
| bool | initialize (sfDevFPC2534IComm &comm) |
| initialize the library with a communication interface. More... | |
| bool | isReady (void) const |
| Check if the device firmware is ready. More... | |
| bool | isDataAvailable (void) const |
| Check if data is available to read from the device. More... | |
| void | clearData (void) |
| Clear any available data from the device. More... | |
| fpc_result_t | setLED (bool on=true) |
| Set the state of the on-board LED. More... | |
| fpc_result_t | processNextResponse (bool flushNone) |
| Process the next response message from the device. This should be called regularly (in loop) More... | |
| fpc_result_t | processNextResponse (void) |
|
inline |
|
inline |
Initialize the sensor using UART communication.
| theUART | Reference to the HardwareSerial object to use |
|
inlineinherited |
Clear any available data from the device.
|
inlineinherited |
Get the current operating mode of the device.
|
inherited |
Send a factory reset command to the device.
Perform factory reset (system config flags must be set to support this).
|
inlineinherited |
initialize the library with a communication interface.
| comm | The communication interface to use. |
|
inlineinherited |
Check if data is available to read from the device.
|
inlineinherited |
Check if a finger is currently present on the sensor.
|
inlineinherited |
Check if the device firmware is ready.
|
inherited |
Process the next response message from the device. This should be called regularly (in loop)
| flushNone | - if true, EVENT_NONE events will be skipped |
|
inlineinherited |
|
inherited |
Send an abort command to the device.
|
inherited |
Request to delete a template.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_ALL
| id | The User ID to be deleted. |
|
inherited |
Request to start an enrollment operation.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_GENERATE_NEW
| id | The User ID to be used for the new template. |
|
inherited |
Respond to a GPIO get state command to the device.
Configure gpio pins.
| pin | Pin to get state of (see product specification). |
|
inherited |
Request the system configuration from the device.
Configure various system settings.
| type | One of FPC_SYS_CFG_TYPE_*. |
|
inherited |
Request to start an identification operation.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_ALL
| id | The User ID to be used for the new template. |
| tag | Operation tag. Will be returned in the response. |
|
inherited |
Send a list templates command to the device.
|
inherited |
Send GPIO control command to the device.
Configure gpio pins.
| pin | Pin to configure (see product specification). |
| mode | Mode selection (GPIO_CONTROL_MODE_*). |
| state | State of pin if output (GPIO_CONTROL_STATE_*). |
|
inherited |
Request the status from the device.
|
inherited |
Request the version from the device.
|
inherited |
Request to send a reset command to the device.
|
inlineinherited |
Set the callback functions for the library to call on events. This is required.
| callbacks | Struct holding all callback function pointers. |
|
inherited |
Set the state of the on-board LED.
| on | true to turn LED on, false to turn it off |
|
inherited |
Set the system configuration on the device.
Configure various system settings.
| cfg | Pointer to fpc_system_config_t. |
|
inherited |
Start the BuiltIn Self Test. (BIST )
Runs the BuiltIn Self Test.
|
inherited |
Populate and transfer a CMD_SET_CRYPTO_KEY request.
Start navigation mode on the device.
Starts the navigation mode.
| orientation | Orientation in 90 degrees per step (0-3). |