Two control signals one GPIO

I just want to know if charging is taking place or not and if the battery if fully charged