1.6.13.14 1.7.14.14 1.10.11.14 1.11.11.14 1.12.11.14 1.13.10.14 1.14.10.14 1.15.10.14 1.16.8.14 1.17.8.14 1.18.9.14 1.19.8.14 1.20.8.14 1.21.9.14 1.22.13.14 1.23.12.14 1.24.9.14 GPIO_PinLatchRead Function
C
bool GPIO_PinLatchRead ( GPIO_PIN pin )
Summary
Read the value driven on the selected pin.
Description
This function reads the data driven on the selected I/O line/pin. Whatever data is written/driven on I/O line by using any of the GPIO PLIB APIs, will be read by this API.
Precondition
None.
Parameters
Param | Description |
---|---|
pin | One of the IO pins from the enum GPIO_PIN |
Returns
Returns the latch value of the selected pin. - True - Latch value is 1.
- False - Latch value is 0.
Example
bool value; value = GPIO_PinLatchRead(GPIO_PIN_RB3);
Remarks
To read actual pin value, GPIO_PinRead API should be used.