1.8.13.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.