1.1.4.16 uint32_t GPIO_GroupRead(GPIO_GROUP group, uint32_t mask) Function
C
uint32_t GPIO_GroupRead(GPIO_GROUP group, uint32_t mask)
Summary
Returns the value of the given GPIO group.
Description
Returns the state of the pins in the given GPIO group
Precondition
None
Parameters
Param | Description |
---|---|
group | One of the pin groups from the enum GPIO_GROUP |
mask | Bit wise OR of pins whose input needs to be returned |
Returns
A 32-bit value indicating the status of pins corresponding to the mask value passed to the API
Example
// Read the value of pins GPIO_007, GPIO_034. uint32_t group_read_val = GPIO_GroupRead(GPIO_GROUP_0, 0x10000010);
Remarks
None