Added a timeout value to the TWI_StartTransmission() function, within which the addre...
[pub/lufa.git] / LUFA / Drivers / Peripheral / AVRU4U6U7 / TWI.h
index 13db86e..2d8e6df 100644 (file)
@@ -56,6 +56,7 @@
                #include <avr/io.h>\r
                #include <stdbool.h>\r
                #include <util/twi.h>\r
+               #include <util/delay.h>\r
                \r
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r
                        /** Begins a master mode TWI bus communication with the given slave device address.\r
                         *\r
                         *  \param[in] SlaveAddress  Address of the slave TWI device to communicate with\r
+                        *  \param[in] TimeoutMS     Timeout period within which the slave must respond, in milliseconds\r
                         *\r
                         *  \return Boolean true if the device is ready for data, false otherwise\r
                         */\r
-                       bool TWI_StartTransmission(uint8_t SlaveAddress);\r
+                       bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS);\r
 \r
        /* Disable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r