Core class implementing FPC2534 functionality independent of communication protocol.
More...
#include <sfDevFPC2534.h>
Core class implementing FPC2534 functionality independent of communication protocol.
◆ sfDevFPC2534()
| sfDevFPC2534::sfDevFPC2534 |
( |
| ) |
|
◆ clearData()
| void sfDevFPC2534::clearData |
( |
void |
| ) |
|
|
inline |
Clear any available data from the device.
◆ currentMode()
| uint16_t sfDevFPC2534::currentMode |
( |
void |
| ) |
const |
|
inline |
Get the current operating mode of the device.
- Returns
- Current mode (STATE_ENROLL, STATE_IDENTIFY, STATE_NAVIGATION)
◆ factoryReset()
Send a factory reset command to the device.
Perform factory reset (system config flags must be set to support this).
- Returns
- Result Code
◆ initialize()
initialize the library with a communication interface.
- Parameters
-
| comm | The communication interface to use. |
- Returns
- true - if initialization was successful
◆ isDataAvailable()
| bool sfDevFPC2534::isDataAvailable |
( |
void |
| ) |
const |
|
inline |
Check if data is available to read from the device.
- Returns
- true - if data is available
◆ isFingerPresent()
| bool sfDevFPC2534::isFingerPresent |
( |
void |
| ) |
const |
|
inline |
Check if a finger is currently present on the sensor.
- Returns
- true - if finger is present
-
false - if no finger is present
◆ isReady()
| bool sfDevFPC2534::isReady |
( |
void |
| ) |
const |
|
inline |
Check if the device firmware is ready.
- Returns
- true - if device firmware is ready
◆ processNextResponse() [1/2]
| fpc_result_t sfDevFPC2534::processNextResponse |
( |
bool |
flushNone | ) |
|
Process the next response message from the device. This should be called regularly (in loop)
- Parameters
-
| flushNone | - if true, EVENT_NONE events will be skipped |
- Returns
- fpc_result_t
◆ processNextResponse() [2/2]
◆ requestAbort()
Send an abort command to the device.
- Returns
- Result Code
◆ requestDeleteTemplate()
Request to delete a template.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_ALL
- Parameters
-
| id | The User ID to be deleted. |
- Returns
- Result Code
◆ requestEnroll()
Request to start an enrollment operation.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_GENERATE_NEW
- Parameters
-
| id | The User ID to be used for the new template. |
- Returns
- Result Code
◆ requestGetGPIO()
Respond to a GPIO get state command to the device.
Configure gpio pins.
- Parameters
-
| pin | Pin to get state of (see product specification). |
- Returns
- Result Code
◆ requestGetSystemConfig()
| fpc_result_t sfDevFPC2534::requestGetSystemConfig |
( |
uint8_t |
type | ) |
|
Request the system configuration from the device.
Configure various system settings.
- Parameters
-
| type | One of FPC_SYS_CFG_TYPE_*. |
- Returns
- Result Code
◆ requestIdentify()
Request to start an identification operation.
id type can be ID_TYPE_SPECIFIED or ID_TYPE_ALL
- Parameters
-
| id | The User ID to be used for the new template. |
| tag | Operation tag. Will be returned in the response. |
- Returns
- Result Code
◆ requestListTemplates()
Send a list templates command to the device.
- Returns
- Result Code
◆ requestSetGPIO()
| fpc_result_t sfDevFPC2534::requestSetGPIO |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode, |
|
|
uint8_t |
state |
|
) |
| |
Send GPIO control command to the device.
Configure gpio pins.
- Parameters
-
| pin | Pin to configure (see product specification). |
| mode | Mode selection (GPIO_CONTROL_MODE_*). |
| state | State of pin if output (GPIO_CONTROL_STATE_*). |
- Returns
- Result Code
◆ requestStatus()
Request the status from the device.
- Returns
- Result Code
◆ requestVersion()
Request the version from the device.
- Returns
- Result Code
◆ sendReset()
Request to send a reset command to the device.
- Returns
- Result Code
◆ setCallbacks()
Set the callback functions for the library to call on events. This is required.
- Parameters
-
| callbacks | Struct holding all callback function pointers. |
◆ setLED()
Set the state of the on-board LED.
- Parameters
-
| on | true to turn LED on, false to turn it off |
- Returns
- Result Code
◆ setSystemConfig()
Set the system configuration on the device.
Configure various system settings.
- Parameters
-
- Returns
- Result Code
◆ startBuiltInSelfTest()
Start the BuiltIn Self Test. (BIST )
Runs the BuiltIn Self Test.
- Returns
- Result Code
◆ startNavigationMode()
| fpc_result_t sfDevFPC2534::startNavigationMode |
( |
uint8_t |
orientation | ) |
|
Populate and transfer a CMD_SET_CRYPTO_KEY request.
- Returns
- Result Code
Start navigation mode on the device.
Starts the navigation mode.
- Parameters
-
| orientation | Orientation in 90 degrees per step (0-3). |
- Returns
- Result Code
The documentation for this class was generated from the following files: