ERP CANoe Interface : Code Generation

Code Generation

Currently, the external mapped symbol is read from the CANOE_ENV_VAR attribute.

The ERP CRD file includes a new message list section and a general port attribute list section. The CRD template is as follows:

{
#card name:""
#card polling rate:
#card number of ports:
#card base address:""
#card init function:""
#card driver function:""
#card closure function:""
#port list:
{
#port name:""
#port inverse logic:
#port default mode:
#port default buffer:
#port offset:""
#port attribute list:
{
#key:””
#value:””
}
}
#message list:
{
#message name:””
#message id: “”
#message period:
#message size:
#signal list:
{
#signal name:””
#signal byte number:
#signal starts at bit:
#signal number of bits:
#signal attribute list:
{
#key:””
#value:””
}
}
}
}

The message list is stored in the card_desc data structure, whereas the port attribute list is stored in the report_elem data structure.