HAL + 0/9 examples
CodeScope will show references to HAL_I2C_Mem_Write() from the following samples and libraries:
 
Symbols
loading...
Files
loading...

HAL_I2C_Mem_Write() function

Write an amount of data in blocking mode to a specific memory address

Syntax

HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c,     uint16_t DevAddress,     uint16_t MemAddress,     uint16_t MemAddSize,     uint8_t *pData,     uint16_t Size,     uint32_t Timeout);
Implemented in stm32f4xx_hal_i2c.c:2503

Arguments

hi2c

Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.

DevAddress

Target device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface

MemAddress

Internal memory address

MemAddSize

Size of internal memory address

pData

Pointer to data buffer

Size

Amount of data to be sent

Timeout

Timeout duration

Return value

HAL status

Examples

HAL_I2C_Mem_Write() is referenced by 9 libraries and example projects.

References

LocationText
stm32f4xx_hal_i2c.c:2503
HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
stm32f4xx_hal_i2c.h:570
HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout);