Google is committed to advancing racial equity for Black communities. See how.

activity_recognition_device Struct Reference

activity_recognition_device Struct Reference

#include < activity_recognition.h >

Data Fields

hw_device_t   common
 
void(*  register_activity_callback )(const struct activity_recognition_device *dev, const activity_recognition_callback_procs_t *callback)
 
int(*  enable_activity_event )(const struct activity_recognition_device *dev, uint32_t activity_handle, uint32_t event_type, int64_t max_batch_report_latency_ns)
 
int(*  disable_activity_event )(const struct activity_recognition_device *dev, uint32_t activity_handle, uint32_t event_type)
 
int(*  flush )(const struct activity_recognition_device *dev)
 
void(*  reserved_procs [16-4])(void)
 

Detailed Description

Definition at line 154 of file activity_recognition.h .

Field Documentation

Common methods of the activity recognition device. This must be the first member of activity_recognition_device as users of this structure will cast a hw_device_t to activity_recognition_device pointer in contexts where it's known the hw_device_t references an activity_recognition_device .

Definition at line 161 of file activity_recognition.h .

int(* disable_activity_event)(const struct activity_recognition_device *dev, uint32_t activity_handle, uint32_t event_type)

Definition at line 214 of file activity_recognition.h .

int(* enable_activity_event)(const struct activity_recognition_device *dev, uint32_t activity_handle, uint32_t event_type, int64_t max_batch_report_latency_ns)

Definition at line 207 of file activity_recognition.h .

int(* flush)(const struct activity_recognition_device *dev)

Definition at line 225 of file activity_recognition.h .

void(* register_activity_callback)(const struct activity_recognition_device *dev, const activity_recognition_callback_procs_t *callback)

Definition at line 167 of file activity_recognition.h .

void(* reserved_procs[16 - 4])(void)

Definition at line 228 of file activity_recognition.h .


The documentation for this struct was generated from the following file: