Hi Andrew,
Actually LSM9DS1 is not NXP's product, so we don't have the according LPC4337 code for it directly.
But, it is not the problem, actually, you just need to read the LSM9DS1 DATASHEET, then know the I2C command, just use the LPC4337 i2c driver send the according I2C data is OK.
We don't have the direct API for your LSM9DS1, it seem your LSM9DS1 still have the subaddress, I think you need to know the LSM9DS1 write I2C sequence at first, if the sbuaddress is following the address, I think you can put the subaddress in the Chip_I2C_MasterCmdRead data area. or you can write the API code which add the subaddress, it's not difficult, you need to know the LSM9DS1 write sequence at first, then modify the API, then send it to your LSM9DS1, check the I2C bus, whether the modified write code meet your LSM9DS1 or not.
Please check LSM9DS1 datasheet, then modify the Chip_I2C_MasterCmdRead by yourself.
If you still have problem, just let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------