cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_Master_Transmit OR HAL_I2C_Mem_Write

Edwin Schmid
Associate
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_Write

Below 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
1 REPLY 1

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..