WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

start

A low level function to start communicating with a given slave device if you are writing your own I2C communications from scratch.
This will try to start communicating with the given device. It's like dialling a phone number. If there is no reply then the function will return FALSE, otherwise it will return TRUE.
Once a communication link has been established you can use get() (if you are in read/listen mode) or put() (if you are in write/talk mode).
You can swap between read and write mode by re-issuing another i2cStart to the same device with another mode (called a 'repeated start').
At the end of the conversation, and before you can contact a different device, you must hang up the phone by calling stop().
Syntax
I2cBus. start(i2cAddr,writeMode)
Where I2cBus is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'i2cAddr'
The address of the device you want to communicate with.
'writeMode'
TRUE for write/talk mode or FALSE if read/listen mode.
Returns
boolean

 

 

Valid XHTML 1.0 Transitional