USB C Modes with Arduino?

Hello, I want to Charge a 18650 Battery with an USB C port. (Battery charger)
But I found out, that there are different modes for USB C. I need to select a specific voltage. So it is possible to choose the right dc dc converter to convert it to 3.7v and then connect it to the battery. Is it Possible to select USB C modes with Arduino? Or do I need a specific IC?

I do not know of any Arduino with a USB C connector. So none of them can talk to a native USB C port and request a different mode.

Without that communication, the C port will behave like a regular 5V USB A type port.

@page { margin: 0.79in } p { margin-bottom: 0.1in; line-height: 120% }
A USB device must indicate its speed by pulling either the D+ or D- line high to 3.3 volts. These pull up resistors at the device end will also be used by the host or hub to detect the presence of a device connected to its port. Without a pull up resistor, USB assumes there is nothing connected to the bus. In other words the device connected to the computer defines the connection. There are a lot of units out there that are sold as chargers and use the same connectors. By definition the USB supplies 5 volts.
1 VCC Red +5VDC
2 D- White Data -
3 D+ Green Data +
4 GND Black Ground

1 VCC Red +5VDC
2 D- White Data -
3 D+ Green Data +
5 GND Black Ground
The above pin-out information will help you understand what is happening. Use the following links, I think they will answer your question and a better and give you the background information. Start here:
USB Connectors Cables Pinouts ยป Electronics Notes
This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!