#include <stdio.h>
int main(int argc, char* argv[])
{
char* path = "my_J1939_db.dbc";
db_handle = createJ1939Db(path);
Check("kvaDbWriteFile", status);
}
{
if (stat < 0) {
printf("%s: failed, stat=%d\n", id, (int)stat);
}
}
char* VFrameFormat_enum_names[4] = {"StandardCAN", "ExtendedCAN", "reserved", "J1939PG"};
Check("kvaDbOpen", status);
Check("kvaDbCreate", status);
Check("kvaDbAddAttributeDefinition protocolType", status);
Check("kvaDbSetAttributeDefinitionType protocolType", status);
Check("kvaDbSetAttributeDefinitionName protocolType", status);
Check("kvaDbSetAttributeDefinitionOwner protocolType", status);
Check("kvaDbSetAttributeDefinitionString protocolType", status);
Check("kvaDbAddAttributeDefinition VFrameFormat", status);
Check("kvaDbSetAttributeDefinitionType VFrameFormat", status);
Check("kvaDbSetAttributeDefinitionName VFrameFormat", status);
Check("kvaDbSetAttributeDefinitionOwner VFrameFormat", status);
for (int i = 0; i < 4; i++) {
Check("kvaDbAddAttributeDefinitionEnum", status);
}
Check("kvaDbAddMsg", status);
Check("kvaDbSetMsgName", status);
Check("kvaDbSetMsgDlc", status);
Check("kvaDbSetMsgId", status);
Check("kvaDbSetMsgFlags", status);
Check("kvaDbAddSignal", status);
Check("kvaDbSetSignalName", status);
Check("kvaDbSetSignalComment", status);
Check("kvaDbSetSignalUnit", status);
Check("kvaDbSetSignalEncoding", status);
Check("kvaDbSetSignalRepresentationType", status);
Check("kvaDbSetSignalValueSize", status);
Check("kvaDbSetSignalValueLimits", status);
return db_handle;
}