Function soapysdr_sys::SoapySDRDevice_readI2C
source · pub unsafe extern "C" fn SoapySDRDevice_readI2C(
device: *mut SoapySDRDevice,
addr: c_int,
numBytes: *mut usize
) -> *mut c_char
Expand description
Read from an available I2C slave. If the device contains multiple I2C masters, the address bits can encode which master. Pass the number of bytes to be read in via numBytes; numBytes will be set to the number of actual bytes read. \param device a pointer to a device instance \param addr the address of the slave \param [in,out] numBytes the number of bytes to read \return an array of bytes read from the slave