Hi,
The HAL need NOT bother about multiple apps running.
The HAL's responsibility seem to be just:
- controlling the driver (using sysfs-interface),
- obtaining the data from driver (via input-events),
- performing any callibration/conversion/filtering specific to the device &
- passing up the pr
Hi, Chinmay
Thank you for your greate help.
And I have another question, the framework will call the activate() in
HAL when the first app register the listener, at this point, HAL can report
the accel-values to framework, but another app register it's listener, the
framework will not call the a
Hi,
The setdelay() is a hint to the driver from the framework as to how
frequently it should report the events.
You can implement the following:
1. Pass the value to the driver using the sysfs/ioctls. (preferably SYSFS)
2. Use interrupt-based functionality to updated a array of accel-values in
I am implement the HAL of ACCELEROMETER for android2.3, and
the ACCELEROMETER chip will generate the data when the data changes, which
mean that the data rate generated by the chip is not constant!, so will I
return the last copy of data or drop some data when the user change the
getting data rat