2024-01-08 09:22 AM - edited 2024-01-08 09:23 AM
Hi @everyone
In the below IIC API
HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
uint16_t MemAddress will accept only hexadecimal value or it will accept decimal value also.
Solved! Go to Solution.
2024-01-08 09:45 AM
The numbers are translated by the compiler anyway, which doesn't care whether you feed it decimal, hexadecimal, octal or binary numbers. However, hexadecimal numbers are often justified because they are easier to read.
Regards
/Peter
2024-01-08 09:45 AM
The numbers are translated by the compiler anyway, which doesn't care whether you feed it decimal, hexadecimal, octal or binary numbers. However, hexadecimal numbers are often justified because they are easier to read.
Regards
/Peter
2024-01-08 10:15 AM
An integer between 0-2047 decimal, or 0-0x7FF hex. It can be a variable, you can do math on the parameter.
#LearnC
2024-01-08 04:36 PM
Hi @Peter BENSCH
Thank you for valuable reply.
2024-01-08 04:37 PM
Hi @Tesla DeLorean
Thank you for your valuable reply