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.
Fork of Babyseat_NewFirmware_copy_sean by
ADISENSE Host Logging functions
[ADISENSE 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 (ADI_SENSE_PLATFORM_LOG_CONFIG *pConfig) |
| Initialise the Log interface and allocate resources. | |
| void | adi_sense_LogClose (void) |
| Close the Log interface and free resources. | |
| void | adi_sense_LogLevel (ADI_SENSE_LOG_LEVEL maxLevel) |
| Set the minimum priority level for the log messages. | |
| void | adi_sense_Log (ADI_SENSE_LOG_LEVEL level, const char *format,...) |
| Print a log message to the platform log interface. | |
Enumeration Type Documentation
| enum ADI_SENSE_LOG_LEVEL |
Log message priority levels
- Enumerator:
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] level Log message priority level [in] format Format string and variable argument list, if any
Definition at line 99 of file adi_sense_log.cpp.
| void adi_sense_LogClose | ( | void | ) |
Close the Log interface and free resources.
Definition at line 79 of file adi_sense_log.cpp.
| void adi_sense_LogLevel | ( | ADI_SENSE_LOG_LEVEL | maxLevel ) |
Set the minimum priority level for the log messages.
- Parameters:
-
[in] maxLevel priority level
Sets the log priority level. Messages with priority lower that this level will not be passed to the log interface.
Definition at line 91 of file adi_sense_log.cpp.
| ADI_SENSE_RESULT adi_sense_LogOpen | ( | ADI_SENSE_PLATFORM_LOG_CONFIG * | pConfig ) |
Initialise the Log interface and allocate resources.
- Returns:
- Status
- ADI_SENSE_SUCCESS Call completed successfully.
- ADI_SENSE_NO_MEM Failed to allocate memory for device context.
Definition at line 58 of file adi_sense_log.cpp.
Generated on Wed Jul 13 2022 00:12:51 by
1.7.2
