|
#define | BHY_PAGE_SYSTEM 1 |
|
#define | BHY_PARAM_SYSTEM_META_EVENT_CTRL 1 |
|
#define | BHY_PARAM_SYSTEM_FIFO_CTRL 2 |
|
#define | BHY_PARAM_SYSTEM_STAUS_BANK_0 3 |
|
#define | BHY_PARAM_SYSTEM_STAUS_BANK_1 4 |
|
#define | BHY_PARAM_SYSTEM_STAUS_BANK_2 5 |
|
#define | BHY_PARAM_SYSTEM_STAUS_BANK_3 6 |
|
#define | BHY_PARAM_SYSTEM_CUSTOM_VERSION 24 |
|
#define | BHY_PARAM_SYSTEM_WAKE_UP_META_EVENT_CTRL 29 |
|
#define | BHY_PARAM_SYSTEM_HOST_IRQ_TIMESTAMP 30 |
|
#define | BHY_PARAM_SYSTEM_PHYSICAL_SENSOR_STATUS 31 |
|
#define | BHY_PARAM_SYSTEM_PHYSICAL_SENSOR_PRESENT 32 |
|
#define | BHY_PARAM_SYSTEM_PHYSICAL_SENSOR_DETAIL_0 32 |
|
#define | BHY_PARAM_SYSTEM_PHYSICAL_SENSOR_DETAIL_ACC 33 |
|
#define | VS_NON_WAKEUP 0 |
|
#define | VS_WAKEUP 32 |
|
#define | VS_FLUSH_NONE 0x00 |
|
#define | VS_FLUSH_ALL 0xFF |
|
#define | VS_FLUSH_SINGLE 0x01 |
|
#define | META_EVENT_1_INT_ENABLE_BIT (1<<0) |
|
#define | META_EVENT_1_ENABLE_BIT (1<<1) |
|
|
enum | bhy_virtual_sensor_t {
VS_TYPE_ACCELEROMETER = VS_ID_ACCELEROMETER
, VS_TYPE_GEOMAGNETIC_FIELD = VS_ID_MAGNETOMETER
, VS_TYPE_ORIENTATION = VS_ID_ORIENTATION
, VS_TYPE_GYROSCOPE = VS_ID_GYROSCOPE
,
VS_TYPE_LIGHT = VS_ID_LIGHT
, VS_TYPE_PRESSURE = VS_ID_BAROMETER
, VS_TYPE_TEMPERATURE = VS_ID_TEMPERATURE
, VS_TYPE_PROXIMITY = VS_ID_PROXIMITY
,
VS_TYPE_GRAVITY = VS_ID_GRAVITY
, VS_TYPE_LINEAR_ACCELERATION = VS_ID_LINEAR_ACCELERATION
, VS_TYPE_ROTATION_VECTOR = VS_ID_ROTATION_VECTOR
, VS_TYPE_RELATIVE_HUMIDITY = VS_ID_HUMIDITY
,
VS_TYPE_AMBIENT_TEMPERATURE = VS_ID_AMBIENT_TEMPERATURE
, VS_TYPE_MAGNETIC_FIELD_UNCALIBRATED = VS_ID_UNCALIBRATED_MAGNETOMETER
, VS_TYPE_GAME_ROTATION_VECTOR = VS_ID_GAME_ROTATION_VECTOR
, VS_TYPE_GYROSCOPE_UNCALIBRATED = VS_ID_UNCALIBRATED_GYROSCOPE
,
VS_TYPE_SIGNIFICANT_MOTION = VS_ID_SIGNIFICANT_MOTION
, VS_TYPE_STEP_DETECTOR = VS_ID_STEP_DETECTOR
, VS_TYPE_STEP_COUNTER = VS_ID_STEP_COUNTER
, VS_TYPE_GEOMAGNETIC_ROTATION_VECTOR = VS_ID_GEOMAGNETIC_ROTATION_VECTOR
,
VS_TYPE_HEART_RATE = VS_ID_HEART_RATE
, VS_TYPE_TILT = VS_ID_TILT_DETECTOR
, VS_TYPE_WAKEUP = VS_ID_WAKE_GESTURE
, VS_TYPE_GLANCE = VS_ID_GLANCE_GESTURE
,
VS_TYPE_PICKUP = VS_ID_PICKUP_GESTURE
, VS_TYPE_CUS1 = VS_ID_CUS1
, VS_TYPE_CUS2 = VS_ID_CUS2
, VS_TYPE_CUS3 = VS_ID_CUS3
,
VS_TYPE_CUS4 = VS_ID_CUS4
, VS_TYPE_CUS5 = VS_ID_CUS5
, VS_TYPE_ACTIVITY_RECOGNITION = VS_ID_ACTIVITY
} |
|
enum | bhy_meta_event_type_t {
BHY_META_EVENT_TYPE_NOT_USED = 0
, BHY_META_EVENT_TYPE_FLUSH_COMPLETE = 1
, BHY_META_EVENT_TYPE_SAMPLE_RATE_CHANGED = 2
, BHY_META_EVENT_TYPE_POWER_MODE_CHANGED = 3
,
BHY_META_EVENT_TYPE_ERROR = 4
, BHY_META_EVENT_TYPE_ALGORITHM = 5
, BHY_META_EVENT_TYPE_SENSOR_ERROR = 11
, BHY_META_EVENT_TYPE_FIFO_OVERFLOW = 12
,
BHY_META_EVENT_TYPE_DYNAMIC_RANGE_CHANGED = 13
, BHY_META_EVENT_TYPE_FIFO_WATERMARK = 14
, BHY_META_EVENT_TYPE_SELF_TEST_RESULTS = 15
, BHY_META_EVENT_TYPE_INITIALIZED = 16
} |
|
enum | bhy_gp_register_type_t {
BHY_GP_REG_20 = 0x4B
, BHY_GP_REG_21 = 0x4C
, BHY_GP_REG_22 = 0x4D
, BHY_GP_REG_23 = 0x4E
,
BHY_GP_REG_24 = 0x4F
, BHY_GP_REG_31 = 0x56
, BHY_GP_REG_32 = 0x57
, BHY_GP_REG_33 = 0x58
,
BHY_GP_REG_34 = 0x59
, BHY_GP_REG_35 = 0x5A
, BHY_GP_REG_36 = 0x5B
, BHY_GP_REG_46 = 0x65
,
BHY_GP_REG_47 = 0x66
, BHY_GP_REG_48 = 0x67
, BHY_GP_REG_49 = 0x68
, BHY_GP_REG_50 = 0x69
,
BHY_GP_REG_51 = 0x6A
, BHY_GP_REG_52 = 0x6B
} |
|
enum | bhy_data_type_t {
BHY_DATA_TYPE_PADDING = 0
, BHY_DATA_TYPE_QUATERNION = 1
, BHY_DATA_TYPE_VECTOR = 2
, BHY_DATA_TYPE_SCALAR_U8 = 3
,
BHY_DATA_TYPE_SCALAR_U16 = 4
, BHY_DATA_TYPE_SCALAR_S16 = 5
, BHY_DATA_TYPE_SCALAR_U24 = 6
, BHY_DATA_TYPE_SENSOR_EVENT = 7
,
BHY_DATA_TYPE_UNCALIB_VECTOR = 8
, BHY_DATA_TYPE_META_EVENT = 9
, BHY_DATA_TYPE_BSX = 10
, BHY_DATA_TYPE_DEBUG = 11
,
BHY_DATA_TYPE_CUS1 = 12
, BHY_DATA_TYPE_CUS2 = 13
, BHY_DATA_TYPE_CUS3 = 14
, BHY_DATA_TYPE_CUS4 = 15
,
BHY_DATA_TYPE_CUS5 = 16
} |
|
enum | bhy_meta_event_fifo_type_t { META_EVENT_IN_NON_WAKEUP_FIFO = 1
, META_EVENT_IN_WAKEUP_FIFO = 29
} |
|
enum | bhy_physical_sensor_index_type_t { PHYSICAL_SENSOR_INDEX_ACC = 0
, PHYSICAL_SENSOR_INDEX_MAG
, PHYSICAL_SENSOR_INDEX_GYRO
, PHYSICAL_SENSOR_COUNT
} |
|
header file of bhy_uc_driver.c
Copyright (C) 2015 - 2016 Bosch Sensortec GmbH
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
The information provided is believed to be accurate and reliable. The copyright holder assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of the copyright holder.
- Date
- 12/15/2016