embeddedlibrary
reusable software modules for embedded systems
buffer_printf.h
1 
14 #ifndef _BUFFER_PRINTF_H_
15 #define _BUFFER_PRINTF_H_
16 #include <stdarg.h>
17 #include <stdint.h>
18 #include "buffer.h"
19 
55 void Push_printf(buffer_t * buf, char * str, ...);
56 
81 void Push_vprintf(buffer_t * buf, char * str, va_list vars);
82 
88 void PushBinary16(buffer_t * buf, uint16_t x);
89 
96 void Push_uint16(buffer_t * buf, uint16_t x);
97 
106 void Push_int16(buffer_t * buf, int16_t x);
107 
114 void Push_uint32(buffer_t * buf, uint32_t x);
115 
124 void Push_int32(buffer_t * buf, int32_t x);
125 
132 void PushStr(buffer_t * buf, char * str);
133 
142 void PushHex(buffer_t * buf, uint16_t x);
143 
155 void PushFloat(buffer_t * buf, float x);
156 
158 #endif /* _BUFFER_PRINTF_H_ */
void Push_int32(buffer_t *buf, int32_t x)
Push long to char buffer.
Definition: buffer_printf.c:133
void PushHex(buffer_t *buf, uint16_t x)
Push 16 bit value to char buffer in hex format.
Definition: buffer_printf.c:160
Definition: buffer.h:52
void PushFloat(buffer_t *buf, float x)
Cheap implementation of float to char buffer.
Definition: buffer_printf.c:175
void PushBinary16(buffer_t *buf, uint16_t x)
Push 16 bit binary number to char buffer.
Definition: buffer_printf.c:117
void Push_int16(buffer_t *buf, int16_t x)
Push integer to char buffer.
Definition: buffer_printf.c:125
void Push_uint16(buffer_t *buf, uint16_t x)
Push unsigned integer to char buffer.
Definition: buffer_printf.c:104
void Push_vprintf(buffer_t *buf, char *str, va_list vars)
vprintf implementation to char buffer
Definition: buffer_printf.c:27
void PushStr(buffer_t *buf, char *str)
Push char array (string) to char buffer.
Definition: buffer_printf.c:154
void Push_printf(buffer_t *buf, char *str,...)
printf implementation to char buffer
Definition: buffer_printf.c:17
void Push_uint32(buffer_t *buf, uint32_t x)
Push unsigned long integer to char buffer.
Definition: buffer_printf.c:141