CAC_smartcushion / Mbed OS AdiSense1000_V21_Smartcushion

Fork of Sean_AdiSense1000_V21 by Rohan Gurav

Revision:
28:4eb837cd71df
Parent:
26:12d0204be712
--- a/inc/adi_sense_log.h	Mon Mar 26 14:50:05 2018 +0000
+++ b/inc/adi_sense_log.h	Thu May 17 10:34:45 2018 +0100
@@ -1,10 +1,3 @@
-/*!
- ******************************************************************************
- * @file:   adi_sense_log.h
- * @brief:  ADISENSE OS-dependent wrapper layer for log functions
- *-----------------------------------------------------------------------------
- */
-
 /*
 Copyright 2017 (c) Analog Devices, Inc.
 
@@ -40,6 +33,13 @@
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*!
+ ******************************************************************************
+ * @file:   adi_sense_log.h
+ * @brief:  ADISENSE OS-dependent wrapper layer for log functions
+ *-----------------------------------------------------------------------------
+ */
+
 #ifndef __ADI_SENSE_LOG_H__
 #define __ADI_SENSE_LOG_H__
 
@@ -77,7 +77,7 @@
 
 
 #ifdef __cplusplus
-extern "C" 
+extern "C"
 {
 #endif
 
@@ -89,13 +89,23 @@
  *         - #ADI_SENSE_NO_MEM  Failed to allocate memory for device context.
  */
 ADI_SENSE_RESULT adi_sense_LogOpen(
-    void);
+    ADI_SENSE_PLATFORM_LOG_CONFIG *pConfig);
 
 /*!
  * @brief Close the Log interface and free resources.
  */
-void adi_sense_LogClose(
-    void);
+void adi_sense_LogClose(void);
+
+/*!
+ * @brief Set the minimum priority level for the log messages.
+ *
+ * @param[in]  maxLevel priority level
+ *
+ * @details Sets the log priority level.  Messages with priority lower
+            that this level will not be passed to the log interface.
+ */
+void adi_sense_LogLevel(
+    ADI_SENSE_LOG_LEVEL maxLevel);
 
 /*!
  * @brief Print a log message to the platform log interface.
@@ -117,4 +127,3 @@
  */
 
 #endif /* __ADI_SENSE_LOG_H__ */
-