#include <stdarg.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "bsp.h"
#include "soc.h"
Go to the source code of this file.
|
| typedef void(* | out_fct_type) (char character, void *buffer, size_t idx, size_t maxlen) |
◆ bsp_efx_vsnprintf_full
| #define bsp_efx_vsnprintf_full vsnprintf_ |
◆ bsp_fctprintf_full
| #define bsp_fctprintf_full fctprintf |
printf with output function You may use this as dynamic alternative to printf() with its fixed _putchar() output
- Parameters
-
| out | An output function which takes one character and an argument pointer |
| arg | An argument pointer for user data passed to output function |
| format | A string that specifies the format of the output |
- Returns
- The number of characters that are sent to the output function, not counting the terminating null character
Definition at line 148 of file print_full.h.
◆ bsp_printf_full
| #define bsp_printf_full printf_ |
Tiny printf implementation You have to implement putchar if you use printf() To avoid conflicts with the regular printf() API it is overridden by macro defines and internal underscore-appended functions like printf() are used
- Parameters
-
| format | A string that specifies the format of the output |
- Returns
- The number of characters that are written into the array, not counting the terminating null character
Definition at line 99 of file print_full.h.
◆ bsp_snprintf_full
| #define bsp_snprintf_full snprintf_ |
Tiny snprintf/vsnprintf implementation
- Parameters
-
| buffer | A pointer to the buffer where to store the formatted string |
| count | The maximum number of characters to store in the buffer, including a terminating null character |
| format | A string that specifies the format of the output |
| va | A value identifying a variable arguments list |
- Returns
- The number of characters that COULD have been written into the buffer, not counting the terminating null character. A value equal or larger than count indicates truncation. Only when the returned value is non-negative and less than count, the string has been completely written.
Definition at line 124 of file print_full.h.
◆ bsp_sprintf_full
| #define bsp_sprintf_full sprintf_ |
Tiny sprintf implementation Due to security reasons (buffer overflow) YOU SHOULD CONSIDER USING (V)SNPRINTF INSTEAD!
- Parameters
-
| buffer | A pointer to the buffer where to store the formatted string. MUST be big enough to store the output! |
| format | A string that specifies the format of the output |
- Returns
- The number of characters that are WRITTEN into the buffer, not counting the terminating null character
Definition at line 110 of file print_full.h.
◆ bsp_vprintf_full
| #define bsp_vprintf_full vprintf_ |
Tiny vprintf implementation
- Parameters
-
| format | A string that specifies the format of the output |
| va | A value identifying a variable arguments list |
- Returns
- The number of characters that are WRITTEN into the buffer, not counting the terminating null character
Definition at line 136 of file print_full.h.
◆ FLAGS_ADAPT_EXP
| #define FLAGS_ADAPT_EXP (1U << 11U) |
◆ FLAGS_CHAR
| #define FLAGS_CHAR (1U << 6U) |
◆ FLAGS_HASH
| #define FLAGS_HASH (1U << 4U) |
◆ FLAGS_LEFT
| #define FLAGS_LEFT (1U << 1U) |
◆ FLAGS_LONG
| #define FLAGS_LONG (1U << 8U) |
◆ FLAGS_LONG_LONG
| #define FLAGS_LONG_LONG (1U << 9U) |
◆ FLAGS_PLUS
| #define FLAGS_PLUS (1U << 2U) |
◆ FLAGS_PRECISION
| #define FLAGS_PRECISION (1U << 10U) |
◆ FLAGS_SHORT
| #define FLAGS_SHORT (1U << 7U) |
◆ FLAGS_SPACE
| #define FLAGS_SPACE (1U << 3U) |
◆ FLAGS_UPPERCASE
| #define FLAGS_UPPERCASE (1U << 5U) |
◆ FLAGS_ZEROPAD
| #define FLAGS_ZEROPAD (1U << 0U) |
◆ PRINTF_SUPPORT_LONG_LONG
| #define PRINTF_SUPPORT_LONG_LONG |
◆ out_fct_type
| typedef void(* out_fct_type) (char character, void *buffer, size_t idx, size_t maxlen) |