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
40extern "C" {
41#endif
42
43struct can_frame;
44
47DECLARE_CONST(gc_generate_newlines);
48
61int gc_format_parse(const char* buf, struct can_frame* can_frame);
62
80char* 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_
#define DECLARE_CONST(name)
Declares a constant value.
Definition constants.hxx:60
char * gc_format_generate(const struct can_frame *can_frame, char *buf, int double_format)
Formats a can frame in the GridConnect protocol.
int gc_format_parse(const char *buf, struct can_frame *can_frame)
Parses a GridConnect packet.
Definition gc_format.cxx:82