USB-C intelligent charge