1.5.18.11 PORT_GroupLatchRead Function

C

uint32_t PORT_GroupLatchRead(PORT_GROUP group)

Summary

Read the data driven on all the I/O pins of the selected port group.

Description

The function will return a 32-bit value representing the logic levels being driven on the output pins within the group. The function will not sample the actual hardware state of the output pin. Each bit in the 32-bit return value will represent one of the 32 port pins within the group. The application should only consider the value of the pins which are available on the device.

Precondition

The PORT_Initialize() function should have been called.

Parameters

Param Description
group One of the IO groups from the enum PORT_GROUP.

Returns

A 32-bit value representing the output state of of all the I/O pins in the selected port group.

Example

uint32_t value;
value = PORT_GroupLatchRead(PORT_GROUP_C);

Remarks

None.