Wifly Driver
V1.0
|
Go to the source code of this file.
Macros | |
#define | STRACE "TRC->" |
#define | SINFO "INF->" |
#define | SERROR "ERR->" |
#define | SCRLF "\r\n" |
#define | LV_TRACE 3 |
#define | LV_INFO 2 |
#define | LV_ERR 1 |
#define | LOGSTRING_VALUE "LOG: %s %d\r\n" |
Functions | |
uint32_t | Log_start (uint32_t PortNum, uint32_t baudrate) |
void | Log_log (uint8_t severity, uint8_t logLevel, const char *restrict format,...) |
void | Log_slog (const char *restrict format,...) |
void | Log_level (uint8_t logLevel) |
#define LV_ERR 1 |
Error log level
Definition at line 21 of file Log.h.
Referenced by Log_level(), Wifly_ChangeBaudRate(), Wifly_ConfigAPMode(), Wifly_leave(), Wifly_logStart(), Wifly_start(), and Wifly_WLANConnect().
#define LV_INFO 2 |
Info log level
Definition at line 20 of file Log.h.
Referenced by Log_level(), Wifly_ChangeBaudRate(), Wifly_close(), Wifly_getChannel(), Wifly_getIp(), Wifly_getMac(), Wifly_getRSSI(), Wifly_getTime(), Wifly_getTx(), Wifly_getVer(), Wifly_getWlan(), Wifly_leave(), Wifly_open(), Wifly_ping(), Wifly_reset(), and Wifly_WLANConfigConnect().
#define LV_TRACE 3 |
#define SCRLF "\r\n" |
#define SERROR "ERR->" |
#define SINFO "INF->" |
#define STRACE "TRC->" |
void Log_level | ( | uint8_t | logLevel | ) |
Writes the selected log level prefix
logLevel | Log level message. (LV_TRACE, LV_INFO, LV_ERROR) |
Definition at line 84 of file Log.c.
References LV_ERR, LV_INFO, LV_TRACE, PortNumLog, PrintF_print(), SERROR, SINFO, STRACE, and xMutexLOG.
Referenced by Log_log().
void Log_log | ( | uint8_t | severity, |
uint8_t | logLevel, | ||
const char *restrict | format, | ||
... | |||
) |
Writes the string format with the selected logLevel. If the severity level of the system chosen is greater than or equal to the level of log message then written
severity | Log level severity of the system. |
logLevel | Log level message. (LV_TRACE, LV_INFO, LV_ERROR) |
format | String that contains a format string that follows the same specifications as format in printf. |
Definition at line 61 of file Log.c.
References Log_level(), PortNumLog, PrintF_print(), SCRLF, and xMutexLOG.
Referenced by Wifly_ChangeBaudRate(), Wifly_close(), Wifly_ConfigAPMode(), Wifly_getChannel(), Wifly_getIp(), Wifly_getMac(), Wifly_getRSSI(), Wifly_getTime(), Wifly_getTx(), Wifly_getVer(), Wifly_getWlan(), Wifly_leave(), Wifly_logStart(), Wifly_open(), Wifly_ping(), Wifly_reset(), Wifly_start(), Wifly_WLANConfigConnect(), and Wifly_WLANConnect().
void Log_slog | ( | const char *restrict | format, |
... | |||
) |
Writes the string format selected
format | String that contains a format string that follows the same specifications as format in printf. |
Definition at line 48 of file Log.c.
References PortNumLog, PrintF_print(), STRACE, and xMutexLOG.
uint32_t Log_start | ( | uint32_t | PortNum, |
uint32_t | baudrate | ||
) |
Initialize UART port, and baud rate transmission.
PortNum | UART port number (0,1,2,3). |
baudrate | UART port Baud rate. |
Definition at line 28 of file Log.c.
References FALSE, NULL, PortNumLog, PrintF_start(), and xMutexLOG.
Referenced by Wifly_logStart().