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

NameDescription
SYS_PORT_PinWriteWrites to the selected pin
SYS_PORT_PinReadRead the selected pin value
SYS_PORT_PinLatchReadRead the value driven on the selected pin
SYS_PORT_PinToggleToggles the selected pin
SYS_PORT_PinSetSets the selected pin
SYS_PORT_PinClearClears the selected pin
SYS_PORT_PinInputEnableEnables selected IO pin as input
SYS_PORT_PinOutputEnableEnables selected IO pin as output

Data types and constants

NameTypeDescription
SYS_PORTEnumIdentifies the available Port Channels
SYS_PORT_PINEnumIdentifies the available port pins