Click or drag to resize

GpioAPISetDirections Method

Sets the pin-group directions for the selected port.

Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.5.2
Syntax
C#
public void SetDirections(
	IOPort port,
	IODirection[] directions
)

Parameters

port  IOPort
The port selector.
directions  IODirection
The pin-group directions.
Remarks

The directions must be valid for the given port.

A list of valid pin-group direction values can be retrieved by calling GpioAPIGetAvailableIOPinMappingList.

Each port is evenly divided into multiple pin-groups of equal size.

For example, PortA has two pin-groups with 8 pins each.

Important note  Important

The I/O direction can only be configured per pin-group, and even then only if the port actually supports having its direction changed.

Please refer to 10.4.2 GPIO Port Configuration Procedures for further details.

See Also