This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ76952: BQ769x2_ReadCurrent库函数问题

Part Number: BQ76952


在BQ76952的读电流库函数中,返回值是uint16_t是没有正负的,如何得知是充电电流还是放电电流?以前我们得到电流充电电流是正的,放电电流是负的,在BQ76952中如何做到这点?

  • 您好,In the example code RX_data is an unsigned char type, so you may need to add some additional conversions to get the data into a float type. The example code for this function also returns as an unsigned short, not a float.

    See below, taken from Section 4.3 of the TRM. This may give you some additional insight on how the data is reported.