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.
utils.h
00001 #ifndef __UTILS_H__ 00002 #define __UTILS_H__ 00003 00004 #include "admw_api.h" 00005 #include "admw1001/admw1001_api.h" 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #endif 00010 00011 /* Utility function to print the status read from the ADI Sense device */ 00012 void utils_printStatus( 00013 ADMW_STATUS *pStatus); 00014 00015 /* Utility function to print data samples read from the ADI Sense device */ 00016 void utils_printSamples( 00017 ADMW_DATA_SAMPLE *pSampleBuffer, 00018 uint32_t nNumSamples, 00019 ADMW_MEASUREMENT_MODE eMeasurementMode); 00020 00021 /* Utility function to register callbacks for ADI Sense device notification signals */ 00022 ADMW_RESULT utils_registerCallbacks( 00023 ADMW_DEVICE_HANDLE hDevice, 00024 volatile bool *pbDataReady, 00025 volatile bool *pbError, 00026 volatile bool *pbAlert); 00027 00028 /* Utility function to de-register callbacks for ADI Sense device notification signals */ 00029 ADMW_RESULT utils_deregisterCallbacks( 00030 ADMW_DEVICE_HANDLE hDevice); 00031 00032 /* Utility function to run measurements on ADI Sense device, according to its current 00033 * configuration, and display data samples and device status following each cycle */ 00034 ADMW_RESULT utils_runMeasurement( 00035 ADMW_DEVICE_HANDLE hDevice, 00036 ADMW_MEASUREMENT_MODE eMeasurementMode); 00037 00038 /* Utility function to retrieve and print the factory calibration coefficients table from the ADI Sense device */ 00039 ADMW_RESULT utils_printCalTable( 00040 ADMW_DEVICE_HANDLE hDevice); 00041 00042 #ifdef __cplusplus 00043 } 00044 #endif 00045 00046 #endif /* __UTILS_H__ */ 00047
Generated on Tue Jul 12 2022 18:18:39 by
