Jump to main content

##

# 2.51.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

Param | Description
--- | ---
pin | One of the values from the enum GPIO_PIN
bufferType | One 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