Set Direction Configuration

Command Code

Binary: [1 0 1 1 1 1 1 1] [0 0 0 1 0 0 1 0] [direction]

Description

This command configures the parallel port data pins as either inputs or outputs.

Each bit of the "direction" byte sets the direction of one data pin. The most significant bit controls pin DIO7, the least significant bit controls pin DIO0, and so on. A value of 1 means input; 0 means output.

The direction configuration is irrelevant while a pin (DISTB/DIO7 or DOSTB/DIO6) is configured for handshaking (see Set Handshaking Mode).

The factor default is data pins configured as inputs.

Responses

The Slink-e normally generates a Direction Configuration Is Control Report to confirm that it executed your command.