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

send

Performs a complete communication session with a device to write a number of bytes.
Returns TRUE if successful or FALSE if there was an error.
Syntax
I2cDevice. send(writeLen,writeData)
I2cDevice. send(prefixLen,prefixData,writeLen,writeData)
Where I2cDevice is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'writeLen'
The number of bytes to be written.
'writeData'
The memory address of the data to be written.
'prefixLen'
The number of prefix bytes to be written.
'prefixData'
The memory address of the prefix data to be written.
Returns
boolean
Note
This is the same as the following pseudo code:
// Connect in write mode
i2cStart( WRITE );
// Write the prefix values
for(size_t i=0; i<prefixLen; i++){
    i2cPut(prefixData[prefixLen]);
}
// Write the data values
for(size_t i=0; i<writeLen; i++){
    i2cPut(writeData[writeLen]);
}
// Hang up
i2cStop();

 

 

Valid XHTML 1.0 Transitional