1.2.4.4.14 SYS_CONSOLE_Message Function

1.2.4.4.14 C

void SYS_CONSOLE_Message(const SYS_CONSOLE_HANDLE handle, const char *message)

1.2.4.4.14 Summary

Prints a message to the console.

1.2.4.4.14 Description

This function prints a message to the console.

1.2.4.4.14 Precondition

SYS_CONSOLE_Initialize must have returned a valid object handle.

1.2.4.4.14 Parameters

ParametersDescription
handleHandle to a console instance
messagePointer to a message string to be displayed

1.2.4.4.14 Returns

None.

1.2.4.4.14 Example

SYS_CONSOLE_HANDLE myConsoleHandle;

myConsoleHandle = SYS_CONSOLE_HandleGet(SYS_CONSOLE_INDEX_0);

if (myConsoleHandle != SYS_CONSOLE_HANDLE_INVALID)
{
    SYS_CONSOLE_Message(myConsoleHandle, "Printing using SYS_Message");
}

1.2.4.4.14 Remarks

Call SYS_CONSOLE_MESSAGE macro to print on the default console instance 0.