-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: sensor: icm42670: supports icm42670-P and icm42670-S
samples: sensor: icm42670: adds sample to support enhanced features Adds official TDK Invensense Inc. driver for icm42670-P and icm42670-S 6-axis sensor. Also adds SPI and I2C interface support. Adds APEX features, such as Pedometer, Tilt detection, Wake on Motion and Significant Motion Detector. Adds AML support for icm42670-S to demonstrate pointing, gestures recognition, quaternion computing features with AML library built for CM4 target. Add samples for this driver. Validated with custom setup based on nrf52dk_nrf52832 + icm42670-p/icm42670-s EVB board Build ok by running: west -T samples\sensor\icm42670\data_stream -p nrf52dk/nrf52832 Build ok by running: west -T samples\sensor\icm42670\apex -p nrf52dk/nrf52832 Build ok by running: west -T samples\sensor\icm42670\aml_pointing -p nrf52dk/nrf52832 Signed-off-by: Aurelie Fontaine <aurelie.fontaine@tdk.com>icm42670
- Loading branch information
Aurelie Fontaine
committed
Apr 11, 2024
1 parent
9b17a95
commit e45513b
Showing
58 changed files
with
11,051 additions
and
1,133 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
/* | ||
* | ||
* Copyright (c) [2015] by InvenSense, Inc. | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
* | ||
*/ | ||
|
||
/** @defgroup InvError Error code | ||
* @brief Common error code | ||
* | ||
* @ingroup EmbUtils | ||
* @{ | ||
*/ | ||
|
||
#ifndef _INV_ERROR_H_ | ||
#define _INV_ERROR_H_ | ||
|
||
/** @brief Common error code definition | ||
*/ | ||
enum inv_error { | ||
INV_ERROR_SUCCESS = 0, /**< no error */ | ||
INV_ERROR = -1, /**< unspecified error */ | ||
INV_ERROR_NIMPL = -2, /**< function not implemented for given arguments */ | ||
INV_ERROR_TRANSPORT = -3, /**< error occurred at transport level */ | ||
INV_ERROR_TIMEOUT = -4, /**< action did not complete in the expected time window */ | ||
INV_ERROR_SIZE = -5, /**< argument's size is not suitable to complete requested action */ | ||
INV_ERROR_OS = -6, /**< error related to OS */ | ||
INV_ERROR_IO = -7, /**< error related to IO operation */ | ||
INV_ERROR_MEM = -9, /**< not enough memory to complete requested action */ | ||
INV_ERROR_HW = -10, /**< error at HW level */ | ||
INV_ERROR_BAD_ARG = -11, /**< provided arguments are not good to perform requested action */ | ||
INV_ERROR_UNEXPECTED = -12, /**< something unexpected happened */ | ||
INV_ERROR_FILE = -13, /**< cannot access file or unexpected format */ | ||
INV_ERROR_PATH = -14, /**< invalid file path */ | ||
INV_ERROR_IMAGE_TYPE = -15, /**< error when image type is not managed */ | ||
INV_ERROR_WATCHDOG = -16, /**< error when device doesn't respond to ping */ | ||
}; | ||
|
||
#endif /* _INV_ERROR_H_ */ | ||
|
||
/** @} */ |
This file contains 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
Oops, something went wrong.