HAL_I2C_Master_Transmit OR HAL_I2C_Mem_Write
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-11-20 7:23 AM
Posted on November 20, 2017 at 16:23
Dear all we have stm32f373xx chip.
MAX7313 Chip for LEDs. The connection is via I2C interface.We need to ON an LED or group of them depending on some Interrupt.
We need to read the value about the LED status stored in the register.What is the best function to use for this purpose?
HAL_I2C_Master_Receive/HAL_I2C_Master_Transmit
OR HAL_I2C_Mem_Read/HAL_I2C_Mem_WriteBelow is the code we are using at the moment. To write to the Max7313 chip♯
HAL_I2C_Master_Transmit(&hi2c1, MAX_UI2_ADDRESS,MAXwrite,3, 100);
If possible provide an example code.
Thanks in advance.
#interrupt-driven #registers #stm32f373xx
Labels:
- Labels:
-
Interrupt
-
STM32F3 Series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-08-09 7:03 PM
Sorry, bumping old zombie unanswered threads off my feed
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
