13#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_GROW_R502A_H_
14#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_GROW_R502A_H_
41#define R502A_BAUD_9600 1
42#define R502A_BAUD_19200 2
43#define R502A_BAUD_38400 4
44#define R502A_BAUD_57600 6
45#define R502A_BAUD_115200 12
r502a_sys_param_set
System parameter set.
Definition grow_r502a.h:81
r502a_data_len
Data packet length.
Definition grow_r502a.h:69
int fps_download_char_buf(const struct device *dev, uint8_t char_buf_id, const struct r502a_template *temp)
Download finger template.
int r502a_read_sys_param(const struct device *dev, struct r502a_sys_param *val)
Read system parameters.
r502a_sec_level
Security level.
Definition grow_r502a.h:55
sensor_attribute_grow_r502a
Custom sensor attributes for Grow R502A.
Definition grow_r502a.h:138
sensor_trigger_type_grow_r502a
Custom trigger types for Grow R502A.
Definition grow_r502a.h:130
r502a_led_color_idx
Definition grow_r502a.h:30
sensor_channel_grow_r502a
Custom sensor channels for Grow R502A.
Definition grow_r502a.h:122
int fps_upload_char_buf(const struct device *dev, struct r502a_template *temp)
Upload finger template.
@ R502A_SECURITY_LEVEL
Security level.
Definition grow_r502a.h:83
@ R502A_DATA_PKG_LEN
Data package length.
Definition grow_r502a.h:84
@ R502A_BAUD_RATE
Baud rate.
Definition grow_r502a.h:82
@ R502A_PKG_LEN_256
256 bytes
Definition grow_r502a.h:73
@ R502A_PKG_LEN_64
64 bytes
Definition grow_r502a.h:71
@ R502A_PKG_LEN_32
32 bytes
Definition grow_r502a.h:70
@ R502A_PKG_LEN_128
128 bytes
Definition grow_r502a.h:72
@ R502A_SEC_LEVEL_4
Level 4.
Definition grow_r502a.h:59
@ R502A_SEC_LEVEL_1
Level 1 (lowest security)
Definition grow_r502a.h:56
@ R502A_SEC_LEVEL_2
Level 2.
Definition grow_r502a.h:57
@ R502A_SEC_LEVEL_5
Level 5 (highest security)
Definition grow_r502a.h:60
@ R502A_SEC_LEVEL_3
Level 3.
Definition grow_r502a.h:58
@ SENSOR_ATTR_R502A_RECORD_ADD
Add template to the sensor record storage.
Definition grow_r502a.h:153
@ SENSOR_ATTR_R502A_RECORD_LOAD
Load template from storage to RAM buffer of sensor.
Definition grow_r502a.h:175
@ SENSOR_ATTR_R502A_RECORD_DEL
Delete mentioned data from record storage.
Definition grow_r502a.h:165
@ SENSOR_ATTR_R502A_COMPARE
Template data stored in sensor's RAM buffer.
Definition grow_r502a.h:182
@ SENSOR_ATTR_R502A_TEMPLATE_CREATE
create template from feature files at RAM buffers char_buf_1 & char_buf_2 and store a template data b...
Definition grow_r502a.h:147
@ SENSOR_ATTR_R502A_SYS_PARAM
Set device's system parameters.
Definition grow_r502a.h:188
@ SENSOR_ATTR_R502A_CAPTURE
To capture finger and store as feature file in RAM buffers char_buf_1 and char_buf_2.
Definition grow_r502a.h:142
@ SENSOR_ATTR_R502A_RECORD_FREE_IDX
Get available position to store data on record storage.
Definition grow_r502a.h:167
@ SENSOR_ATTR_R502A_RECORD_EMPTY
Empty the storage record.
Definition grow_r502a.h:169
@ SENSOR_ATTR_R502A_RECORD_FIND
Find requested data in record storage.
Definition grow_r502a.h:159
@ SENSOR_TRIG_TOUCH
Trigger fires when a touch is detected.
Definition grow_r502a.h:132
@ R502A_LED_COLOR_BLUE
Definition grow_r502a.h:32
@ R502A_LED_COLOR_RED
Definition grow_r502a.h:31
@ R502A_LED_COLOR_PURPLE
Definition grow_r502a.h:33
@ SENSOR_CHAN_FINGERPRINT
Fingerprint template count, ID number for enrolling and searching.
Definition grow_r502a.h:124
@ SENSOR_TRIG_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:292
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:376
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:221
Public APIs for the sensor driver.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
System parameter.
Definition grow_r502a.h:92
uint16_t sec_level
Security level (1 to 5)
Definition grow_r502a.h:100
uint16_t lib_size
Finger library size.
Definition grow_r502a.h:98
uint16_t data_pkt_size
Data packet length.
Definition grow_r502a.h:104
uint16_t system_id
System identifier code.
Definition grow_r502a.h:96
uint32_t addr
Device address.
Definition grow_r502a.h:102
uint16_t status_reg
Status register.
Definition grow_r502a.h:94
uint32_t baud
Baud rate.
Definition grow_r502a.h:106
Fingerprint template.
Definition grow_r502a.h:114
size_t len
Definition grow_r502a.h:116
uint8_t * data
Definition grow_r502a.h:115