# swmTrace Reference

The swmTrace library functions and macros provide a logging utility that helps you to debug an application running on the Arm Cortex-M33 core.

# Summary

Macros

- swmLogVerbose : Shortcut macro for verbose logging.
- swmLogInfo : Shortcut macro for informational logging.
- swmLogWarn : Shortcut macro for warnings.
- swmLogError : Shortcut macro for errors.
- swmLogFatal : Shortcut macro for fatal errors.
- swmLogTestPass : Shortcut macro for test PASS indicators.
- swmLogTestFail : Shortcut macro for test FAIL indicators.

Functions

- swmTrace_init : Trace initialization function.
- swmTrace_txInProgress : Provides indication if transmission is in progress.
- swmTrace_printf : This provides a printf-like implementation for all possible trace mechanisms.
- swmTrace_vprintf : This provides a vprintf-like implementation for all possible trace mechanisms.
- swmTrace_getch : A method to allow characters to be passed from the logging target to the traced application.
- swmLog : A general logging method that allows us to output only trace messages if a particular log level has been selected.