Skip to content

File printf.h

FileList > driver > Inc > printf.h

Go to the source code of this file

  • #include <stdbool.h>
  • #include "UART.h"

Public Functions

Type Name
int printf (const char * fmt, ...)
bool printf_init (UART_HandleTypeDef * huart)
int snprintf (char * buffer, size_t bufsz, char const * fmt, ...)
char * uart_fgets (char * buffer, size_t maxsz)

Macros

Type Name
define NANOPRINTF_USE_BINARY_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_FIELD_WIDTH_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_SMALL_FORMAT_SPECIFIERS 1
define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS 0

Public Functions Documentation

function printf

int printf (
    const char * fmt,
    ...
) 

function printf_init

bool printf_init (
    UART_HandleTypeDef * huart
) 

function snprintf

int snprintf (
    char * buffer,
    size_t bufsz,
    char const * fmt,
    ...
) 

function uart_fgets

char * uart_fgets (
    char * buffer,
    size_t maxsz
) 

Macro Definition Documentation

define NANOPRINTF_USE_BINARY_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_BINARY_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_FIELD_WIDTH_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_FIELD_WIDTH_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_SMALL_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_SMALL_FORMAT_SPECIFIERS `1`

define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS

#define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS `0`


The documentation for this class was generated from the following file driver/Inc/printf.h