Return to previous page | Return to menu | Go to next page


Bool
Peripheral control function

slSetPortMode1,2

Set the port mode for peripheral ports 1 and 2

Format

Bool slSetPortMode1(mode)
Bool slSetPortMode2(mode) Uint8 mode;

Parameter

mode Port mode of peripheral port

Function

Sets the port mode for peripheral ports 1 and 2.

Return value

Execution result
      OK ... success
      NG ... failure

Remarks

If the semaphore cannot be acquired (locked by another process), execution will fail.
The following values ​​can be used for parameters.
SMPC_PORT_15 ... 15 byte mode (initial value)
SMPC_PORT_255..255 byte mode
SMPC_PORT_ZERO ... 0 byte mode

Reference: HARDWARE MANUAL vol.1 (SMPC)

slSetPortMode1,2


Return to previous page | Return to menu | Go to next page