1.2.9.3 SYS_PORT_PinLatchRead Function

C

bool SYS_PORT_PinLatchRead ( SYS_PORT_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 PORTS APIs, will be read by this API.

Precondition

None.

Parameters

ParamDescription
pinOne of the IO pins from the enum SYS_PORT_PIN

Returns

Returns the value driven on the selected I/O pin.

Example

bool value;
value = SYS_PORT_PinLatchRead(SYS_PORT_PIN_PB3);

Remarks

To read actual pin value, SYS_PORT_PinRead API should be used.