feat(Hardware Support): Qualcomm SSC sensors through FastRPC#590
Draft
gio3k wants to merge 7 commits into
Draft
Conversation
Adds a default value for MountMatrix (just an identity matrix) Signed-off-by: Gianni Spadoni <me@gio.blue>
libloading will help us load dylibs, which we need for the libssc / FastRPC implementation Signed-off-by: Gianni Spadoni <me@gio.blue>
This implements support for the Qualcomm Sensor Core (SSC), which provides accel and gyro to some Snapdragon based handhelds made in the past 8 years or so This requires libssc as a runtime dependency, and requires libloading as a build time & runtime dependency As FastRPC devices don't actually show up in a "fastrpc" subsystem, and instead use the "misc" subsystem, some logic has been added to udev/device.rs to check for fastrpc devices and fake the subsystem Signed-off-by: Gianni Spadoni <me@gio.blue>
Based on IIOIMUDevice Signed-off-by: Gianni Spadoni <me@gio.blue>
Signed-off-by: Gianni Spadoni <me@gio.blue>
Makes sure we don't get stuck trying to init the sensor if the subsystem isn't ready Signed-off-by: Gianni Spadoni <me@gio.blue>
Also ups the gyro scaling from 14.0 -> 16.0 Signed-off-by: Gianni Spadoni <me@gio.blue>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for the FastRPC "subsystem" and the Qualcomm Sensor Core
When combined with the correct sensor data and hexagonrpc, this can provide accelerometer & gyroscope support to Snapdragon handhelds that use the SSC for that
Big changes, in no order:
I'm opening this as a draft as I have a couple concerns:
Also, minor naming concern:
Maybe the ssc driver should be split into two, something like:
drivers/ssc/runtime.rs, drivers/ssc/bindings.rsdrivers/ssc_imu/driver.rs, drivers/ssc_imu/event.rsThis is because SSC can provide other sensor data in the future aside from gyro / accel.
Where would I put the
drivers/sscfolder in that case - it seems out of place to have it there if it's just the core SSC stuff?