2.49.34 GPIO_PinOuputBufferTypeConfig Function

C

void GPIO_PinOuputBufferTypeConfig(GPIO_PIN pin, GPIO_OUTPUT_BUFFER_TYPE bufferType)

Summary

Configures the buffer type of the given GPIO pin

Description

This API lets the application configure the buffer type of the given GPIO pin

Precondition

The pin direction must be set to output

Parameters

ParamDescription
pinOne of the values from the enum GPIO_PIN
bufferTypeOne of the values from the enum GPIO_OUTPUT_BUFFER_TYPE

Returns

None

Example

GPIO_PinOuputBufferTypeConfig(GPIO_PIN_GPIO012, GPIO_OUTPUT_BUFFER_TYPE_OPEN_DRAIN);

Remarks

None