Return to previous page | Return to menu | Go to next page
Bool
Peripheral control function
Set the port mode for peripheral ports 1 and 2
Bool slSetPortMode1(mode)
Bool slSetPortMode2(mode)
Uint8 mode;
mode Port mode of peripheral port
Sets the port mode for peripheral ports 1 and 2.
Execution result OK ... success NG ... failure
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