I2C_Write & I2C_Read API for STM32F103
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-29 12:06 AM
Posted on October 29, 2014 at 08:06
In some examples of using the STM32F103 board, it is used the I2C_Write() & I2C_Read()
functions. But in STM32F10x StdPeriph Library, this functions is not defined. Thanks Christian. #stm32f103
Labels:
- Labels:
-
STM32F1 Series
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-31 12:02 AM
Posted on October 31, 2014 at 08:02
Hi,
These functions do not exist in the library. You must write your write/read functions according to your application using following sequences of library functions:generate start,send address (7 bit),send data (or receive data)generate stop.You can find proper code that fit to your peripheral by a google search, at least available for other MCU's, then you can easily port them to STM32F10x.Best regards,Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-31 3:06 AM
Posted on October 31, 2014 at 11:06
Hi Christian,
The CPAL library (http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1743/PF258336
) offers fucntions ''CPAL_I2C_Write'' & ''CPAL_I2C_Read''. -Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-12 5:44 AM
Posted on January 12, 2017 at 13:44
is it possible to merge CPAL library with HAL library?
