diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-27 15:53:19 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-27 15:53:19 -0500 |
commit | a8f4bf42ee73ede0d2d3ddaf6c312c756c042a6b (patch) | |
tree | c41ffae2a8e08a238d5ab21fe594782317d41208 /src/isotp/receive.h | |
parent | c01a88ba1e56d455c7187a52a5e244500a0d6b0f (diff) |
Increase size of arb ID to uint32_t to fit extended IDs.
Diffstat (limited to 'src/isotp/receive.h')
-rw-r--r-- | src/isotp/receive.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/isotp/receive.h b/src/isotp/receive.h index 1dfd6f6d..6788914a 100644 --- a/src/isotp/receive.h +++ b/src/isotp/receive.h @@ -25,7 +25,7 @@ typedef struct { bool success; // Private - uint16_t arbitration_id; + uint32_t arbitration_id; IsoTpMessageReceivedHandler message_received_callback; uint16_t timeout_ms; // timeout_ms: ISO_TP_DEFAULT_RESPONSE_TIMEOUT, @@ -52,7 +52,7 @@ typedef struct { * when the message is completely sent. */ IsoTpReceiveHandle isotp_receive(IsoTpShims* shims, - const uint16_t arbitration_id, IsoTpMessageReceivedHandler callback); + const uint32_t arbitration_id, IsoTpMessageReceivedHandler callback); /* Public: Continue to receive a an ISO-TP message, based on a freshly * received CAN message. @@ -76,7 +76,7 @@ IsoTpReceiveHandle isotp_receive(IsoTpShims* shims, * handle. Keep passing the same handle to this function when CAN frames arrive. */ IsoTpMessage isotp_continue_receive(IsoTpShims* shims, - IsoTpReceiveHandle* handle, const uint16_t arbitration_id, + IsoTpReceiveHandle* handle, const uint32_t arbitration_id, const uint8_t data[], const uint8_t size); #ifdef __cplusplus |