Lines Matching defs:HubConnection
36 struct HubConnection : public Thread { struct
41 enum ProximitySensorType {
72 HubConnection(); argument
78 typedef uint32_t rate_q10_t; // q10 means lower 10 bits are for fractions
80 static inline uint64_t period_ns_to_frequency_q10(nsecs_t period_ns) { in period_ns_to_frequency_q10()
84 static inline nsecs_t frequency_q10_to_period_ns(uint64_t frequency_q10) { in frequency_q10_to_period_ns()
92 {
100 struct ConfigCmd
111 struct MsgCmd
117 struct SensorState {
126 struct FirstSample
136 struct RawThreeAxisSample
142 struct ThreeAxisSample
148 struct OneAxisSample
181 static HubConnection *sInstance; argument
185 Mutex mLock;
187 RingBuffer mRing;
189 void *mActivityCbCookie;
190 ActivityFunc mActivityCb;
192 float mMagBias[3];
193 uint8_t mMagAccuracy;
194 uint8_t mMagAccuracyRestore;
196 float mGyroBias[3];
198 SensorState mSensorState[NUM_COMMS_SENSORS_PLUS_1];
200 uint64_t mStepCounterOffset;
201 uint64_t mLastStepCount;
203 int mFd;
204 int mInotifyPollIndex;
205 struct pollfd mPollFds[3];
206 int mNumPollFds;
242 DISALLOW_EVIL_CONSTRUCTORS(HubConnection); argument