smbus/smbus.py
def write_word_data(self, addr, cmd, val):
        """write_word_data(addr, cmd, val)

        Perform SMBus Write Word Data transaction.
        """
        self._set_addr(addr)
        if SMBUS.i2c_smbus_write_word_data(self._fd,
                                           ffi.cast("__u8", cmd),
                                           ffi.cast("__u16", val)) == -1:
            raise IOError(ffi.errno)
def write_word_data(self, addr, cmd, val):
        """write_word_data(addr, cmd, val)

        Perform SMBus Write Word Data transaction.
        """
        self._set_addr(addr)
        if SMBUS.i2c_smbus_write_word_data(self._fd,
                                           ffi.cast("__u8", cmd),
                                           ffi.cast("__u16", val)) == -1:
            raise IOError(ffi.errno)
def write_word_data ( self , addr , cmd , val ) : self . _set_addr ( addr ) if SMBUS . i2c_smbus_write_word_data ( self . _fd , ffi . cast ( "__u8" , cmd ) , ffi . cast ( "__u16" , val ) ) == - 1 : raise IOError ( ffi . errno )
write_word_data(addr, cmd, val)

        Perform SMBus Write Word Data transaction.
write_word_data ( addr cmd val )