Use 16-bit length for TWI driver packet read/write requests for longer transfers.

This commit is contained in:
Dean Camera
2015-09-27 16:08:13 +10:00
parent 23ada65625
commit 7638128d47
5 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -273,7 +273,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
uint8_t* Buffer,
uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
uint16_t Length) ATTR_NON_NULL_PTR_ARG(3);
/** High level function to perform a complete packet transfer over the TWI bus from the specified
* device.
@@ -292,7 +292,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
const uint8_t* Buffer,
uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
uint16_t Length) ATTR_NON_NULL_PTR_ARG(3);
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)