0.01.00
logging.cpp File Reference

This file implements the tasklet scheduler. More...

Macros

#define WPP_NAME   "logging.tmh"
 
#define otLogDump(aFormat, ...)   _otDynamicLog(aInstance, aLogLevel, aLogRegion, aFormat OPENTHREAD_CONFIG_LOG_SUFFIX, ## __VA_ARGS__)
 

Functions

void otDump (otInstance *, otLogLevel, otLogRegion, const char *, const void *, const size_t)
 This method dumps bytes to the log in a human-readable fashion. More...
 
const char * otThreadErrorToString (otError aError)
 This function converts an otError enum into a string. More...
 
void otPlatLog (otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat,...)
 This function outputs logs. More...
 

Detailed Description

This file implements the tasklet scheduler.

Function Documentation

§ otDump()

void otDump ( otInstance aIntsance,
otLogLevel  aLevel,
otLogRegion  aRegion,
const char *  aId,
const void *  aBuf,
const size_t  aLength 
)

This method dumps bytes to the log in a human-readable fashion.

Parameters
[in]aInstanceA pointer to the instance.
[in]aLevelThe log level.
[in]aRegionThe log region.
[in]aIdA pointer to a NULL-terminated string that is printed before the bytes.
[in]aBufA pointer to the buffer.
[in]aLengthNumber of bytes to print.

§ otThreadErrorToString()

const char* otThreadErrorToString ( otError  aError)

This function converts an otError enum into a string.

Parameters
[in]aErrorAn otError enum.
Returns
A string representation of an otError.