Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
gc_format.h
Go to the documentation of this file.
1
34
#ifndef _UTILS_GC_FORMAT_H_
35
#define _UTILS_GC_FORMAT_H_
36
37
#include "
utils/constants.hxx
"
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
struct
can_frame;
44
47
DECLARE_CONST
(gc_generate_newlines);
48
61
int
gc_format_parse
(
const
char
* buf,
struct
can_frame* can_frame);
62
80
char
*
gc_format_generate
(
const
struct
can_frame* can_frame,
char
* buf,
int
double_format);
81
82
#ifdef __cplusplus
83
}
84
#endif
85
86
87
#endif
// _UTILS_GC_FORMAT_H_
constants.hxx
DECLARE_CONST
#define DECLARE_CONST(name)
Declares a constant value.
Definition
constants.hxx:60
gc_format_generate
char * gc_format_generate(const struct can_frame *can_frame, char *buf, int double_format)
Formats a can frame in the GridConnect protocol.
Definition
gc_format.cxx:199
gc_format_parse
int gc_format_parse(const char *buf, struct can_frame *can_frame)
Parses a GridConnect packet.
Definition
gc_format.cxx:82
src
utils
gc_format.h
Generated on Sun Feb 2 2025 21:18:14 for Open Model Railroad Network (OpenMRN) by
1.9.8