fivdi / i2c-bus

I2C serial bus access with Node.js
MIT License
348 stars 57 forks source link

what does cmd stand for ? #15

Closed crosofg closed 8 years ago

crosofg commented 8 years ago

Hi What does cmd stand for ?

bus.writeByteSync(addr, cmd, byte)
fivdi commented 8 years ago

The SMBus write byte protocol, which is implemented by writeByteSync, can be used to send a byte sized command code and a byte of data. Depending on the documentation the term register may be used instead of command. For example, many documents form Atmel use the term command. For a short description of the various SMBus protocols see section 2.3 on page 3 of AVR316.

fivdi commented 8 years ago

I'm going to assume things have been cleared up here and close this one.