Embedded SDK
Embedded SDK
format.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stddef.h> // size_t
4 #include <stdint.h> // int*_t, uint*_t
5 #include <stdbool.h> // bool
6 
20 bool format_i64(char *dst, size_t dst_len, const int64_t value);
21 
35 bool format_u64(char *dst, size_t dst_len, uint64_t value);
36 
52 bool format_fpu64(char *dst, size_t dst_len, const uint64_t value, uint8_t decimals);
53 
69 bool format_fpu64_trimmed(char *dst, size_t dst_len, const uint64_t value, uint8_t decimals);
70 
86 int format_hex(const uint8_t *in, size_t in_len, char *out, size_t out_len);
int format_hex(const uint8_t *in, size_t in_len, char *out, size_t out_len)
Definition: format.c:156
bool format_fpu64_trimmed(char *dst, size_t dst_len, const uint64_t value, uint8_t decimals)
Definition: format.c:137
bool format_u64(char *dst, size_t dst_len, uint64_t value)
Definition: format.c:65
bool format_i64(char *dst, size_t dst_len, const int64_t value)
Definition: format.c:24
bool format_fpu64(char *dst, size_t dst_len, const uint64_t value, uint8_t decimals)
Definition: format.c:101
unsigned char uint8_t
Definition: usbd_conf.h:53