How can I let my power management IC know when the the device is charging through the BQ51013A? From what I've read the CHG pin goes to ground when charging and is an open drain output when the device is not outputting so how can I communicate the state of charge when the device is active to either the MCU or to a PMIC?