Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
grow_r502a.h File Reference

Go to the source code of this file.

Data Structures

struct  r502a_sys_param
 
struct  r502a_template
 

Macros

#define R502A_BAUD_9600   1
 
#define R502A_BAUD_19200   2
 
#define R502A_BAUD_38400   4
 
#define R502A_BAUD_57600   6
 
#define R502A_BAUD_115200   12
 

Enumerations

enum  r502a_led_color_idx { R502A_LED_COLOR_RED = 0x01 , R502A_LED_COLOR_BLUE , R502A_LED_COLOR_PURPLE }
 
enum  r502a_sec_level {
  R502A_SEC_LEVEL_1 = 1 , R502A_SEC_LEVEL_2 , R502A_SEC_LEVEL_3 , R502A_SEC_LEVEL_4 ,
  R502A_SEC_LEVEL_5
}
 
enum  r502a_data_len { R502A_PKG_LEN_32 , R502A_PKG_LEN_64 , R502A_PKG_LEN_128 , R502A_PKG_LEN_256 }
 
enum  r502a_sys_param_set { R502A_BAUD_RATE = 4 , R502A_SECURITY_LEVEL , R502A_DATA_PKG_LEN }
 
enum  sensor_channel_grow_r502a { SENSOR_CHAN_FINGERPRINT = SENSOR_CHAN_PRIV_START }
 
enum  sensor_trigger_type_grow_r502a { SENSOR_TRIG_TOUCH = SENSOR_TRIG_PRIV_START }
 
enum  sensor_attribute_grow_r502a {
  SENSOR_ATTR_R502A_CAPTURE = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_R502A_TEMPLATE_CREATE , SENSOR_ATTR_R502A_RECORD_ADD , SENSOR_ATTR_R502A_RECORD_FIND ,
  SENSOR_ATTR_R502A_RECORD_DEL , SENSOR_ATTR_R502A_RECORD_FREE_IDX , SENSOR_ATTR_R502A_RECORD_EMPTY , SENSOR_ATTR_R502A_RECORD_LOAD ,
  SENSOR_ATTR_R502A_COMPARE , SENSOR_ATTR_R502A_SYS_PARAM
}
 

Functions

int r502a_read_sys_param (const struct device *dev, struct r502a_sys_param *val)
 
int fps_upload_char_buf (const struct device *dev, struct r502a_template *temp)
 
int fps_download_char_buf (const struct device *dev, uint8_t char_buf_id, const struct r502a_template *temp)
 

Macro Definition Documentation

◆ R502A_BAUD_115200

#define R502A_BAUD_115200   12

◆ R502A_BAUD_19200

#define R502A_BAUD_19200   2

◆ R502A_BAUD_38400

#define R502A_BAUD_38400   4

◆ R502A_BAUD_57600

#define R502A_BAUD_57600   6

◆ R502A_BAUD_9600

#define R502A_BAUD_9600   1

Enumeration Type Documentation

◆ r502a_data_len

Enumerator
R502A_PKG_LEN_32 
R502A_PKG_LEN_64 
R502A_PKG_LEN_128 
R502A_PKG_LEN_256 

◆ r502a_led_color_idx

Enumerator
R502A_LED_COLOR_RED 
R502A_LED_COLOR_BLUE 
R502A_LED_COLOR_PURPLE 

◆ r502a_sec_level

Enumerator
R502A_SEC_LEVEL_1 
R502A_SEC_LEVEL_2 
R502A_SEC_LEVEL_3 
R502A_SEC_LEVEL_4 
R502A_SEC_LEVEL_5 

◆ r502a_sys_param_set

Enumerator
R502A_BAUD_RATE 
R502A_SECURITY_LEVEL 
R502A_DATA_PKG_LEN 

◆ sensor_attribute_grow_r502a

Enumerator
SENSOR_ATTR_R502A_CAPTURE 

To capture finger and store as feature file in RAM buffers char_buf_1 and char_buf_2.

SENSOR_ATTR_R502A_TEMPLATE_CREATE 

create template from feature files at RAM buffers char_buf_1 & char_buf_2 and store a template data back in both RAM buffers char_buf_1 and char_buf_2.

SENSOR_ATTR_R502A_RECORD_ADD 

Add template to the sensor record storage.

Parameters
val->val1record index for template to be stored in the sensor device's flash library.
SENSOR_ATTR_R502A_RECORD_FIND 

To find requested data in record storage.

Returns
val->val1 matched record index. val->val2 matching score.
SENSOR_ATTR_R502A_RECORD_DEL 

To delete mentioned data from record storage.

Parameters
val->val1record start index to be deleted.
val->val2number of records to be deleted.
SENSOR_ATTR_R502A_RECORD_FREE_IDX 

To get available position to store data on record storage.

SENSOR_ATTR_R502A_RECORD_EMPTY 

To empty the storage record.

SENSOR_ATTR_R502A_RECORD_LOAD 

To load template from storage to RAM buffer of sensor.

Parameters
val->val1record start index to be loaded in device internal RAM buffer.
SENSOR_ATTR_R502A_COMPARE 

To template data stored in sensor's RAM buffer.

Returns
val->val1 match result. [R502A_FINGER_MATCH_FOUND or R502A_FINGER_MATCH_NOT_FOUND] val->val2 matching score.
SENSOR_ATTR_R502A_SYS_PARAM 

To read and write device's system parameters.

sensor_attr_set

Parameters
val->val1parameter number from enum r502a_sys_param_set.
val->val2content to be written for the respective parameter. sensor_attr_get
Returns
val->ex.data buffer holds the system parameter values.

◆ sensor_channel_grow_r502a

Enumerator
SENSOR_CHAN_FINGERPRINT 

Fingerprint template count, ID number for enrolling and searching.

◆ sensor_trigger_type_grow_r502a

Enumerator
SENSOR_TRIG_TOUCH 

Trigger fires when a touch is detected.

Function Documentation

◆ fps_download_char_buf()

int fps_download_char_buf ( const struct device dev,
uint8_t  char_buf_id,
const struct r502a_template temp 
)

◆ fps_upload_char_buf()

int fps_upload_char_buf ( const struct device dev,
struct r502a_template temp 
)

◆ r502a_read_sys_param()

int r502a_read_sys_param ( const struct device dev,
struct r502a_sys_param val 
)