1.6.13.4 1.7.14.4 1.10.11.4 1.11.11.4 1.12.11.4 1.13.10.4 1.14.10.4 1.15.10.4 1.16.8.4 1.17.8.4 1.18.9.4 1.19.8.4 1.20.8.4 1.21.9.4 1.22.13.4 1.23.12.4 1.24.9.4 GPIO_PortLatchRead Function
C
uint32_t GPIO_PortLatchRead ( GPIO_PORT port )
Summary
Read the latched value on all the I/O lines of the selected port.
Description
This function reads the latched data values on all the I/O lines of the selected port. Bit values returned in each position indicate corresponding pin levels.
-
1 - Pin is high.
-
0 - Pin is low.
Precondition
None.
Parameters
Param | Description |
---|---|
port | One of the IO ports from the enum GPIO_PORT |
Returns
Returns the latch register value of the specified I/O port
Example
uint32_t value; value = GPIO_PortLatchRead(GPIO_PORT_C);
Remarks
If the port has less than 32-bits, unimplemented pins will read as low (0). Implemented pins are Right aligned in the 32-bit return value.