1.1.4.14 void GPIO_GroupClear(GPIO_GROUP group, uint32_t mask) Function
C
void GPIO_GroupClear(GPIO_GROUP group, uint32_t mask)
Summary
Clears 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 set the output data of the corresponding pin 0.
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 0 |
Returns
None
Example
// Set the value of output pins GPIO_007, GPIO_034 to 0. GPIO_GroupClear(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.