7#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_GROW_R502A_H_
8#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_GROW_R502A_H_
23#define R502A_BAUD_9600 1
24#define R502A_BAUD_19200 2
25#define R502A_BAUD_38400 4
26#define R502A_BAUD_57600 6
27#define R502A_BAUD_115200 12
@ SENSOR_TRIG_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:275
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:359
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:208
r502a_sys_param_set
Definition grow_r502a.h:44
@ R502A_SECURITY_LEVEL
Definition grow_r502a.h:46
@ R502A_DATA_PKG_LEN
Definition grow_r502a.h:47
@ R502A_BAUD_RATE
Definition grow_r502a.h:45
r502a_data_len
Definition grow_r502a.h:37
@ R502A_PKG_LEN_256
Definition grow_r502a.h:41
@ R502A_PKG_LEN_64
Definition grow_r502a.h:39
@ R502A_PKG_LEN_32
Definition grow_r502a.h:38
@ R502A_PKG_LEN_128
Definition grow_r502a.h:40
int fps_download_char_buf(const struct device *dev, uint8_t char_buf_id, const struct r502a_template *temp)
int r502a_read_sys_param(const struct device *dev, struct r502a_sys_param *val)
r502a_sec_level
Definition grow_r502a.h:29
@ R502A_SEC_LEVEL_4
Definition grow_r502a.h:33
@ R502A_SEC_LEVEL_1
Definition grow_r502a.h:30
@ R502A_SEC_LEVEL_2
Definition grow_r502a.h:31
@ R502A_SEC_LEVEL_5
Definition grow_r502a.h:34
@ R502A_SEC_LEVEL_3
Definition grow_r502a.h:32
sensor_attribute_grow_r502a
Definition grow_r502a.h:74
@ SENSOR_ATTR_R502A_RECORD_ADD
Add template to the sensor record storage.
Definition grow_r502a.h:90
@ SENSOR_ATTR_R502A_RECORD_LOAD
To load template from storage to RAM buffer of sensor.
Definition grow_r502a.h:112
@ SENSOR_ATTR_R502A_RECORD_DEL
To delete mentioned data from record storage.
Definition grow_r502a.h:102
@ SENSOR_ATTR_R502A_COMPARE
To template data stored in sensor's RAM buffer.
Definition grow_r502a.h:121
@ 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:83
@ SENSOR_ATTR_R502A_SYS_PARAM
To read and write device's system parameters.
Definition grow_r502a.h:130
@ 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:78
@ SENSOR_ATTR_R502A_RECORD_FREE_IDX
To get available position to store data on record storage.
Definition grow_r502a.h:104
@ SENSOR_ATTR_R502A_RECORD_EMPTY
To empty the storage record.
Definition grow_r502a.h:106
@ SENSOR_ATTR_R502A_RECORD_FIND
To find requested data in record storage.
Definition grow_r502a.h:96
sensor_trigger_type_grow_r502a
Definition grow_r502a.h:69
@ SENSOR_TRIG_TOUCH
Trigger fires when a touch is detected.
Definition grow_r502a.h:71
r502a_led_color_idx
Definition grow_r502a.h:17
@ R502A_LED_COLOR_BLUE
Definition grow_r502a.h:19
@ R502A_LED_COLOR_RED
Definition grow_r502a.h:18
@ R502A_LED_COLOR_PURPLE
Definition grow_r502a.h:20
sensor_channel_grow_r502a
Definition grow_r502a.h:64
@ SENSOR_CHAN_FINGERPRINT
Fingerprint template count, ID number for enrolling and searching.
Definition grow_r502a.h:66
int fps_upload_char_buf(const struct device *dev, struct r502a_template *temp)
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:403
Definition grow_r502a.h:50
uint16_t sec_level
Definition grow_r502a.h:54
uint16_t lib_size
Definition grow_r502a.h:53
uint16_t data_pkt_size
Definition grow_r502a.h:56
uint16_t system_id
Definition grow_r502a.h:52
uint32_t addr
Definition grow_r502a.h:55
uint16_t status_reg
Definition grow_r502a.h:51
uint32_t baud
Definition grow_r502a.h:57
Definition grow_r502a.h:60
size_t len
Definition grow_r502a.h:62
uint8_t * data
Definition grow_r502a.h:61