@@ -707,12 +707,12 @@ def reset(self):
707707
708708 return self .sendCommand ("Z" )
709709
710- def i2cSendBin (self , slaveAddr , buff ):
710+ def i2cSendBin (self , subordinateAddr , buff ):
711711 """
712712 Sends a one-way message (provided as a a binary buffer) to a device on the I2C bus.
713713 This function checks and reports communication errors on the I2C bus.
714714
715- @param slaveAddr : the 7-bit address of the slave device (without the direction bit)
715+ @param subordinateAddr : the 7-bit address of the subordinate device (without the direction bit)
716716 @param buff : the binary buffer to be sent
717717
718718 @return YAPI.SUCCESS if the call succeeds.
@@ -724,7 +724,7 @@ def i2cSendBin(self, slaveAddr, buff):
724724 # val
725725 # msg
726726 # reply
727- msg = "@" + ("%02x" % slaveAddr ) + ":"
727+ msg = "@" + ("%02x" % subordinateAddr ) + ":"
728728 nBytes = len (buff )
729729 idx = 0
730730 while idx < nBytes :
@@ -746,12 +746,12 @@ def i2cSendBin(self, slaveAddr, buff):
746746 return YAPI .IO_ERROR
747747 return YAPI .SUCCESS
748748
749- def i2cSendArray (self , slaveAddr , values ):
749+ def i2cSendArray (self , subordinateAddr , values ):
750750 """
751751 Sends a one-way message (provided as a list of integer) to a device on the I2C bus.
752752 This function checks and reports communication errors on the I2C bus.
753753
754- @param slaveAddr : the 7-bit address of the slave device (without the direction bit)
754+ @param subordinateAddr : the 7-bit address of the subordinate device (without the direction bit)
755755 @param values : a list of data bytes to be sent
756756
757757 @return YAPI.SUCCESS if the call succeeds.
@@ -763,7 +763,7 @@ def i2cSendArray(self, slaveAddr, values):
763763 # val
764764 # msg
765765 # reply
766- msg = "@" + ("%02x" % slaveAddr ) + ":"
766+ msg = "@" + ("%02x" % subordinateAddr ) + ":"
767767 nBytes = len (values )
768768 idx = 0
769769 while idx < nBytes :
@@ -785,17 +785,17 @@ def i2cSendArray(self, slaveAddr, values):
785785 return YAPI .IO_ERROR
786786 return YAPI .SUCCESS
787787
788- def i2cSendAndReceiveBin (self , slaveAddr , buff , rcvCount ):
788+ def i2cSendAndReceiveBin (self , subordinateAddr , buff , rcvCount ):
789789 """
790790 Sends a one-way message (provided as a a binary buffer) to a device on the I2C bus,
791791 then read back the specified number of bytes from device.
792792 This function checks and reports communication errors on the I2C bus.
793793
794- @param slaveAddr : the 7-bit address of the slave device (without the direction bit)
794+ @param subordinateAddr : the 7-bit address of the subordinate device (without the direction bit)
795795 @param buff : the binary buffer to be sent
796796 @param rcvCount : the number of bytes to receive once the data bytes are sent
797797
798- @return a list of bytes with the data received from slave device.
798+ @return a list of bytes with the data received from subordinate device.
799799
800800 On failure, throws an exception or returns an empty binary buffer.
801801 """
@@ -805,7 +805,7 @@ def i2cSendAndReceiveBin(self, slaveAddr, buff, rcvCount):
805805 # msg
806806 # reply
807807 # rcvbytes
808- msg = "@" + ("%02x" % slaveAddr ) + ":"
808+ msg = "@" + ("%02x" % subordinateAddr ) + ":"
809809 nBytes = len (buff )
810810 idx = 0
811811 while idx < nBytes :
@@ -834,17 +834,17 @@ def i2cSendAndReceiveBin(self, slaveAddr, buff, rcvCount):
834834 rcvbytes = YAPI ._hexStrToBin (reply )
835835 return rcvbytes
836836
837- def i2cSendAndReceiveArray (self , slaveAddr , values , rcvCount ):
837+ def i2cSendAndReceiveArray (self , subordinateAddr , values , rcvCount ):
838838 """
839839 Sends a one-way message (provided as a list of integer) to a device on the I2C bus,
840840 then read back the specified number of bytes from device.
841841 This function checks and reports communication errors on the I2C bus.
842842
843- @param slaveAddr : the 7-bit address of the slave device (without the direction bit)
843+ @param subordinateAddr : the 7-bit address of the subordinate device (without the direction bit)
844844 @param values : a list of data bytes to be sent
845845 @param rcvCount : the number of bytes to receive once the data bytes are sent
846846
847- @return a list of bytes with the data received from slave device.
847+ @return a list of bytes with the data received from subordinate device.
848848
849849 On failure, throws an exception or returns an empty array.
850850 """
@@ -855,7 +855,7 @@ def i2cSendAndReceiveArray(self, slaveAddr, values, rcvCount):
855855 # reply
856856 # rcvbytes
857857 res = []
858- msg = "@" + ("%02x" % slaveAddr ) + ":"
858+ msg = "@" + ("%02x" % subordinateAddr ) + ":"
859859 nBytes = len (values )
860860 idx = 0
861861 while idx < nBytes :
0 commit comments