1.4.17.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.