1.2.17.16 1.3.19.16 1.4.17.16 1.5.18.16 1.29.18.16 1.30.13.16 1.31.13.16 1.32.20.16 1.33.13.16 1.37.14.16 1.38.17.16 1.39.14.16 1.40.16.16 PORT_GroupInputEnable Function

C

void PORT_GroupInputEnable(PORT_GROUP group, uint32_t mask)

Summary

Configures the selected IO pins of a group as input.

Description

This function configures the selected IO pins of a group as input. The pins to be configured as input are selected by setting the corresponding bits in the mask parameter to 1.

Precondition

The PORT_Initialize() function should have been called.

Parameters

Param Description
group One or more of the of the IO ports from the enum PORT_GROUP.
mask A 32 bit value in which a bit represents a pin in the group. If the value of the bit is 1, the corresponding port pin will be configured as input. If the value of the bit is 0. the corresponding port pin will stay unaffected.

Returns

None.

Example

// Make PC5 and PC7 pins as input
PORT_GroupInputEnable(PORT_GROUP_C, 0x00A0);

Remarks

None.