Defines | Functions

canlog.cc File Reference

#include <cstring>
#include <iostream>
#include <cstdlib>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <af_can.h>
#include <canutils.h>
#include <can_ids.h>
#include <can_msg_masks.h>
#include <can_msg_def.h>
#include "cand.h"
Include dependency graph for canlog.cc:

Defines

#define CAN_SONAR   0x60

Functions

int cand_init ()
int can_send (canid_t id, unsigned char length, unsigned char *data)
int open_log_file (char *fname, FILE *f)
int cand_parse_frame (struct can_frame frame, FILE *f)
 Parse frame ID and react as required.
int main (int argc, char *argv[])

Define Documentation

#define CAN_SONAR   0x60

Function Documentation

int can_send ( canid_t  id,
unsigned char  length,
unsigned char *  data 
)

Here is the call graph for this function:

int cand_init (  ) 
int cand_parse_frame ( struct can_frame  frame,
FILE *  f 
)

Parse frame ID and react as required.

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

int open_log_file ( char *  fname,
FILE *  f 
)

Here is the caller graph for this function: