1.1.4.13 void GPIO_GroupSet(GPIO_GROUP group, uint32_t mask) Function

C

void GPIO_GroupSet(GPIO_GROUP group, uint32_t mask)

Summary

Sets the value in the given Group output register.

Description

If the control of the GPIO pin is enabled via Group output register, then this API lets application write the output data of the corresponding pin to 1.

Precondition

The pin is enabled to be controlled via the Group output register using the GPIO_PinGroupOutputEnable() or the GPIO_PinGroupOutputConfig() APIs.

Parameters

Param Description
group One of the pin groups from the enum GPIO_GROUP
mask Bit wise OR of pins whose output value needs to be set to 1

Returns

None

Example

// Set the value of output pins GPIO_007, GPIO_034 to 1.
GPIO_GroupSet(GPIO_GROUP_0, 0x10000010);

Remarks

If the pin is not enabled to be controlled via the Group output register, then writing the corresponding GPIO bit in this register has no impact.