1.8.13.14 1.25.10.14 1.26.9.14 1.27.11.14 1.28.13.14 1.34.10.14 1.35.8.14 1.36.11.14 1.41.12.14 1.42.10.14 PIO_PinLatchRead Function
C
bool PIO_PinLatchRead ( PIO_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 PIO PLIB APIs, will be read by this API.
Precondition
None.
Parameters
Param | Description |
---|---|
pin | One of the IO pins from the enum PIO_PIN |
Returns
Returns the value driven on the selected I/O pin.
Example
bool value; value = PIO_PinLatchRead(PIO_PIN_PB3);
Remarks
To read actual pin value, PIO_PinRead API should be used.