|
|
#define | BHY_WR_FUNC_PTR |
| Define the calling convention of YOUR bus communication routine. More...
|
|
#define | BHY_BUS_WRITE_FUNC(device_addr, reg_addr, reg_data, wr_len) bus_write(device_addr, reg_addr, reg_data, wr_len) |
|
#define | BHY_SPI_READ_MASK |
|
#define | BHY_RD_FUNC_PTR s8 (*bus_read)(u8, u8, u8 *, u16) |
|
#define | BHY_BRD_FUNC_PTR s8 (*burst_read)(u8, u8, u8 *, u32) |
|
#define | BHY_BUS_READ_FUNC(device_addr, reg_addr, reg_data, r_len) bus_read(device_addr, reg_addr, reg_data, r_len) |
|
#define | BHY_BURST_READ_FUNC(device_addr, register_addr, register_data, rd_len) burst_read(device_addr, register_addr, register_data, rd_len) |
|
#define | BHY_MDELAY_DATA_TYPE u32 |
|
|
#define | BHY_I2C_ADDR1 (0x28) |
|
#define | BHY_I2C_ADDR2 (0x29) |
|
|
#define | BHY_INIT_VALUE (0) |
|
#define | BHY_GEN_READ_WRITE_LENGTH (1) |
|
#define | BHY_BYTES_REMAINING_LENGTH (2) |
|
#define | BHY_CRC_HOST_LENGTH (4) |
|
#define | BHY_PARAMETER_ACK_LENGTH (250) |
|
#define | BHY_READ_BUFFER_LENGTH (16) |
|
#define | BHY_PARAMETER_ACK_DELAY (50) |
|
#define | BHY_SIGNATURE_MEM_LEN (17) |
|
|
#define | BHY_SHIFT_BIT_POSITION_BY_01_BIT (1) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_02_BITS (2) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_03_BITS (3) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_04_BITS (4) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_05_BITS (5) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_06_BITS (6) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_07_BITS (7) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_08_BITS (8) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_16_BITS (16) |
|
#define | BHY_SHIFT_BIT_POSITION_BY_24_BITS (24) |
|
|
#define | BHY_BYTES_REMAINING_SIZE (2) |
|
#define | BHY_BYTES_REMAINING_LSB (0) |
|
#define | BHY_BYTES_REMAINING_MSB (1) |
|
#define | BHY_CRC_HOST_SIZE (4) |
|
#define | BHY_CRC_HOST_LSB (0) |
|
#define | BHY_CRC_HOST_XLSB (1) |
|
#define | BHY_CRC_HOST_XXLSB (2) |
|
#define | BHY_CRC_HOST_MSB (3) |
|
#define | BHY_CRC_HOST_FILE_LSB (4) |
|
#define | BHY_CRC_HOST_FILE_XLSB (5) |
|
#define | BHY_CRC_HOST_FILE_XXLSB (6) |
|
#define | BHY_CRC_HOST_FILE_MSB (7) |
|
#define | BHY_INDEX_LEN (19) |
|
#define | BHY_WRITE_BUFFER_SIZE (8) |
|
#define | BHY_WRITE_BUFFER_1_REG (0) |
|
#define | BHY_WRITE_BUFFER_2_REG (1) |
|
#define | BHY_WRITE_BUFFER_3_REG (2) |
|
#define | BHY_WRITE_BUFFER_4_REG (3) |
|
#define | BHY_WRITE_BUFFER_5_REG (4) |
|
#define | BHY_WRITE_BUFFER_6_REG (5) |
|
#define | BHY_WRITE_BUFFER_7_REG (6) |
|
#define | BHY_WRITE_BUFFER_8_REG (7) |
|
#define | BHY_READ_BUFFER_SIZE (16) |
|
#define | BHY_READ_BUFFER_1_REG (0) |
|
#define | BHY_READ_BUFFER_2_REG (1) |
|
#define | BHY_READ_BUFFER_3_REG (2) |
|
#define | BHY_READ_BUFFER_4_REG (3) |
|
#define | BHY_READ_BUFFER_5_REG (4) |
|
#define | BHY_READ_BUFFER_6_REG (5) |
|
#define | BHY_READ_BUFFER_7_REG (6) |
|
#define | BHY_READ_BUFFER_8_REG (7) |
|
#define | BHY_READ_BUFFER_9_REG (8) |
|
#define | BHY_READ_BUFFER_10_REG (9) |
|
#define | BHY_READ_BUFFER_11_REG (10) |
|
#define | BHY_READ_BUFFER_12_REG (11) |
|
#define | BHY_READ_BUFFER_13_REG (12) |
|
#define | BHY_READ_BUFFER_14_REG (13) |
|
#define | BHY_READ_BUFFER_15_REG (14) |
|
#define | BHY_READ_BUFFER_16_REG (15) |
|
#define | BHY_FIFO_SENSOR_DATA_SIZE (100) |
|
|
#define | BHY_NULL_PTR ((void *) 0) |
|
#define | BHY_NULL ((u8)0) |
|
#define | BHY_COMM_RES ((s8)-1) |
|
#define | BHY_OUT_OF_RANGE ((s8)-2) |
|
#define | BHY_SUCCESS ((u8)0) |
|
#define | BHY_ERROR ((s8)-3) |
|
#define | BHY_RAMPATCH_NOT_MATCH ((s8)-4) |
|
#define | BHY_RAMPATCH_NOT_SUPPORT ((s8)-5) |
|
#define | BHY_CRC_ERROR ((s8)-6) |
|
#define | BHY_PRODUCT_ID_ERROR ((s8)-7) |
|
#define | BHY_DELAY_SETTLING_TIME (5) |
|
#define | BHY_FIFO_BUFFER_SIZE (50) |
|
#define | BHY_RETURN_FUNCTION_TYPE s8 |
|
|
#define | BHY_I2C_REG_BUFFER_ZERO_ADDR (0x00) |
|
#define | BHY_I2C_REG_BUFFER_END_ADDR (0x31) |
|
#define | BHY_I2C_REG_BUFFER_LENGTH ((BHY_I2C_REG_BUFFER_END_ADDR) - (BHY_I2C_REG_BUFFER_ZERO_ADDR) + 1) |
|
#define | BHY_I2C_REG_FIFO_FLUSH_ADDR (0x32) |
|
#define | BHY_I2C_REG_CHIP_CONTROL_ADDR (0x34) |
|
#define | BHY_I2C_REG_HOST_STATUS_ADDR (0x35) |
|
#define | BHY_I2C_REG_INT_STATUS_ADDR (0x36) |
|
#define | BHY_I2C_REG_CHIP_STATUS_ADDR (0x37) |
|
#define | BHY_I2C_REG_BYTES_REMAINING_LSB_ADDR (0x38) |
|
#define | BHY_I2C_REG_BYTES_REMAINING_MSB_ADDR (0x39) |
|
#define | BHY_I2C_REG_PARAMETER_ACKNOWLEDGE_ADDR (0x3A) |
|
#define | BHY_I2C_REG_PARAMETER_READ_BUFFER_ZERO (0x3B) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_ADDR (0x54) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR (0x55) |
|
#define | BHY_I2C_REG_PARAMETER_WRITE_BUFFER_ZERO (0x5C) |
| parameter write buffer
|
|
#define | BHY_I2C_REG_PARAMETER_REQUEST_ADDR (0x64) |
|
#define | BHY_BHY_HOST_IRQ_TIMESTAMP_ADDR (0x6C) |
|
#define | BHY_ROM_VERSION_ADDR (0x70) |
|
#define | BHY_RAM_VERSION_ADDR (0x72) |
|
#define | BHY_I2C_REG_PRODUCT_ID_ADDR (0x90) |
|
#define | BHY_I2C_REG_REVISION_ID_ADDR (0x91) |
|
#define | BHY_I2C_REG_UPLOAD_0_ADDR (0x94) |
|
#define | BHY_I2C_REG_UPLOAD_1_ADDR (0x95) |
|
#define | BHY_I2C_REG_UPLOAD_DATA_ADDR (0x96) |
|
#define | BHY_I2C_REG_CRC_HOST_ADDR (0x97) |
|
#define | BHY_I2C_REG_RESET_REQUEST_ADDR (0x9B) |
|
|
#define | BHY_HOST_IRQ_TIMESTAMP_SIZE (4) |
|
#define | BHY_HOST_IRQ_TIMESTAMP_LSB_DATA (0) |
|
#define | BHY_HOST_IRQ_TIMESTAMP_XLSB_DATA (1) |
|
#define | BHY_HOST_IRQ_TIMESTAMP_XXLSB_DATA (2) |
|
#define | BHY_HOST_IRQ_TIMESTAMP_MSB_DATA (3) |
|
|
#define | BHY_ROM_VERSION_SIZE (2) |
|
#define | BHY_ROM_VERSION_LSB_DATA (0) |
|
#define | BHY_ROM_VERSION_MSB_DATA (1) |
|
#define | BHY_RAM_VERSION_SIZE (2) |
|
#define | BHY_RAM_VERSION_LSB_DATA (0) |
|
#define | BHY_RAM_VERSION_MSB_DATA (1) |
|
#define | BHY_FIFO_DATA_BUFFER (200) |
|
#define | BHY_ROM_VERSION_DI01 (u16)(0x2112) |
|
#define | BHY_ROM_VERSION_DI03 (u16)(0x2DAD) |
|
|
#define | BHY_SENSOR_ID_INDEX (1) |
|
#define | BHY_RVECTOR_X_LSB_DATA (0) |
|
#define | BHY_RVECTOR_X_MSB_DATA (1) |
|
#define | BHY_RVECTOR_Y_LSB_DATA (2) |
|
#define | BHY_RVECTOR_Y_MSB_DATA (3) |
|
#define | BHY_RVECTOR_Z_LSB_DATA (4) |
|
#define | BHY_RVECTOR_Z_MSB_DATA (5) |
|
#define | BHY_RVECTOR_W_LSB_DATA (6) |
|
#define | BHY_RVECTOR_W_MSB_DATA (7) |
|
#define | BHY_RVECTOR_ACCURACY_LSB_DATA (8) |
|
#define | BHY_RVECTOR_ACCURACY_MSB_DATA (9) |
|
#define | BHY_RVECTOR_LENGTH (10) |
|
#define | BHY_BAROMETER_LSB_DATA (0) |
|
#define | BHY_BAROMETER_XLSB_DATA (1) |
|
#define | BHY_BAROMETER_MSB_DATA (2) |
|
#define | BHY_BAROMETER_LENGTH (3) |
|
#define | BHY_TWO_BYTE_LENGTH (2) |
|
#define | BHY_STEP_AMBIENT_TEMPERATURE_MSB_DATA (1) |
|
#define | BHY_STEP_AMBIENT_TEMPERATURE_LSB_DATA (0) |
|
#define | BHY_ACTIVITY_BIT_ON (1) |
|
#define | BHY_ACTIVITY_BIT_OFF (0) |
|
#define | BHY_ACTIVITY_LENGTH (2) |
|
#define | BHY_BSXA_X_LSB_DATA (0) |
|
#define | BHY_BSXA_X_XLSB_DATA (1) |
|
#define | BHY_BSXA_X_XXLSB_DATA (2) |
|
#define | BHY_BSXA_X_MSB_DATA (3) |
|
#define | BHY_BSXA_Y_LSB_DATA (4) |
|
#define | BHY_BSXA_Y_XLSB_DATA (5) |
|
#define | BHY_BSXA_Y_XXLSB_DATA (6) |
|
#define | BHY_BSXA_Y_MSB_DATA (7) |
|
#define | BHY_BSXA_Z_LSB_DATA (8) |
|
#define | BHY_BSXA_Z_XLSB_DATA (9) |
|
#define | BHY_BSXA_Z_XXLSB_DATA (10) |
|
#define | BHY_BSXA_Z_MSB_DATA (11) |
|
#define | BHY_BSXA_TIMESTAMP_LSB_DATA (12) |
|
#define | BHY_BSXA_TIMESTAMP_XLSB_DATA (13) |
|
#define | BHY_BSXA_TIMESTAMP_XXLSB_DATA (14) |
|
#define | BHY_BSXA_TIMESTAMP_MSB_DATA (15) |
|
#define | BHY_BSXA_VECTOR_DATA (16) |
|
#define | BHY_BSXA_LENGTH (17) |
|
#define | BHY_BHY_META_EVENT_NUMBER (0) |
|
#define | BHY_BHY_META_EVENT_SENSOR_TYPE (1) |
|
#define | BHY_BHY_META_EVENT_SPEC_VALUE (2) |
|
#define | BHY_BHY_META_EVENT_LENGTH (3) |
|
#define | BHY_X_LSB_DATA (0) |
|
#define | BHY_X_MSB_DATA (1) |
|
#define | BHY_Y_LSB_DATA (2) |
|
#define | BHY_Y_MSB_DATA (3) |
|
#define | BHY_Z_LSB_DATA (4) |
|
#define | BHY_Z_MSB_DATA (5) |
|
#define | BHY_VECTOR_DATA (6) |
|
#define | BHY_XYZ_VECTOR_LENGTH (7) |
|
#define | INCREMENT_INDEX (1) |
|
#define | DECREMENT_INDEX (1) |
|
#define | BHY_TWO_LENGTH (2) |
|
#define | BHY_LSB_DATA (0) |
|
#define | BHY_MSB_DATA (1) |
|
#define | BHY_FALSE (0) |
|
#define | BHY_TRUE (1) |
|
#define | BHY_RVECTOR_X_LSB_DATA (0) |
|
#define | BHY_RVECTOR_X_MSB_DATA (1) |
|
#define | BHY_RVECTOR_Y_LSB_DATA (2) |
|
#define | BHY_RVECTOR_Y_MSB_DATA (3) |
|
#define | BHY_RVECTOR_Z_LSB_DATA (4) |
|
#define | BHY_RVECTOR_Z_MSB_DATA (5) |
|
#define | BHY_RVECTOR_W_LSB_DATA (6) |
|
#define | BHY_RVECTOR_W_MSB_DATA (7) |
|
#define | BHY_RVECTOR_ACCURACY_LSB_DATA (8) |
|
#define | BHY_RVECTOR_ACCURACY_MSB_DATA (9) |
|
#define | BHY_RVECTOR_LENGTH (10) |
|
#define | BHY_UNCALIB_X_LSB_DATA (0) |
|
#define | BHY_UNCALIB_X_MSB_DATA (1) |
|
#define | BHY_UNCALIB_Y_LSB_DATA (2) |
|
#define | BHY_UNCALIB_Y_MSB_DATA (3) |
|
#define | BHY_UNCALIB_Z_LSB_DATA (4) |
|
#define | BHY_UNCALIB_Z_MSB_DATA (5) |
|
#define | BHY_BIAS_X_LSB_DATA (6) |
|
#define | BHY_BIAS_X_MSB_DATA (7) |
|
#define | BHY_BIAS_Y_LSB_DATA (8) |
|
#define | BHY_BIAS_Y_MSB_DATA (9) |
|
#define | BHY_BIAS_Z_LSB_DATA (10) |
|
#define | BHY_BIAS_Z_MSB_DATA (11) |
|
#define | BHY_UNCALIB_ACCURACY_DATA (12) |
|
#define | BHY_UNCALIB_LENGTH (13) |
|
|
#define | BHY_PARAMETER_ACK_CHECK (0x80) |
|
#define | BHY_MASK_LSB_DATA (0x00FF) |
|
#define | BHY_MASK_MSB_DATA (0xFF00) |
|
#define | BHY_SIC_MASK_MSB_DATA (0x000000FF) |
|
#define | BHY_SIC_MASK_LSB_DATA (0x0000FF00) |
|
#define | BHY_SIC_MASK_LSB1_DATA (0x00FF0000) |
|
#define | BHY_SIC_MASK_LSB2_DATA (0xFF000000) |
|
#define | BHY_MASK_META_EVENT (0xFF) |
|
|
#define | BHY_PAGE_1 (0x01) |
|
#define | BHY_PAGE_2 (0x02) |
|
#define | BHY_PAGE_3 (0x03) |
|
#define | BHY_PAGE_15 (0x0F) |
|
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_0 (0x00) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_1 (0x01) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_2 (0x02) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_3 (0x03) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_4 (0x04) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_5 (0x05) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_6 (0x06) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_7 (0x07) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_8 (0x08) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_9 (0x09) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_10 (0x0A) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_11 (0x0B) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_12 (0x0C) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_13 (0x0D) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_14 (0x0E) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_15 (0x0F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_16 (0x10) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_17 (0x11) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_18 (0x12) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_19 (0x13) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_20 (0x14) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_21 (0x15) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_22 (0x16) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_23 (0x17) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_24 (0x18) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_25 (0x19) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_30 (0x1E) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_31 (0x1F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_33 (0x21) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_34 (0x22) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_35 (0x23) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_36 (0x24) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_37 (0x25) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_38 (0x26) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_39 (0x27) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_40 (0x28) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_41 (0x29) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_42 (0x2A) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_43 (0x2B) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_44 (0x2C) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_45 (0x2D) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_46 (0x2E) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_47 (0x2F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_48 (0x30) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_49 (0x31) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_50 (0x32) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_51 (0x33) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_52 (0x34) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_53 (0x35) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_54 (0x36) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_55 (0x37) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_56 (0x38) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_57 (0x39) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_63 (0x3F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_64 (0x40) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_65 (0x41) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_66 (0x42) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_67 (0x43) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_68 (0x44) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_73 (0x49) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_74 (0x4A) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_75 (0x4B) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_76 (0x4C) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_77 (0x4D) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_78 (0x4E) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_79 (0x4F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_80 (0x50) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_81 (0x51) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_82 (0x52) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_83 (0x53) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_84 (0x54) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_86 (0x56) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_87 (0x57) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_88 (0x58) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_89 (0x59) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_95 (0x5F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_97 (0x61) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_98 (0x62) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_99 (0x63) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_100 (0x64) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_101 (0x65) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_102 (0x66) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_103 (0x67) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_104 (0x68) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_105 (0x69) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_106 (0x6A) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_107 (0x6B) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_108 (0x6C) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_109 (0x6D) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_110 (0x6E) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_111 (0x6F) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_112 (0x70) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_113 (0x71) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_114 (0x72) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_115 (0x73) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_116 (0x74) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_117 (0x75) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_118 (0x76) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_119 (0x77) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_120 (0x78) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_121 (0x79) |
|
#define | BHY_PARAMETER_REQUEST_READ_PARAMETER_127 (0x7F) |
|
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_0 (0x80) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_1 (0x81) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_2 (0x82) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_3 (0x83) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_4 (0x84) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_5 (0x85) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_6 (0x86) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_7 (0x87) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_8 (0x88) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_9 (0x89) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_10 (0x8A) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_11 (0x8B) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_64 (0xC0) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_65 (0xC1) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_66 (0xC2) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_67 (0xC3) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_68 (0xC4) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_69 (0xC5) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_70 (0xC6) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_71 (0xC7) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_72 (0xC8) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_73 (0xC9) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_74 (0xCA) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_75 (0xCB) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_76 (0xCC) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_77 (0xCD) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_78 (0xCE) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_79 (0xCF) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_80 (0xD0) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_81 (0xD1) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_82 (0xD2) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_83 (0xD3) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_84 (0xD4) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_85 (0xD5) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_86 (0xD6) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_87 (0xD7) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_88 (0xD8) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_89 (0xD9) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_90 (0xDA) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_95 (0xDF) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_97 (0xE1) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_98 (0xE2) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_99 (0xE3) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_100 (0xE4) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_101 (0xE5) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_102 (0xE6) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_103 (0xE7) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_104 (0xE8) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_105 (0xE9) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_106 (0xEA) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_107 (0xEB) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_108 (0xEC) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_109 (0xED) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_110 (0xEE) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_111 (0xEF) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_112 (0xF0) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_113 (0xF1) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_114 (0xF2) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_115 (0xF3) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_116 (0xF4) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_117 (0xF5) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_118 (0xF6) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_119 (0xF7) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_120 (0xF8) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_121 (0xF9) |
|
#define | BHY_PARAMETER_REQUEST_WRITE_PARAMETER_127 (0xFF) |
|
|
#define | PAGE2_SIC_MATRIX_0_1 1 /* X1, X2 */ |
|
#define | PAGE2_SIC_MATRIX_2_3 2 /* X3, Y1 */ |
|
#define | PAGE2_SIC_MATRIX_4_5 3 /* Y2, Y2 */ |
|
#define | PAGE2_SIC_MATRIX_6_7 4 /* Z1, Z2 */ |
|
#define | PAGE2_SIC_MATRIX_8 5 /* Z3, */ |
|
#define | PAGE2_CUS_FIRMWARE_VERSION 125 /* return CUS SDK version information */ |
|
#define | PAGE2_BSX_VERSION 126 /* return BSX library version information */ |
|
|
#define | BHY_META_EVENT1_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT1_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT2_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT2_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT3_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT3_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT4_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT4_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT5_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT5_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT6_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT6_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT7_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT7_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT8_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT8_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT9_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT9_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT10_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT10_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT11_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT11_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT12_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT12_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT13_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT13_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT14_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT14_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT15_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT15_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT16_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT16_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT17_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT17_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT18_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT18_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT19_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT19_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT20_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT20_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT21_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT21_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT22_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT22_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT23_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT23_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT24_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT24_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT25_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT25_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT26_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT26_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT27_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT27_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT28_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT28_EVENT_ENABLE (0x80) |
|
#define | BHY_META_EVENT29_INTR_ENABLE (0x01) |
|
#define | BHY_META_EVENT29_EVENT_ENABLE (0x02) |
|
#define | BHY_META_EVENT30_INTR_ENABLE (0x04) |
|
#define | BHY_META_EVENT30_EVENT_ENABLE (0x08) |
|
#define | BHY_META_EVENT31_INTR_ENABLE (0x10) |
|
#define | BHY_META_EVENT31_EVENT_ENABLE (0x20) |
|
#define | BHY_META_EVENT32_INTR_ENABLE (0x40) |
|
#define | BHY_META_EVENT32_EVENT_ENABLE (0x80) |
|
|
#define | BHY_SENSOR_BANK_STATUS_DATA_AVAILABLE (0x01) |
|
#define | BHY_SENSOR_BANK_STATUS_I2C_NACK (0x02) |
|
#define | BHY_SENSOR_BANK_STATUS_DEVICE_ID_ERROR (0x04) |
|
#define | BHY_SENSOR_BANK_STATUS_TRANSIENT_ERROR (0x08) |
|
#define | BHY_SENSOR_BANK_STATUS_DATA_LOST (0x10) |
|
#define | BHY_SENSOR_BANK_STATUS_POWER_MODE (0xE0) |
|
#define | BHY_POWER_MODE_SENSOR_NOT_PRESENT (0x00) |
|
#define | BHY_POWER_MODE_POWER_DOWN (0x01) |
|
#define | BHY_POWER_MODE_POWER_SUSPEND (0x02) |
|
#define | BHY_POWER_MODE_POWER_SELFTEST (0x03) |
|
#define | BHY_POWER_MODE_POWER_INTR_MOTION (0x04) |
|
#define | BHY_POWER_MODE_POWER_ONE_SHOT (0x05) |
|
#define | BHY_POWER_MODE_POWER_LOW_POWER (0x06) |
|
#define | BHY_POWER_MODE_POWER_ACTIVE (0x07) |
|
#define | BHY_SIGNATURE_1 (0) |
|
#define | BHY_SIGNATURE_2 (1) |
|
#define | BHY_SIG_FLAG_1_POS (2) |
|
#define | BHY_SIG_FLAG_2_POS (3) |
|
#define | BHY_SIGNATURE_LENGTH (16) |
|
#define | BHY_RAM_WRITE_LENGTH (4) |
|
#define | BHY_RAM_WRITE_LENGTH_API (32) |
|
#define | BHY_CHIP_CTRL_ENABLE_1 (0x02) |
|
#define | BHY_CHIP_CTRL_ENABLE_2 (0x01) |
|
#define | BHY_UPLOAD_DATA (0x00) |
|
#define | BHY_RESET_ENABLE (0x01) |
|
#define | BHY_INIT_READ_BYTES (19) |
|
#define | BHY_INIT_BYTE_MINUS_ONE (1) |
|
#define | BHY_CHECK_BYTE (3) |
|
#define | BHY_IMAGE_SIGNATURE1 (0x2A) |
|
#define | BHY_IMAGE_SIGNATURE2 (0x65) |
|
#define | BHY_GET_ROMVEREXP(bhy_sig_flag) ((bhy_sig_flag>>11)&0x03) |
|
#define | BHY_ROM_VER_ANY (0x00) |
|
#define | BHY_ROM_VER_DI01 (0x01) |
|
#define | BHY_ROM_VER_DI02 (0x02) |
|
#define | BHY_ROM_VER_DI03 (0x03) |
|
|
#define | BHY_META_EVENT_1 (1) |
|
#define | BHY_META_EVENT_2 (2) |
|
#define | BHY_META_EVENT_3 (3) |
|
#define | BHY_META_EVENT_4 (4) |
|
#define | BHY_META_EVENT_5 (5) |
|
#define | BHY_META_EVENT_6 (6) |
|
#define | BHY_META_EVENT_7 (7) |
|
#define | BHY_META_EVENT_8 (8) |
|
#define | BHY_META_EVENT_9 (9) |
|
#define | BHY_META_EVENT_10 (10) |
|
#define | BHY_META_EVENT_11 (11) |
|
#define | BHY_META_EVENT_12 (12) |
|
#define | BHY_META_EVENT_13 (13) |
|
#define | BHY_META_EVENT_14 (14) |
|
#define | BHY_META_EVENT_15 (15) |
|
#define | BHY_META_EVENT_16 (16) |
|
#define | BHY_META_EVENT_17 (17) |
|
#define | BHY_META_EVENT_18 (18) |
|
#define | BHY_META_EVENT_19 (19) |
|
#define | BHY_META_EVENT_20 (20) |
|
#define | BHY_META_EVENT_21 (21) |
|
#define | BHY_META_EVENT_22 (22) |
|
#define | BHY_META_EVENT_23 (23) |
|
#define | BHY_META_EVENT_24 (24) |
|
#define | BHY_META_EVENT_25 (25) |
|
#define | BHY_META_EVENT_26 (26) |
|
#define | BHY_META_EVENT_27 (27) |
|
#define | BHY_META_EVENT_28 (28) |
|
#define | BHY_META_EVENT_29 (29) |
|
#define | BHY_META_EVENT_30 (30) |
|
#define | BHY_META_EVENT_31 (31) |
|
#define | BHY_META_EVENT_32 (32) |
|
|
#define | BHY_NON_WAKEUP_ROTATION_VECTOR (11) |
|
#define | BHY_NON_WAKEUP_GAME_ROTATION_VECTOR (15) |
|
#define | BHY_NON_WAKEUP_GEOMAG_ROTATION_VECTOR (20) |
|
#define | BHY_NON_WAKEUP_ACCELR (1) |
|
#define | BHY_NON_WAKEUP_MAG (2) |
|
#define | BHY_NON_WAKEUP_ORIENTATION (3) |
|
#define | BHY_NON_WAKEUP_GYRO (4) |
|
#define | BHY_NON_WAKEUP_GRAVITY (9) |
|
#define | BHY_NON_WAKEUP_LINEAR_ACCEL (10) |
|
#define | BHY_NON_WAKEUP_LIGHT (5) |
|
#define | BHY_NON_WAKEUP_PROXIMITY (8) |
|
#define | BHY_NON_WAKEUP_HUMIDITY (12) |
|
#define | BHY_NON_WAKEUP_STEP_COUNTER (19) |
|
#define | BHY_NON_WAKEUP_TEMPERATURE (7) |
|
#define | BHY_NON_WAKEUP_AMBIENT_TEMPERATURE (13) |
|
#define | BHY_NON_WAKEUP_BAROMETER (6) |
|
#define | BHY_NON_WAKEUP_SIGNIFICANT_MOTION (17) |
|
#define | BHY_NON_WAKEUP_STEP_DETECTOR (18) |
|
#define | BHY_NON_WAKEUP_TILT_DETECTOR (22) |
|
#define | BHY_NON_WAKEUP_WAKE_GESTURE (23) |
|
#define | BHY_NON_WAKEUP_GLANCE_GESTURE (24) |
|
#define | BHY_NON_WAKEUP_PICKUP_GESTURE (25) |
|
#define | BHY_NON_WAKEUP_UNCALIB_MAG (14) |
|
#define | BHY_NON_WAKEUP_UNCALIB_GYRO (16) |
|
#define | BHY_NON_WAKEUP_HEART_RATE (21) |
|
#define | BHY_NON_WAKEUP_ACTIVITY (31) |
|
#define | BHY_NON_WAKEUP_BSX_C (249) |
|
#define | BHY_NON_WAKEUP_BSX_B (250) |
|
#define | BHY_NON_WAKEUP_BSX_A (251) |
|
#define | BHY_NON_WAKEUP_TIMESTAMP_LSW (252) |
|
#define | BHY_NON_WAKEUP_TIMESTAMP_MSW (253) |
|
#define | BHY_NON_WAKEUP_META_EVENTS (254) |
|
|
#define | BHY_WAKEUP_ROTATION_VECTOR (43) |
|
#define | BHY_WAKEUP_GAME_ROTATION_VECTOR (47) |
|
#define | WAKEUP_GEOMAG_ROTATION_VECTOR (52) |
|
#define | BHY_WAKEUP_ACCEL (33) |
|
#define | BHY_WAKEUP_MAG (34) |
|
#define | BHY_WAKEUP_ORIENTATION (35) |
|
#define | BHY_WAKEUP_GYRO (36) |
|
#define | BHY_WAKEUP_GRAVITY (41) |
|
#define | BHY_WAKEUP_LINEAR_ACCEL (42) |
|
#define | BHY_WAKEUP_LIGHT (37) |
|
#define | BHY_WAKEUP_PROXIMITY (40) |
|
#define | BHY_WAKEUP_HUMIDITY (44) |
|
#define | BHY_WAKEUP_STEP_COUNTER (51) |
|
#define | BHY_WAKEUP_TEMPERATURE (39) |
|
#define | BHY_WAKEUP_AMBIENT_TEMPERATURE (45) |
|
#define | BHY_WAKEUP_BAROMETER (38) |
|
#define | BHY_WAKEUP_SIGNIFICANT_MOTION (49) |
|
#define | BHY_WAKEUP_STEP_DETECTOR (50) |
|
#define | BHY_WAKEUP_TILT_DETECTOR (54) |
|
#define | BHY_WAKEUP_WAKE_GESTURE (55) |
|
#define | BHY_WAKEUP_GLANCE_GESTURE (56) |
|
#define | BHY_WAKEUP_PICKUP_GESTURE (57) |
|
#define | BHY_WAKEUP_UNCALIB_MAG (46) |
|
#define | BHY_WAKEUP_UNCALIB_GYRO (48) |
|
#define | BHY_WAKEUP_HEART_RATE (53) |
|
#define | BHY_WAKEUP_ACTIVITY (63) |
|
#define | BHY_WAKEUP_TIMESTAMP_LSW (246) |
|
#define | BHY_WAKEUP_TIMESTAMP_MSW (247) |
|
#define | BHY_WAKEUP_META_EVENTS (248) |
|
|
#define | BHY_I2C_REG_FIFO_FLUSH__POS (0) |
|
#define | BHY_I2C_REG_FIFO_FLUSH__MSK (0xFF) |
|
#define | BHY_I2C_REG_FIFO_FLUSH__LEN (8) |
|
#define | BHY_I2C_REG_FIFO_FLUSH__REG (BHY_I2C_REG_FIFO_FLUSH_ADDR) |
|
|
#define | BHY_I2C_REG_CHIP_CONTROL__POS (0) |
|
#define | BHY_I2C_REG_CHIP_CONTROL__MSK (0xFF) |
|
#define | BHY_I2C_REG_CHIP_CONTROL__LEN (8) |
|
#define | BHY_I2C_REG_CHIP_CONTROL__REG (BHY_I2C_REG_CHIP_CONTROL_ADDR) |
|
|
#define | BHY_I2C_REG_HOST_STATUS__POS (0) |
|
#define | BHY_I2C_REG_HOST_STATUS__MSK (0xFF) |
|
#define | BHY_I2C_REG_HOST_STATUS__LEN (8) |
|
#define | BHY_I2C_REG_HOST_STATUS__REG (BHY_I2C_REG_HOST_STATUS_ADDR) |
|
#define | BHY_I2C_REG_HOST_STATUS_ALGO_STANDBY__POS (1) |
|
#define | BHY_I2C_REG_HOST_STATUS_ALGO_STANDBY__MSK (0x02) |
|
#define | BHY_I2C_REG_HOST_STATUS_ALGO_STANDBY__LEN (1) |
|
#define | BHY_I2C_REG_HOST_STATUS_ALGO_STANDBY__REG (BHY_I2C_REG_HOST_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_HOST_INTERFACE_ID__POS (2) |
|
#define | BHY_I2C_REG_BHY_HOST_INTERFACE_ID__MSK (0x1C) |
|
#define | BHY_I2C_REG_BHY_HOST_INTERFACE_ID__LEN (3) |
|
#define | BHY_I2C_REG_BHY_HOST_INTERFACE_ID__REG (BHY_I2C_REG_HOST_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_HOST_STATUS_ALGO_ID__POS (5) |
|
#define | BHY_I2C_REG_BHY_HOST_STATUS_ALGO_ID__MSK (0xE0) |
|
#define | BHY_I2C_REG_BHY_HOST_STATUS_ALGO_ID__LEN (3) |
|
#define | BHY_I2C_REG_BHY_HOST_STATUS_ALGO_ID__REG (BHY_I2C_REG_HOST_STATUS_ADDR) |
|
|
#define | BHY_I2C_REG_INT_STATUS__POS (0) |
|
#define | BHY_I2C_REG_INT_STATUS__MSK (0xFF) |
|
#define | BHY_I2C_REG_INT_STATUS__LEN (8) |
|
#define | BHY_I2C_REG_INT_STATUS__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_HOST_INTR__POS (0) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_HOST_INTR__MSK (0x01) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_HOST_INTR__LEN (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_HOST_INTR__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_WM__POS (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_WM__MSK (0x02) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_WM__LEN (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_WM__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_LATENCY__POS (2) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_LATENCY__MSK (0x04) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_LATENCY__LEN (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_LATENCY__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_IMMEDIATE__POS (3) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_IMMEDIATE__MSK (0x08) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_IMMEDIATE__LEN (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_WAKEUP_IMMEDIATE__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_NON_WAKEUP_WM__POS (4) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_NON_WAKEUP_WM__MSK (0x10) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_NON_WAKEUP_WM__LEN (1) |
|
#define | BHY_I2C_REG_BHY_INT_STATUS_NON_WAKEUP_WM__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_LATENCY__POS (5) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_LATENCY__MSK (0x20) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_LATENCY__LEN (1) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_LATENCY__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_IMMEDIATE__POS (6) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_IMMEDIATE__MSK (0x40) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_IMMEDIATE__LEN (1) |
|
#define | BHY_I2C_REG_INT_STATUS_NON_WAKEUP_IMMEDIATE__REG (BHY_I2C_REG_INT_STATUS_ADDR) |
|
|
#define | BHY_I2C_REG_CHIP_STATUS__POS (0) |
|
#define | BHY_I2C_REG_CHIP_STATUS__MSK (0xFF) |
|
#define | BHY_I2C_REG_CHIP_STATUS__LEN (8) |
|
#define | BHY_I2C_REG_CHIP_STATUS__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EEPROM_DETECTED__POS (0) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EEPROM_DETECTED__MSK (0x01) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EEPROM_DETECTED__LEN (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EEPROM_DETECTED__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_DONE__POS (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_DONE__MSK (0x02) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_DONE__LEN (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_DONE__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_ERROR__POS (2) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_ERROR__MSK (0x04) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_ERROR__LEN (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_EE_UPLOAD_ERROR__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
#define | BHY_I2C_REG_CHIP_STATUS_FIRMWARE_IDLE__POS (3) |
|
#define | BHY_I2C_REG_CHIP_STATUS_FIRMWARE_IDLE__MSK (0x08) |
|
#define | BHY_I2C_REG_CHIP_STATUS_FIRMWARE_IDLE__LEN (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_FIRMWARE_IDLE__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
#define | BHY_I2C_REG_CHIP_STATUS_NO_EEPROM__POS (4) |
|
#define | BHY_I2C_REG_CHIP_STATUS_NO_EEPROM__MSK (0x10) |
|
#define | BHY_I2C_REG_CHIP_STATUS_NO_EEPROM__LEN (1) |
|
#define | BHY_I2C_REG_CHIP_STATUS_NO_EEPROM__REG (BHY_I2C_REG_CHIP_STATUS_ADDR) |
|
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT__POS (0) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT__MSK (0xFF) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT__LEN (8) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT__REG (BHY_I2C_REG_PARAMETER_PAGE_SELECT_ADDR) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_PAGE__POS (0) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_PAGE__MSK (0x0F) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_PAGE__LEN (4) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_PAGE__REG (BHY_I2C_REG_PARAMETER_PAGE_SELECT_ADDR) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_SIZE__POS (4) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_SIZE__MSK (0xF0) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_SIZE__LEN (4) |
|
#define | BHY_I2C_REG_PARAMETER_PAGE_SELECT_PARAMETER_SIZE__REG (BHY_I2C_REG_PARAMETER_PAGE_SELECT_ADDR) |
|
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL__POS (0) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL__MSK (0xFF) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL__LEN (8) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ALGO_STABDY_REQUEST__POS (0) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ALGO_STABDY_REQUEST__MSK (0x01) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ALGO_STABDY_REQUEST__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ALGO_STABDY_REQUEST__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ABORT_TRANSFER__POS (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ABORT_TRANSFER__MSK (0x02) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ABORT_TRANSFER__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_ABORT_TRANSFER__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_TRANSFER_COUNT__POS (2) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_TRANSFER_COUNT__MSK (0x04) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_TRANSFER_COUNT__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_TRANSFER_COUNT__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_WAKEUP_FIFO_DISABLE__POS (3) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_WAKEUP_FIFO_DISABLE__MSK (0x08) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_WAKEUP_FIFO_DISABLE__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_WAKEUP_FIFO_DISABLE__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NED_COORDINATE__POS (4) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NED_COORDINATE__MSK (0x10) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NED_COORDINATE__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NED_COORDINATE__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_AP_SUSPEND__POS (5) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_AP_SUSPEND__MSK (0x20) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_AP_SUSPEND__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_AP_SUSPEND__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_SELFTEST__POS (6) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_SELFTEST__MSK (0x40) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_SELFTEST__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_SELFTEST__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NON_WAKEUP_FIFO_DISABLE__POS (7) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NON_WAKEUP_FIFO_DISABLE__MSK (0x80) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NON_WAKEUP_FIFO_DISABLE__LEN (1) |
|
#define | BHY_I2C_REG_HOST_INTERFACE_CONTROL_NON_WAKEUP_FIFO_DISABLE__REG (BHY_I2C_REG_HOST_INTERFACE_CONTROL_ADDR) |
|
|
#define | BHY_I2C_REG_LOAD_PARAMETER_REQUEST__POS (0) |
|
#define | BHY_I2C_REG_LOAD_PARAMETER_REQUEST__MSK (0xFF) |
|
#define | BHY_I2C_REG_LOAD_PARAMETER_REQUEST__LEN (8) |
|
#define | BHY_I2C_REG_LOAD_PARAMETER_REQUEST__REG (BHY_I2C_REG_PARAMETER_REQUEST_ADDR) |
|
|
#define | BHY_I2C_REG_RESET_REQUEST__POS (0) |
|
#define | BHY_I2C_REG_RESET_REQUEST__MSK (0xFF) |
|
#define | BHY_I2C_REG_RESET_REQUEST__LEN (8) |
|
#define | BHY_I2C_REG_RESET_REQUEST__REG (BHY_I2C_REG_RESET_REQUEST_ADDR) |
|
|
#define | BHY_GET_BITSLICE(regvar, bitname) ((regvar & bitname##__MSK) >> bitname##__POS) |
|
#define | BHY_SET_BITSLICE(regvar, bitname, val) |
|
|
#define | BHY_HOST_STATUS_ALGO_STANDBY (0) |
|
#define | BHY_HOST_STATUS_ALGO_ID (1) |
|
#define | BHY_FIFO_SIZE_WAKEUP (0) |
|
#define | BHY_FIFO_SIZE_NON_WAKEUP (1) |
|
#define | BHY_HOST_IRQ_TIMESTAMP (0) |
|
#define | BHY_CURRENT_TIME_STAMP (1) |
|
|
#define | BHY_INT_STATUS_HOST_INTR (0) |
|
#define | BHY_INT_STATUS_WAKEUP_WM (1) |
|
#define | BHY_INT_STATUS_WAKEUP_LATENCY (2) |
|
#define | BHY_INT_STATUS_WAKEUP_IMMEDIATE (3) |
|
#define | BHY_INT_STATUS_NON_WAKEUP_WM (4) |
|
#define | BHY_INT_STATUS_NON_WAKEUP_LATENCY (5) |
|
#define | BHY_INT_STATUS_NON_WAKEUP (6) |
|
|
#define | BHY_CHIP_STATUS_EEPROM_DETECTED (0) |
|
#define | BHY_CHIP_STATUS_EE_UPLOAD_DONE (1) |
|
#define | BHY_CHIP_STATUS_EE_UPLOAD_ERROR (2) |
|
#define | BHY_CHIP_STATUS_FIRMWARE_IDLE (3) |
|
#define | BHY_CHIP_STATUS_NO_EEPROM (4) |
|
|
#define | BHY_PAGE_SELECT_PARAMETER_PAGE (0) |
|
#define | BHY_PAGE_SELECT_PARAMETER_SIZE (1) |
|
|
#define | BHY_HOST_ALGO_STANDBY_REQUEST (0) |
|
#define | BHY_HOST_ABORT_TRANSFER (1) |
|
#define | BHY_HOST_UPDATE_TRANSFER_COUNT (2) |
|
#define | BHY_HOST_WAKEUP_FIFO_DISABLE (3) |
|
#define | BHY_HOST_NED_COORDINATE (4) |
|
#define | BHY_HOST_AP_SUSPEND (5) |
|
#define | BHY_HOST_SELFTEST (6) |
|
#define | BHY_HOST_NON_WAKEUP_FIFO_DISABLE (7) |
|
|
#define | BHY_META_EVENT_BYTE_0 (0) |
|
#define | BHY_META_EVENT_BYTE_1 (1) |
|
#define | BHY_META_EVENT_BYTE_2 (2) |
|
#define | BHY_META_EVENT_BYTE_3 (3) |
|
#define | BHY_META_EVENT_BYTE_4 (4) |
|
#define | BHY_META_EVENT_BYTE_5 (5) |
|
#define | BHY_META_EVENT_BYTE_6 (6) |
|
#define | BHY_META_EVENT_BYTE_7 (7) |
|
|
#define | BHY_META_INTR_ENABLE (0) |
|
#define | BHY_META_EVENT_ENABLE (1) |
|
|
#define | BHY_FLUSH_COMPLETE (0) |
|
#define | BHY_SAMPLE_RATE_CHANGE (1) |
|
#define | BHY_POWER_MODE (2) |
|
#define | BHY_META_ERROR (3) |
|
|
#define | BHY_SENSOR_ERROR (0) |
|
#define | BHY_FIFO_OVERFLOW (1) |
|
|
#define | BHY_DYNAMIC_RANGE (0) |
|
#define | BHY_FIFO_WM (1) |
|
#define | BHY_SELF_TEST_RESULT (2) |
|
#define | BHY_INITIALIZED (3) |
|
|
#define | BHY_FIFO_WATER_MARK_WAKEUP (0) |
|
#define | BHY_FIFO_WATER_MARK_NON_WAKEUP (1) |
|
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_1 (0) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_2 (1) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_3 (3) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_4 (4) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_5 (5) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_6 (6) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_7 (7) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_8 (8) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_9 (9) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_10 (10) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_11 (11) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_12 (12) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_13 (13) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_14 (14) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_15 (15) |
|
#define | BHY_SENSOR_STATUS_BANK_SENSOR_TYPE_16 (16) |
|
|
#define | BHY_SENSOR_NOT_PRESENT (0x00) |
|
#define | BHY_POWER_DOWN (0x01) |
|
#define | BHY_SUSPEND (0x02) |
|
#define | BHY_SELF_TEST (0x03) |
|
#define | BHY_INTR_MOTION (0x04) |
|
#define | BHY_ONE_SHOT (0x05) |
|
#define | BHY_LOW_POWER_ACTIVE (0x06) |
|
#define | BHY_ACTIVE (0x07) |
|
|
#define | PRODUCT_ID_7183 (0x83) |
|