Added binary output option to candump.c and sprint_long_canframe() in lib.c .

This commit is contained in:
Oliver Hartkopp
2008-06-02 20:06:37 +00:00
parent 789a021bb9
commit 8a5c0365e6
3 changed files with 50 additions and 27 deletions
+5 -2
View File
@@ -96,8 +96,11 @@ void sprint_canframe(char *buf , struct can_frame *cf, int sep);
*
*/
void fprint_long_canframe(FILE *stream , struct can_frame *cf, char *eol, int ascii);
void sprint_long_canframe(char *buf , struct can_frame *cf, int ascii);
#define CANLIB_VIEW_ASCII 0x1
#define CANLIB_VIEW_BINARY 0x2
void fprint_long_canframe(FILE *stream , struct can_frame *cf, char *eol, int view);
void sprint_long_canframe(char *buf , struct can_frame *cf, int view);
/*
* Creates a CAN frame hexadecimal output in user readable format.
*