Defines | Functions

lib.c File Reference

#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include "can.h"
#include "canutils.h"
#include "can_error.h"
Include dependency graph for lib.c:

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 Documentation

#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 '........'"

Function Documentation

void fprint_canframe ( FILE *  stream,
struct can_frame cf,
char *  eol,
int  sep 
)

Here is the call graph for this function:

void fprint_long_canframe ( FILE *  stream,
struct can_frame cf,
char *  eol,
int  ascii 
)

Here is the call graph for this function:

int parse_canframe ( char *  cs,
struct can_frame cf 
)
void sprint_canframe ( char *  buf,
struct can_frame cf,
int  sep 
)

Here is the caller graph for this function:

void sprint_long_canframe ( char *  buf,
struct can_frame cf,
int  ascii 
)

Here is the caller graph for this function: