8 years, 4 months ago.

Using the mbed asynchronous APIs with DISCO-F746NG on I2C Bus

Hello, after running I2C Bus operation on my board by using "read" and "write", I whish to use "non blocking" mode (i.e. interrupt and callback).

I got the Silab library "SILABS_RHT"; (https://developer.mbed.org/teams/SiliconLabs/code/SILABS_RHT/file/83a8b7df827f/SILABS_RHT.cpp)

By using it: _i2c->transfer(_address, (char*)_tx_buf, 1, (char*)_rx_buf, 2, _internalCallback, I2C_EVENT_ALL)

I get the error: Error: Class "mbed::I2C" has no member "transfer" in "SILABS_RHT/SILABS_RHT.cpp", Line: 157, Col: 13

Please, could you help me to understand why? And how to fix it? Thank you, gennaro

Question relating to:

This is a library to read out sensor values from Silicon Labs' si70xx-range of relative humidity and temperature sensors. I2C, RHT, sensor, Si7013, Si7020, Si7021, Silicon Labs, silicon_labs, siliconlabs

1 Answer

8 years, 4 months ago.

DISCO-F746NG does not provide asynch functionality therefore this library won't work with the target

Accepted Answer

Thanks Martin; do you have any suggest to push issue? Does it come from the vendor (STMicroelectronics) or mbed organization itself? Regards, gennaro

posted by Gennaro De Biase 04 Nov 2015

Send a request to a vendor, in this case ST. In the mbed OS, there is spi asynch, serial and i2c are about to added, for instance.

posted by Martin Kojtal 04 Nov 2015

I guess no one has bothered to have another look at the API itself?

posted by Erik - 04 Nov 2015

Erik, you are the only one :-P just kidding. There will be asynch support for mbed OS for example for STM32F4 devices soon

posted by Martin Kojtal 04 Nov 2015

Yeah but still no async SPI for TFTs and similar use cases. (Also imo those APIs are needlessly complicated).

posted by Erik - 04 Nov 2015