1.8.13.6 1.25.10.6 1.26.9.6 1.27.11.6 1.28.13.6 1.34.10.6 1.35.8.6 1.36.11.6 1.41.12.6 1.42.10.6 PIO_PortClear Function
C
void PIO_PortClear(PIO_PORT port, uint32_t mask)
Summary
Clear the selected IO pins of a port.
Description
This function clears (to '0') the selected IO pins of a port.
Precondition
None.
Parameters
Param | Description |
---|---|
port | One 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 cleared. |
-
1's Will clear corresponding IO pins to low (to 0).
-
0's Will remain unchanged.
Returns
None.
Example
// Clear PC5 and PC7 pins to 0 PIO_PortClear(PIO_PORT_C, 0x00A0);
Remarks
If the port has less than 32-bits, unimplemented pins will be ignored. Implemented pins are Right aligned in the 32-bit value.