Jump to main content

##

# 2.86.17 PORT_GroupOutputEnable Function

## C

    void PORT_GroupOutputEnable(PORT_GROUP group, uint32_t mask)

## Summary

Configures the selected IO pins of a group as output.

## Description

This function configures the selected IO pins of a group as output. The pins to be configured as output are selected by setting the corresponding bits in the mask parameter to 1.

## Precondition

The PORT_Initialize() function should have been called.

## Parameters

Param | Description
--- | ---
group | One or more of the of the IO ports from the enum PORT_GROUP.
mask | A 32 bit value in which a bit represents a pin in the group. If the value of the bit is 1, the corresponding port pin will be configured as output. If the value of the bit is 0. the corresponding port pin will stay unaffected.

## Returns

None.

## Example

    // Make PC5 and PC7 pins as output
    PORT_GroupOutputEnable(PORT_GROUP_C, 0x00A0);

## Remarks

None.