13.6.3.1.2 Function port_group_get_input_level()

Retrieves the state of a group of port pins that are configured as inputs.

uint32_t port_group_get_input_level( const PortGroup *const port, const uint32_t mask)

Reads the current logic level of a port module's pins and returns the current levels as a bitmask.

Table 13-4. Parameters
Data directionParameter nameDescription

[in]

port

Base of the PORT module to read from

[in]

mask

Mask of the port pin(s) to read

Returns

Status of the port pin(s) input buffers.