Analog Devices / Mbed OS ADISense1000_Example_FW

Fork of ADISense_ExampleFirmware by Sean Wilson

Embed: (wiki syntax)

« Back to documentation index

ADI Sense Host Logging functions

ADI Sense Host Logging functions
[ADI Sense Host Portability Layer]

Enumerations

enum  ADI_SENSE_LOG_LEVEL { ADI_SENSE_LOG_LEVEL_ERROR = 0, ADI_SENSE_LOG_LEVEL_WARN, ADI_SENSE_LOG_LEVEL_INFO, ADI_SENSE_LOG_LEVEL_DEBUG }

Functions

ADI_SENSE_RESULT adi_sense_LogOpen (void)
 Initialise the Log interface and allocate resources.
void adi_sense_LogClose (void)
 Close the Log interface and free resources.
void adi_sense_Log (ADI_SENSE_LOG_LEVEL level, const char *format,...)
 Print a log message to the platform log interface.

Enumeration Type Documentation

Log message priority levels

Enumerator:
ADI_SENSE_LOG_LEVEL_ERROR 

Error message priority

ADI_SENSE_LOG_LEVEL_WARN 

Warning message priority

ADI_SENSE_LOG_LEVEL_INFO 

Information message priority

ADI_SENSE_LOG_LEVEL_DEBUG 

Debug message priority

Definition at line 70 of file adi_sense_log.h.


Function Documentation

void adi_sense_Log ( ADI_SENSE_LOG_LEVEL  level,
const char *  format,
  ... 
)

Print a log message to the platform log interface.

Parameters:
[in]levelLog message priority level
[in]formatFormat string and variable argument list, if any

Definition at line 94 of file adi_sense_log.cpp.

void adi_sense_LogClose ( void   )

Close the Log interface and free resources.

Definition at line 82 of file adi_sense_log.cpp.

ADI_SENSE_RESULT adi_sense_LogOpen ( void   )

Initialise the Log interface and allocate resources.

Returns:
Status

Definition at line 65 of file adi_sense_log.cpp.