1.2.9.3 SYS_PORT_PinLatchRead Function
1.2.9.3 C
bool SYS_PORT_PinLatchRead ( SYS_PORT_PIN pin )
1.2.9.3 Summary
Read the value driven on the selected pin.
1.2.9.3 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 PORTS APIs, will be read by this API.
1.2.9.3 Precondition
None.
1.2.9.3 Parameters
| Parameters | Description |
|---|---|
| pin | One of the IO pins from the enum SYS_PORT_PIN |
1.2.9.3 Returns
Returns the value driven on the selected I/O pin.
1.2.9.3 Example
bool value; value = SYS_PORT_PinLatchRead(SYS_PORT_PIN_PB3);
1.2.9.3 Remarks
To read actual pin value, SYS_PORT_PinRead API should be used.
