1.2.9 Ports System Service
Ports System service abstract different general purpose input output (GPIO) modules present on Microchip family of devices. it provides a common interface to use GPIO across all the 32 bit Microchip devices.
Library Interface
Ports system service provides the following interfaces:
Functions
Name | Description |
---|---|
SYS_PORT_PinWrite | Writes to the selected pin |
SYS_PORT_PinRead | Read the selected pin value |
SYS_PORT_PinLatchRead | Read the value driven on the selected pin |
SYS_PORT_PinToggle | Toggles the selected pin |
SYS_PORT_PinSet | Sets the selected pin |
SYS_PORT_PinClear | Clears the selected pin |
SYS_PORT_PinInputEnable | Enables selected IO pin as input |
SYS_PORT_PinOutputEnable | Enables selected IO pin as output |
Data types and constants
Name | Type | Description |
---|---|---|
SYS_PORT | Enum | Identifies the available Port Channels |
SYS_PORT_PIN | Enum | Identifies the available port pins |