Skip to main content
bart239955_st
Associate
November 29, 2012
Question

STM32 CPAL

  • November 29, 2012
  • 2 replies
  • 671 views
Posted on November 29, 2012 at 18:44

I've been experimenting with the CPAL I2C library and as a test I'm sending a short string of bytes to an external device. I'm the only one on the I2C bus and I'm configured as an I2C master.

Does anybody know why the 'stop' of the I2C write command in the CPAL library is implemented as a time-out which is calling a user-callback function (where the stop is actually issued) and is not simply sent directly at the end of the communication?

#stm32-cpal-i2c
This topic has been closed for replies.

2 replies

waclawek.jan
Super User
November 30, 2012
Posted on November 30, 2012 at 09:02

> Does anybody know why the 'stop' of the I2C write command in the CPAL library is implemented

> as a time-out which is calling a user-callback function (where the stop is actually issued)

> and is not simply sent directly at the end of the communication?

Can you please explain how did you come to this conclusion?

JW

waclawek.jan
Super User
November 30, 2012
Posted on November 30, 2012 at 09:02

[sorry, double post due to the crap used here instead of proper forum software  - deleted]