Example application for the STMicroelectronics X-NUCLEO-NFC05A1

Dependencies:   RFAL ST25R3911 BSP05

Embed: (wiki syntax)

« Back to documentation index

logger.h File Reference

logger.h File Reference

serial output log declaration file More...

Go to the source code of this file.

Functions

void logUsartInit (UART_HandleTypeDef *husart)
 Writes out a formated string via UART interface.
int logUsart (const char *format,...)
 Writes out a formated string via UART interface.
char * hex2Str (unsigned char *data, size_t dataLen)
 helper to convert hex data into formated string

Detailed Description

serial output log declaration file

Author:

Definition in file logger.h.


Function Documentation

char* hex2Str ( unsigned char *  data,
size_t  dataLen 
)

helper to convert hex data into formated string

Parameters:
[in]data: pointer to buffer to be dumped.
[in]dataLen: buffer length
Returns:
hex formated string

Definition at line 115 of file logger.cpp.

int logUsart ( const char *  format,
  ... 
)

Writes out a formated string via UART interface.

This function is used to write a formated string via the UART interface.

Definition at line 91 of file logger.cpp.

void logUsartInit ( UART_HandleTypeDef *  husart )

Writes out a formated string via UART interface.

This function is used to write a formated string via the UART interface.

Writes out a formated string via UART interface.

Parameters:
husart: already initalized handle to USART HW
Return values:
none:

Definition at line 71 of file logger.cpp.