The datasheet (chapter 7.20 and beyond) seems to indicate there is an I2C interface that lets you read the registers. Not sure what you mean with "compiler"
never used that - but would need to read the spec, see how the configuration and communication is done over I2C and "just" implement that