// CAN Functions.h
// Header file containing declarations associated with CAN Functions.cpp

#pragma once
#ifndef __CAN_FUNCTIONS_H__
#define __CAN_FUNCTIONS_H__

//declaring objects
class CVCanDrv; //forward declaration
extern char* SRecordFilename; //filename of record
extern unsigned char StartAddressMSB;  //address to which application will be loaded (in hex),
extern unsigned char StartAddressLSB;  //also the line from which the program will execute
extern int ChannelBitrate; //channel bitrate in b/s
extern int DataField; //current data field in packet
extern int CANPort; // selected CAN Port

//declaring functions
int CAN_interface(void);
void CAN_s_line_process(char *line, CVCanDrv *CAN, int *checkSumTotal);

#endif