CubeMon-Vue-Demo-STM32F407VGT6U
swo.h File Reference

SWO messages handling. More...

Go to the source code of this file.

Typedefs

typedef enum swoType swoType
 

Enumerations

enum  swoType { SWO_NOT_ACTIVE , SWO_PLAIN_MESSAGES , SWO_RTC_SUPPORT , SWO_NONE }
 

Functions

retStatus swo_init (swoType type)
 Initialize the SWO message type, without initialization the type defaults to /ref SWO_NOT_ACTIVE. More...
 
void swo_print (char text[])
 Print a SWO message. More...
 

Detailed Description

SWO messages handling.

Author
panvicka
Date
2.1.2022

Enumeration Type Documentation

◆ swoType

enum swoType
Enumerator
SWO_NOT_ACTIVE 

SWO messages turned off.

SWO_PLAIN_MESSAGES 

SWO messages printed as they are.

SWO_RTC_SUPPORT 

SWO messages printed with date and time.

SWO_NONE 

dummy, so we always know the enum length

Function Documentation

◆ swo_init()

retStatus swo_init ( swoType  type)

Initialize the SWO message type, without initialization the type defaults to /ref SWO_NOT_ACTIVE.

Parameters
[in]typetype of the SWO messages
Returns
/ref EOK if the initialization succeeded /ref ENODEV in case the /p type is invalid

◆ swo_print()

void swo_print ( char  text[])

Print a SWO message.

Parameters
[in]texttext to print
Note
an \n character to appended to each message to prevent SVN console bug