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 ;)

Revision:
7:5ec65e6e8095
Parent:
6:32592425aa57
Child:
8:bc97fa5d306e
--- a/GMLAN.h	Wed Apr 03 16:09:10 2013 +0000
+++ b/GMLAN.h	Sun Apr 07 18:20:01 2013 +0000
@@ -105,12 +105,12 @@
         int id, request_state;
         int tx_frame_counter, tx_bytes;
         int rx_frame_counter, rx_bytes;
-        
+        bool await_response;
         char frame_padding [8];
     
     public:
         // (Main function) Create message and send it
-        GMLAN_11Bit_Request(int _id, vector<char> _request);
+        GMLAN_11Bit_Request(int _id, vector<char> _request, bool _await_response = true);
         
         // Process each frame to transmit and flow control frame if needed
         CANMessage getNextFrame(void);
@@ -126,6 +126,8 @@
         int getState(void) { return request_state; }
         // Return ID
         int getID(void) { return id; }
+        // Return rx_bytes
+        int getRXcount(void) { return rx_bytes; }
         // Return response
         vector<char> getResponse(void) { return response_data; }
 };