Generic i2c component library including support for multi master arbitration and clock stretching