Other Parts Discussed in Thread: BQ24250, BQ25792
Hi Everyone,
Does anyone have any snippet which would show I2C setup for writing a device address and register to read and then reading 2 bytes in the register? Or maybe a byte at one register address and then another? I am used to thin HAL layers just above the hardware and cannot follow through the I2CTransfer() to I2CSupportPrimeTransfer() to the I2CMasterDataPut() to the I2CMasterControl and see that the device address, data register write, then device address, data address read data happens with this one transaction unless there is more under the hood I am not seeing.
I could just plug code in and do a bunch of Beagle sniffing, but I don't want to reinvent the wheel so to speak if there is code out there already. I am used to ST HAL layers which seem so much cleaner and easier to follow. Right now I have to read and write to a BQ27441 and BQ24250 and eventually move to a BQ25792.
Thanks for any help
Dave Bassett