fb49de922c91,045
http://nhiro.org.s3.amazonaws.com/5/c/5cf0411b2b78ce3bda9f3878764219ad.jpg https://gyazo.com/5cf0411b2b78ce3bda9f3878764219ad
(OCR text)
46
SMBusDread word
i2c_smbus_read_word_dat a()
SMBus Read Word:
This operat ion is very like Read Byte; again, dat a is read from a
device, from a designated register that is specif ied through the Comm
byt e. But this time, the data is a complete word (16 bits).
Funct ionality flag: 120 F UNC_SMBUS_READ_WORD_DATA
Note the convenience function i2c_smbus_read_word_swapped is
available for reads where the two dat a bytes are the ot her way
around (not SMBus compl iant, but very popular.)
先に読みたいレジスタのアドレスをWriteし、
そこから2バイトReadする。