/** @file format.h * Module handling various formating functions * * The module provides a lightweight printf function and the attached tools */ #ifndef _FORMAT_H_ #define _FORMAT_H_ //--includes-------------------------------------------------------------------- #include #include //--type definitions------------------------------------------------------------ typedef uint32_t (*FormatCallback)(uint8_t byte, void* arg); //--functions------------------------------------------------------------------- uint32_t format_snprintf(char* restrict buffer, uint32_t buffer_size, const char* restrict format, ...); uint32_t format_fctprintf(FormatCallback callback, void* arg, const char* restrict format, ...); uint32_t format_vfctprintf(FormatCallback callback, void* arg, const char* restrict format, va_list va); #endif //_FORMAT_H_