Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
int | parseDbcLine (CAN_MessageList *messages, char *line) |
Parses a single line of a DBC file and populates the CAN_MessageList structure. More... | |
int | parseDbcFile (CAN_MessageList *messages, const unsigned char *dbc_contents) |
Parses a DBC (CAN database) file and populates the DBC structure. More... | |
void | print_CAN_MessageList (const CAN_MessageList *messages) |
Prints the contents of a CAN message list (aka DBC file). More... | |
Variables | |
static const int | MAX_LINE_LENGTH = 256 |
int parseDbcFile | ( | CAN_MessageList * | messages, |
const unsigned char * | dbc_contents | ||
) |
Parses a DBC (CAN database) file and populates the DBC structure.
This function reads the specified DBC file and parses its content, populating the provided DBC structure with messages and signals.
[out] | CAN_MessageList | Pointer to the CAN_MessageList structure that will be populated with the parsed data. |
[in] | filename | Path to the DBC file to parse. |
Definition at line 31 of file DBCParser.c.
int parseDbcLine | ( | CAN_MessageList * | messages, |
char * | line | ||
) |
Parses a single line of a DBC file and populates the CAN_MessageList structure.
This function parses a single line of a CAN_MessageList file and populates the provided CAN_MessageList structure with messages and signals.
[out] | messages | Pointer to the CAN_MessageList structure that will be populated with the parsed data. |
[in] | line | Line of the DBC file to parse. |
Definition at line 7 of file DBCParser.c.
void print_CAN_MessageList | ( | const CAN_MessageList * | messages | ) |
Prints the contents of a CAN message list (aka DBC file).
This function prints the contents of a CAN message list (aka DBC file) to the console.
[in] | messages | Pointer to the CAN message list to print. return void |
Definition at line 44 of file DBCParser.c.
|
static |
Definition at line 8 of file DBCParser.h.