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

receive

Performs a complete communication with a slave device to receive a number of bytes.
The return value specifies if it was successful (TRUE) or not (FALSE).
Syntax
I2cDevice. receive(responseLen,response)
Where I2cDevice is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'responseLen'
The number of bytes to be received.
'response'
The memory address to store the returned the values.
Returns
boolean
Note
This is the same as the following pseudo code:
// Connect in read mode
i2cStart( READ );
for(size_t i=0; i<responseLen; i++){
    response[i] = i2cGet();
}
// Hang up
i2cStop();

 

 

Valid XHTML 1.0 Transitional