smartsens 2.0.0.0

Macros
Smart Sens Registers List
Smart Sens Click Driver

List of registers of Smart Sens Click driver. More...

## Macros
#define | SMARTSENS_FLASHIMG 0 /*< Firmware image for flash include */
| Smart Sens application preset. More...
#define | SMARTSENS_FLASH 1 /*< Boot firmware from flash */
#define | SMARTSENS_RAM 0 /*< Upload and boot firmware from RAM */
#define | SMARTSENS_REG_COMMAND_INPUT 0x00
| Smart Sens description register. More...
#define | SMARTSENS_REG_WAKE_UP_FIFO 0x01
#define | SMARTSENS_REG_NON_WAKE_UP_FIFO 0x02
#define | SMARTSENS_REG_STATUS_DEBUG_FIFO 0x03
#define | SMARTSENS_REG_CHIP_CTRL 0x05
#define | SMARTSENS_REG_HOST_INTERFACE_CTRL 0x06
#define | SMARTSENS_REG_HOST_INTERRUPT_CTRL 0x07
#define | SMARTSENS_REG_RESET_REQUEST 0x14
#define | SMARTSENS_REG_TIMESTAMP_EVENT_REQUEST 0x15
#define | SMARTSENS_REG_HOST_CTRL 0x16
#define | SMARTSENS_REG_HOST_STATUS 0x17
#define | SMARTSENS_REG_HOST_CRC 0x18191A1B
#define | SMARTSENS_REG_FUSER2_PRODUCT_ID 0x1C
#define | SMARTSENS_REG_FUSER2_REVISION_ID 0x1D
#define | SMARTSENS_REG_ROM_VERSION 0x1E1F
#define | SMARTSENS_REG_KERNEL_VERSION 0x2021
#define | SMARTSENS_REG_USER_VERSION 0x2223
#define | SMARTSENS_REG_FEATURE_STATUS 0x24
#define | SMARTSENS_REG_BOOT_STATUS 0x25
#define | SMARTSENS_REG_HOST_INTERRUPT_TIMESTAMP 0x26
#define | SMARTSENS_REG_CHIP_ID 0x2B
#define | SMARTSENS_REG_INTERRUPT_STATUS 0x2D
#define | SMARTSENS_REG_ERROR_VALUE 0x2E
#define | SMARTSENS_REG_ERROR_AUX 0x2F
#define | SMARTSENS_REG_DEBUG_VALUE 0x30
#define | SMARTSENS_REG_DEBUG_STATE 0x31
#define | SMARTSENS_CMD_DOWNLOAD_POST_MORTEM_DATA 0x0001
| Smart Sens control commands. More...
#define | SMARTSENS_CMD_UPLOAD_TO_RAM 0x0002
#define | SMARTSENS_CMD_BOOT_RAM 0x0003
#define | SMARTSENS_CMD_ERASE_FLASH 0x0004
#define | SMARTSENS_CMD_WRITE_FLASH 0x0005
#define | SMARTSENS_CMD_BOOT_FLASH 0x0006
#define | SMARTSENS_CMD_SET_SENSOR_DATA_INJECTION 0x0007
#define | SMARTSENS_CMD_INJECT_SENSOR_DATA 0x0008
#define | SMARTSENS_CMD_FIFO_FLUSH 0x0009
#define | SMARTSENS_CMD_SOFT_PASS_THROUGH 0x000A
#define | SMARTSENS_CMD_REQUEST_SENSOR_SELF_TEST 0x000B
#define | SMARTSENS_CMD_REQUEST_SENSOR_FAST_OFFSET_COMPENSATION 0x000C
#define | SMARTSENS_CMD_CONFIGURE_SENSOR 0x000D
#define | SMARTSENS_CMD_CHANGE_SENSOR_DYNAMIC_RANGE 0x000E
#define | SMARTSENS_CMD_SET_CHANGE_SENSITIVITY 0x000F
#define | SMARTSENS_CMD_DEBUG_TEST 0x0010
#define | SMARTSENS_CMD_DUT_CONTINUE 0x0011
#define | SMARTSENS_CMD_DUT_START_TEST 0x0012
#define | SMARTSENS_CMD_CTRL_FIFO_FORMAT 0x0015
#define | SMARTSENS_CMD_RAISE_SPEED 0x0017
#define | SMARTSENS_CMD_SYSTEM_PARAMETERS_READ_MASK 0x1000
#define | SMARTSENS_CMD_META_EVENT_CTRL_NON_WAKE_UP_FIFO 0x0101
#define | SMARTSENS_CMD_META_EVENT_CTRL_WAKE_UP_FIFO 0x0102
#define | SMARTSENS_CMD_META_EVENT_CTRL_FIFO_CTRL 0x0103
#define | SMARTSENS_CMD_META_EVENT_CTRL_FIRMWARE_VERSION 0x0104
#define | SMARTSENS_CMD_META_EVENT_CTRL_TIMESTAMPS 0x0105
#define | SMARTSENS_CMD_META_EVENT_CTRL_FRAMEWORK_STATUS 0x0106
#define | SMARTSENS_CMD_META_EVENT_CTRL_VIRUAL_SENSOR_PRESENT 0x011F
#define | SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_PRESENT 0x0120
#define | SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_INFO 0x0121
#define | SMARTSENS_CMD_CALIBRATION_STATE_ACCELEROMETER 0x0201
#define | SMARTSENS_CMD_CALIBRATION_STATE_GYROSCOPE 0x0203
#define | SMARTSENS_CMD_CALIBRATION_STATE_MAGNETOMETER 0x0205
#define | SMARTSENS_CMD_SIC_MATRIX 0x027D
#define | SMARTSENS_CMD_BSX_VERSION 0x027E
#define | SMARTSENS_CMD_VIRTUAL_SENSOR_INFO 0x0300
#define | SMARTSENS_START_FLASH_ADR 0x00001F84
| Smart Sens flash start adress for firmware. More...

## Detailed Description

List of registers of Smart Sens Click driver.

## Macro Definition Documentation

## ◆ SMARTSENS_CMD_BOOT_FLASH

#define SMARTSENS_CMD_BOOT_FLASH 0x0006

## ◆ SMARTSENS_CMD_BOOT_RAM

#define SMARTSENS_CMD_BOOT_RAM 0x0003

## ◆ SMARTSENS_CMD_BSX_VERSION

#define SMARTSENS_CMD_BSX_VERSION 0x027E

## ◆ SMARTSENS_CMD_CALIBRATION_STATE_ACCELEROMETER

#define SMARTSENS_CMD_CALIBRATION_STATE_ACCELEROMETER 0x0201

## ◆ SMARTSENS_CMD_CALIBRATION_STATE_GYROSCOPE

#define SMARTSENS_CMD_CALIBRATION_STATE_GYROSCOPE 0x0203

## ◆ SMARTSENS_CMD_CALIBRATION_STATE_MAGNETOMETER

#define SMARTSENS_CMD_CALIBRATION_STATE_MAGNETOMETER 0x0205

## ◆ SMARTSENS_CMD_CHANGE_SENSOR_DYNAMIC_RANGE

#define SMARTSENS_CMD_CHANGE_SENSOR_DYNAMIC_RANGE 0x000E

## ◆ SMARTSENS_CMD_CONFIGURE_SENSOR

#define SMARTSENS_CMD_CONFIGURE_SENSOR 0x000D

## ◆ SMARTSENS_CMD_CTRL_FIFO_FORMAT

#define SMARTSENS_CMD_CTRL_FIFO_FORMAT 0x0015

## ◆ SMARTSENS_CMD_DEBUG_TEST

#define SMARTSENS_CMD_DEBUG_TEST 0x0010

## ◆ SMARTSENS_CMD_DOWNLOAD_POST_MORTEM_DATA

#define SMARTSENS_CMD_DOWNLOAD_POST_MORTEM_DATA 0x0001

Smart Sens control commands.

Specified commands for control of Smart Sens Click driver.

## ◆ SMARTSENS_CMD_DUT_CONTINUE

#define SMARTSENS_CMD_DUT_CONTINUE 0x0011

## ◆ SMARTSENS_CMD_DUT_START_TEST

#define SMARTSENS_CMD_DUT_START_TEST 0x0012

## ◆ SMARTSENS_CMD_ERASE_FLASH

#define SMARTSENS_CMD_ERASE_FLASH 0x0004

## ◆ SMARTSENS_CMD_FIFO_FLUSH

#define SMARTSENS_CMD_FIFO_FLUSH 0x0009

## ◆ SMARTSENS_CMD_INJECT_SENSOR_DATA

#define SMARTSENS_CMD_INJECT_SENSOR_DATA 0x0008

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_FIFO_CTRL

#define SMARTSENS_CMD_META_EVENT_CTRL_FIFO_CTRL 0x0103

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_FIRMWARE_VERSION

#define SMARTSENS_CMD_META_EVENT_CTRL_FIRMWARE_VERSION 0x0104

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_FRAMEWORK_STATUS

#define SMARTSENS_CMD_META_EVENT_CTRL_FRAMEWORK_STATUS 0x0106

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_NON_WAKE_UP_FIFO

#define SMARTSENS_CMD_META_EVENT_CTRL_NON_WAKE_UP_FIFO 0x0101

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_INFO

#define SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_INFO 0x0121

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_PRESENT

#define SMARTSENS_CMD_META_EVENT_CTRL_PHYSICAL_SENSOR_PRESENT 0x0120

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_TIMESTAMPS

#define SMARTSENS_CMD_META_EVENT_CTRL_TIMESTAMPS 0x0105

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_VIRUAL_SENSOR_PRESENT

#define SMARTSENS_CMD_META_EVENT_CTRL_VIRUAL_SENSOR_PRESENT 0x011F

## ◆ SMARTSENS_CMD_META_EVENT_CTRL_WAKE_UP_FIFO

#define SMARTSENS_CMD_META_EVENT_CTRL_WAKE_UP_FIFO 0x0102

## ◆ SMARTSENS_CMD_RAISE_SPEED

#define SMARTSENS_CMD_RAISE_SPEED 0x0017

## ◆ SMARTSENS_CMD_REQUEST_SENSOR_FAST_OFFSET_COMPENSATION

#define SMARTSENS_CMD_REQUEST_SENSOR_FAST_OFFSET_COMPENSATION 0x000C

## ◆ SMARTSENS_CMD_REQUEST_SENSOR_SELF_TEST

#define SMARTSENS_CMD_REQUEST_SENSOR_SELF_TEST 0x000B

## ◆ SMARTSENS_CMD_SET_CHANGE_SENSITIVITY

#define SMARTSENS_CMD_SET_CHANGE_SENSITIVITY 0x000F

## ◆ SMARTSENS_CMD_SET_SENSOR_DATA_INJECTION

#define SMARTSENS_CMD_SET_SENSOR_DATA_INJECTION 0x0007

## ◆ SMARTSENS_CMD_SIC_MATRIX

#define SMARTSENS_CMD_SIC_MATRIX 0x027D

## ◆ SMARTSENS_CMD_SOFT_PASS_THROUGH

#define SMARTSENS_CMD_SOFT_PASS_THROUGH 0x000A

## ◆ SMARTSENS_CMD_SYSTEM_PARAMETERS_READ_MASK

#define SMARTSENS_CMD_SYSTEM_PARAMETERS_READ_MASK 0x1000

## ◆ SMARTSENS_CMD_UPLOAD_TO_RAM

#define SMARTSENS_CMD_UPLOAD_TO_RAM 0x0002

## ◆ SMARTSENS_CMD_VIRTUAL_SENSOR_INFO

#define SMARTSENS_CMD_VIRTUAL_SENSOR_INFO 0x0300

## ◆ SMARTSENS_CMD_WRITE_FLASH

#define SMARTSENS_CMD_WRITE_FLASH 0x0005

## ◆ SMARTSENS_FLASH

#define SMARTSENS_FLASH 1 /*< Boot firmware from flash */

## ◆ SMARTSENS_FLASHIMG

#define SMARTSENS_FLASHIMG 0 /*< Firmware image for flash include */

Smart Sens application preset.

Specified application will use flash or RAM. If you use flash and firmware image is already uploaded to flash you can set SMARTSENS_FLASHIMG to 0 to not include firmware image.

Note
  If you want to use RAM example you need to set flash selectors to 0. When RAM selector is being used it will include firmware image because it needs to be booted every time on the start of the application. When Flash selector is selected and you already have flash image in your devices flash you can disable flash image slector because you don't need to include it in your project.

## ◆ SMARTSENS_RAM

#define SMARTSENS_RAM 0 /*< Upload and boot firmware from RAM */

## ◆ SMARTSENS_REG_BOOT_STATUS

#define SMARTSENS_REG_BOOT_STATUS 0x25

## ◆ SMARTSENS_REG_CHIP_CTRL

#define SMARTSENS_REG_CHIP_CTRL 0x05

## ◆ SMARTSENS_REG_CHIP_ID

#define SMARTSENS_REG_CHIP_ID 0x2B

## ◆ SMARTSENS_REG_COMMAND_INPUT

#define SMARTSENS_REG_COMMAND_INPUT 0x00

Smart Sens description register.

Specified register for description of Smart Sens Click driver.

## ◆ SMARTSENS_REG_DEBUG_STATE

#define SMARTSENS_REG_DEBUG_STATE 0x31

## ◆ SMARTSENS_REG_DEBUG_VALUE

#define SMARTSENS_REG_DEBUG_VALUE 0x30

## ◆ SMARTSENS_REG_ERROR_AUX

#define SMARTSENS_REG_ERROR_AUX 0x2F

## ◆ SMARTSENS_REG_ERROR_VALUE

#define SMARTSENS_REG_ERROR_VALUE 0x2E

## ◆ SMARTSENS_REG_FEATURE_STATUS

#define SMARTSENS_REG_FEATURE_STATUS 0x24

## ◆ SMARTSENS_REG_FUSER2_PRODUCT_ID

#define SMARTSENS_REG_FUSER2_PRODUCT_ID 0x1C

## ◆ SMARTSENS_REG_FUSER2_REVISION_ID

#define SMARTSENS_REG_FUSER2_REVISION_ID 0x1D

## ◆ SMARTSENS_REG_HOST_CRC

#define SMARTSENS_REG_HOST_CRC 0x18191A1B

## ◆ SMARTSENS_REG_HOST_CTRL

#define SMARTSENS_REG_HOST_CTRL 0x16

## ◆ SMARTSENS_REG_HOST_INTERFACE_CTRL

#define SMARTSENS_REG_HOST_INTERFACE_CTRL 0x06

## ◆ SMARTSENS_REG_HOST_INTERRUPT_CTRL

#define SMARTSENS_REG_HOST_INTERRUPT_CTRL 0x07

## ◆ SMARTSENS_REG_HOST_INTERRUPT_TIMESTAMP

#define SMARTSENS_REG_HOST_INTERRUPT_TIMESTAMP 0x26

## ◆ SMARTSENS_REG_HOST_STATUS

#define SMARTSENS_REG_HOST_STATUS 0x17

## ◆ SMARTSENS_REG_INTERRUPT_STATUS

#define SMARTSENS_REG_INTERRUPT_STATUS 0x2D

## ◆ SMARTSENS_REG_KERNEL_VERSION

#define SMARTSENS_REG_KERNEL_VERSION 0x2021

## ◆ SMARTSENS_REG_NON_WAKE_UP_FIFO

#define SMARTSENS_REG_NON_WAKE_UP_FIFO 0x02

## ◆ SMARTSENS_REG_RESET_REQUEST

#define SMARTSENS_REG_RESET_REQUEST 0x14

## ◆ SMARTSENS_REG_ROM_VERSION

#define SMARTSENS_REG_ROM_VERSION 0x1E1F

## ◆ SMARTSENS_REG_STATUS_DEBUG_FIFO

#define SMARTSENS_REG_STATUS_DEBUG_FIFO 0x03

## ◆ SMARTSENS_REG_TIMESTAMP_EVENT_REQUEST

#define SMARTSENS_REG_TIMESTAMP_EVENT_REQUEST 0x15

## ◆ SMARTSENS_REG_USER_VERSION

#define SMARTSENS_REG_USER_VERSION 0x2223

## ◆ SMARTSENS_REG_WAKE_UP_FIFO

#define SMARTSENS_REG_WAKE_UP_FIFO 0x01

## ◆ SMARTSENS_START_FLASH_ADR

#define SMARTSENS_START_FLASH_ADR 0x00001F84

Smart Sens flash start adress for firmware.

Recommended flash address to start writing firmware image.