Libraries to support working with GMLAN - General Motors CAN BUS network in most of their vehicles between 2007-present day. Please note this is a work in progress and not guaranteed to be correct, use at your own risk! Read commit logs / subscribe to see what has been added, it's a work in progress after all ;)
GMLAN_11bit.h@4:486fec88517e, 2013-03-13 (annotated)
- Committer:
- foxdie
- Date:
- Wed Mar 13 14:50:15 2013 +0000
- Revision:
- 4:486fec88517e
- Child:
- 6:32592425aa57
Added additional support for 11-bit packets including known 11 bit headers
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
foxdie | 4:486fec88517e | 1 | /* |
foxdie | 4:486fec88517e | 2 | GMLAN_11bit.h - 11-Bit specific header file for GMLAN Library |
foxdie | 4:486fec88517e | 3 | |
foxdie | 4:486fec88517e | 4 | GMLAN is a Controller Area Network Bus used in General Motors vehicles from |
foxdie | 4:486fec88517e | 5 | roughly 2007-onwards. Its purpose is to allow various Electronic Control Units |
foxdie | 4:486fec88517e | 6 | (aka ECUs) within a modern vehicle to share information and enact procedures. |
foxdie | 4:486fec88517e | 7 | |
foxdie | 4:486fec88517e | 8 | An example of this would be communication between the HU (Head unit) and the |
foxdie | 4:486fec88517e | 9 | DIC (Dashboard Information Cluster), when you adjust the volume up / down, this |
foxdie | 4:486fec88517e | 10 | is reported to the cluster to be displayed. |
foxdie | 4:486fec88517e | 11 | |
foxdie | 4:486fec88517e | 12 | It is the function of this library to "crack open" this world to allow anyone |
foxdie | 4:486fec88517e | 13 | with only as little as a few hours of C++ programming under their belt to get |
foxdie | 4:486fec88517e | 14 | started in what can sometimes seem a daunting world. |
foxdie | 4:486fec88517e | 15 | |
foxdie | 4:486fec88517e | 16 | Jason Gaunt, 18th Feb 2013 |
foxdie | 4:486fec88517e | 17 | */ |
foxdie | 4:486fec88517e | 18 | |
foxdie | 4:486fec88517e | 19 | #ifndef GMLAN_11BIT_H |
foxdie | 4:486fec88517e | 20 | #define GMLAN_11BIT_H |
foxdie | 4:486fec88517e | 21 | |
foxdie | 4:486fec88517e | 22 | #define GMLAN_INITIAL_WAKE_UP_REQUEST 0x100 |
foxdie | 4:486fec88517e | 23 | #define GMLAN_REQUEST_TO_ALL_NODES 0x101 |
foxdie | 4:486fec88517e | 24 | #define GMLAN_DIAGNOSTIC_REQUEST 0x102 |
foxdie | 4:486fec88517e | 25 | #define GMLAN_TO_RESERVED_REQUEST 0x240 |
foxdie | 4:486fec88517e | 26 | #define GMLAN_TO_BCM 0x241 |
foxdie | 4:486fec88517e | 27 | #define GMLAN_TO_TDM 0x242 |
foxdie | 4:486fec88517e | 28 | #define GMLAN_TO_EBCM 0x243 |
foxdie | 4:486fec88517e | 29 | #define GMLAN_TO_EHU 0x244 |
foxdie | 4:486fec88517e | 30 | #define GMLAN_TO_SIC 0x246 |
foxdie | 4:486fec88517e | 31 | #define GMLAN_TO_SDC 0x247 |
foxdie | 4:486fec88517e | 32 | #define GMLAN_TO_IPC 0x24C |
foxdie | 4:486fec88517e | 33 | #define GMLAN_TO_HVAC 0x251 |
foxdie | 4:486fec88517e | 34 | #define GMLAN_TO_RFA 0x258 |
foxdie | 4:486fec88517e | 35 | #define GMLAN_SF_FROM_RESERVED_RESPONSE 0x540 |
foxdie | 4:486fec88517e | 36 | #define GMLAN_MF_FROM_RESERVED_RESPONSE 0x640 |
foxdie | 4:486fec88517e | 37 | #define GMLAN_MF_FROM_BCM 0x641 |
foxdie | 4:486fec88517e | 38 | #define GMLAN_MF_FROM_TDM 0x642 |
foxdie | 4:486fec88517e | 39 | #define GMLAN_MF_FROM_EBCM 0x643 |
foxdie | 4:486fec88517e | 40 | #define GMLAN_MF_FROM_EHU 0x644 |
foxdie | 4:486fec88517e | 41 | #define GMLAN_MF_FROM_SIC 0x646 |
foxdie | 4:486fec88517e | 42 | #define GMLAN_MF_FROM_SDC 0x647 |
foxdie | 4:486fec88517e | 43 | #define GMLAN_MF_FROM_IPC 0x64C |
foxdie | 4:486fec88517e | 44 | #define GMLAN_MF_FROM_HVAC 0x651 |
foxdie | 4:486fec88517e | 45 | #define GMLAN_MF_FROM_RFA 0x658 |
foxdie | 4:486fec88517e | 46 | #define GMLAN_EXTERNAL_OBD_TEST_EQUIPMENT_TO_NON_SPECIFIC_OBD_COMPLIANT_ECUS 0x7DF |
foxdie | 4:486fec88517e | 47 | #define GMLAN_EXTERNAL_OBD_TEST_EQUIPMENT_TO_ECM 0x7E0 |
foxdie | 4:486fec88517e | 48 | #define GMLAN_EXTERNAL_OBD_TEST_EQUIPMENT_TO_SPECIFIC_OBD_COMPLIANT_ECU 0x7E1 |
foxdie | 4:486fec88517e | 49 | #define GMLAN_ECM_TO_EXTERNAL_OBD_TEST_EQUIPMENT 0x7E8 |
foxdie | 4:486fec88517e | 50 | #define GMLAN_SPECIFIC_OBD_COMPLIANT_ECU_TO_EXTERNAL_OBD_TEST_EQUIPMENT 0x7E9 |
foxdie | 4:486fec88517e | 51 | |
foxdie | 4:486fec88517e | 52 | #endif |