![]()  | 
     BALTECH Docs | 
    C API for BALTECH SDK
   
    
   
   | 
   
| brp_errcode brp_I2c_Read | ( | brp_protocol | protocol, | 
| unsigned | Address, | ||
| unsigned | ReadLen, | ||
| brp_buf * | ReadData, | ||
| size_t * | ReadData_len, | ||
| brp_mempool * | mempool | ||
| ) | 
Read data from I2C interface.
| [in] | protocol | used to execute the command | 
| [in] | Address | I2C device address. | 
| [in] | ReadLen | Number of bytes to read. | 
| [out] | ReadData | Data read from I2C interface. | 
| [out] | ReadData_len | |
| [in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |