Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: spi0_adiAdxl362_config.c
- Revision:
- 5:0728bde67bdb
- Parent:
- 0:85855ecd3257
- Child:
- 6:9d393a9677f4
--- a/spi0_adiAdxl362_config.c Tue Jun 04 10:09:11 2019 +0000
+++ b/spi0_adiAdxl362_config.c Wed Jun 05 05:39:15 2019 +0000
@@ -40,43 +40,43 @@
* @brief:
*-----------------------------------------------------------------------------
*/
-#include "adi_sense_config_types.h"
+ #include "admw_config_types.h"
-ADI_SENSE_CONFIG spi0_adiAdxl362_config = {
+ADMW_CONFIG spi0_adiAdxl362_config = {
.versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
+ .productId = ADMW_PRODUCT_ID_ADMW1001,
+ .admw1001 = {
.power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
+ .powerMode = ADMW1001_POWER_MODE_FULL,
},
.measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
+ .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
+ .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
.cycleInterval = 1000000,
},
.channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
+ [ADMW1001_CHANNEL_ID_SPI_0] = {
/* Accelerometer X-Axis (and common settings for physical channel) */
.enableChannel = true,
.disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .compensationChannel = ADMW1001_CHANNEL_ID_NONE,
.measurementsPerCycle = 10,
.extraSettlingTime = 10000,
/* Optional threshold limits applied to the processed measurement results */
.lowThreshold = -6.0,
.highThreshold = 6.0,
.spiChannelConfig = {
- .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_A_DEF_L1,
+ .sensor = ADMW1001_SPI_SENSOR_ACCELEROMETER_A_DEF_L1,
},
},
- [ADI_SENSE_1000_CHANNEL_ID_SPI_1] = {
+ [ADMW1001_CHANNEL_ID_SPI_1] = {
/* Accelerometer Y-Axis (virtual channel) */
.enableChannel = true,
/* Optional threshold limits applied to the processed measurement results */
.lowThreshold = -6.0,
.highThreshold = 6.0,
},
- [ADI_SENSE_1000_CHANNEL_ID_SPI_2] = {
+ [ADMW1001_CHANNEL_ID_SPI_2] = {
/* Accelerometer Z-Axis (virtual channel) */
.enableChannel = true,
/* Optional adjustment applied to the processed measurement result */