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: common/utils.h
- Revision:
- 5:0728bde67bdb
- Parent:
- 0:85855ecd3257
- Child:
- 15:b5d57daeb7c0
diff -r 2ca06eee5735 -r 0728bde67bdb common/utils.h
--- a/common/utils.h Tue Jun 04 10:09:11 2019 +0000
+++ b/common/utils.h Wed Jun 05 05:39:15 2019 +0000
@@ -1,8 +1,8 @@
#ifndef __UTILS_H__
#define __UTILS_H__
-#include "adi_sense_api.h"
-#include "adi_sense_1000/adi_sense_1000_api.h"
+#include "admw_api.h"
+#include "admw1001/admw1001_api.h"
#ifdef __cplusplus
extern "C" {
@@ -10,34 +10,34 @@
/* Utility function to print the status read from the ADI Sense device */
void utils_printStatus(
- ADI_SENSE_STATUS *pStatus);
+ ADMW_STATUS *pStatus);
/* Utility function to print data samples read from the ADI Sense device */
void utils_printSamples(
- ADI_SENSE_DATA_SAMPLE *pSampleBuffer,
+ ADMW_DATA_SAMPLE *pSampleBuffer,
uint32_t nNumSamples,
- ADI_SENSE_MEASUREMENT_MODE eMeasurementMode);
+ ADMW_MEASUREMENT_MODE eMeasurementMode);
/* Utility function to register callbacks for ADI Sense device notification signals */
-ADI_SENSE_RESULT utils_registerCallbacks(
- ADI_SENSE_DEVICE_HANDLE hDevice,
+ADMW_RESULT utils_registerCallbacks(
+ ADMW_DEVICE_HANDLE hDevice,
volatile bool *pbDataReady,
volatile bool *pbError,
volatile bool *pbAlert);
/* Utility function to de-register callbacks for ADI Sense device notification signals */
-ADI_SENSE_RESULT utils_deregisterCallbacks(
- ADI_SENSE_DEVICE_HANDLE hDevice);
+ADMW_RESULT utils_deregisterCallbacks(
+ ADMW_DEVICE_HANDLE hDevice);
/* Utility function to run measurements on ADI Sense device, according to its current
* configuration, and display data samples and device status following each cycle */
-ADI_SENSE_RESULT utils_runMeasurement(
- ADI_SENSE_DEVICE_HANDLE hDevice,
- ADI_SENSE_MEASUREMENT_MODE eMeasurementMode);
+ADMW_RESULT utils_runMeasurement(
+ ADMW_DEVICE_HANDLE hDevice,
+ ADMW_MEASUREMENT_MODE eMeasurementMode);
/* Utility function to retrieve and print the factory calibration coefficients table from the ADI Sense device */
-ADI_SENSE_RESULT utils_printCalTable(
- ADI_SENSE_DEVICE_HANDLE hDevice);
+ADMW_RESULT utils_printCalTable(
+ ADMW_DEVICE_HANDLE hDevice);
#ifdef __cplusplus
}