Skip to content

Where to get I2C buffer size? #351

@nseidle

Description

@nseidle

v2 core breaks this external EEPROM library because the define name changed away from the HAL to mbed.

image

We have libraries that need to check the size of the I2C buffer of a given platform in order to optimize comm. Assuming 32 bytes can be inefficient to ineffective depending on the device (u-blox modules, SPS30, I2C EEPROM, etc should have very different behavior depending on how big the buffer is).

It looks like the usedTXBuffer is hardcoded to 256. If at all possible, make this variable and user settable. If not possible, then what is the define to check against to determine the buffer size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions