1.34.10.8 PIO_PortInputEnable Function
C
void PIO_PortInputEnable(PIO_PORT port, uint32_t mask)
Summary
Enables selected IO pins of a port as input.
Description
This function enables selected IO pins of a port as input.
Precondition
None.
Parameters
Param | Description |
---|---|
port | One or more of the of the IO ports from the enum PIO_PORT. |
mask | A 32 bit value in which positions of 0s and 1s decide which IO pins of the selected port will be setup as inputs. |
-
1's Will set corresponding IO pins as input(s).
-
0's Will cause the direction of the corresponding IO pins to remain unchanged.
Returns
None.
Example
// Make PC5 and PC7 pins as input PIO_PortInputEnable(PIO_PORT_C, 0x00A0);
Remarks
None.