fcp package
Subpackages
Submodules
fcp.c_generator module
c-generator.
- Usage:
c-generator.py generate <json> <template> <skel> <output> c-generator.py (-h | –help) c-generator.py –version
- Options:
-h –help Show this screen. –version Show version.
fcp.can module
- class fcp.can.CANMessage(sid: int, dlc: int, timestamp: int, data16: List[int] = [], data64=-1)[source]
Bases:
object- static decode_bstring(bstring)[source]
Decode bytestring encoded message into CANMessage.
See encode_bstring for details on the string format used.
- static decode_json(j)[source]
Decode JSON encoded message into CANMessage.
See encode_json for details on the JSON format used.
- static decode_struct(s)[source]
Decode C struct encoded message into CANMessage.
See encode_struct for details on the struct format used.
- encode_bstring()[source]
Encode message as a utf-8 byte string encoded comma separated list of fields. Example: 100,8,1,2,3,4,1. Encodes sid: 100, dlc: 8, data[0]: 1, data[1]: 2, data[2]: 3, data[3]: 4, timestamp: 1
- encode_json()[source]
Encode message as a utf-8 byte string encoded JSON object. Example: {‘sid’: 100, ‘dlc’: 8, ‘data’: [1,2,3,4], ‘timestamp’: 1}
- encode_struct()[source]
Encode message as a CAN struct:
typedef struct { union { struct { uint16_t dev_id:5; // Least significant // First bit of msg_id determines if msg is reserved or not. // 0 == reserved (higher priority) (0-31 decimal) uint16_t msg_id:6; // Most significant }; uint16_t sid; }; uint16_t dlc:4; uint16_t data[4]; } CANdata;
fcp.dbc_reader module
fcp.dbc_writer module
fcp.device module
fcp.docs module
fcp.docs_css module
fcp.fcp_lib module
fcp.generator module
fcp.gui module
fcp.input module
fcp.spec module
fcp.template module
fcp.validator module
c-generator.
- Usage:
validator.py validate <json> validator.py (-h | –help) validator.py –version
- Options:
-h –help Show this screen. –version Show version.