#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include "can.h"
#include "canutils.h"
#include "can_error.h"
Defines | |
#define | CANID_DELIM '#' |
#define | DATA_SEPERATOR '.' |
#define | MAX_CANFRAME "12345678#01.23.45.67.89.AB.CD.EF" |
#define | MAX_LONG_CANFRAME "12345678 [8] 01 23 45 67 89 AB CD EF '........'" |
Functions | |
int | parse_canframe (char *cs, struct can_frame *cf) |
void | fprint_canframe (FILE *stream, struct can_frame *cf, char *eol, int sep) |
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 CANID_DELIM '#' |
#define DATA_SEPERATOR '.' |
#define MAX_CANFRAME "12345678#01.23.45.67.89.AB.CD.EF" |
#define MAX_LONG_CANFRAME "12345678 [8] 01 23 45 67 89 AB CD EF '........'" |
void fprint_canframe | ( | FILE * | stream, | |
struct can_frame * | cf, | |||
char * | eol, | |||
int | sep | |||
) |
void fprint_long_canframe | ( | FILE * | stream, | |
struct can_frame * | cf, | |||
char * | eol, | |||
int | ascii | |||
) |
int parse_canframe | ( | char * | cs, | |
struct can_frame * | cf | |||
) |
void sprint_canframe | ( | char * | buf, | |
struct can_frame * | cf, | |||
int | sep | |||
) |
void sprint_long_canframe | ( | char * | buf, | |
struct can_frame * | cf, | |||
int | ascii | |||
) |