Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years 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:
1 Answer
9 years ago.
DISCO-F746NG does not provide asynch functionality therefore this library won't work with the target
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 04 Nov 2015Send 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 04 Nov 2015