I have been using the GPIOPinTypeGPIOOutput() and GPIOPinTypeGPIOInput() to configure GPIO pins but these functions do not allow me to configure the ports in bidirectional mode. Are the ports in this microcontroller to be used unidirectional mode only or can they be used bidirectional mode? If they can be used in bidirectional mode, could somebody share an example on how to do this?