EEPROM-24c16A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-08 9:22 AM - edited ‎2024-01-08 9: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.
- Labels:
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-08 9: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-08 9: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-08 4:36 PM
Hi @Peter BENSCH
Thank you for valuable reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-08 4:37 PM
Hi @Tesla DeLorean
Thank you for your valuable reply
