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


Bool
System management functions

slGetPeripheral

Interrupt back (acquire only peripheral data)

Format

Bool slGetPeripheral()

Parameter

None

Function

After executing this function, the peripheral data is automatically acquired in the global variable "Smpc_Peripheral".
In addition, the number of connected peripherals is automatically acquired in the global variables "Per_Connect1 and Per_Connect2".

Return value

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

Remarks

If the semaphore cannot be acquired (locked by another process), execution will fail.
Since this function is called by “slInitSystem” when starting the library, it is not necessary to call this function except when changing the setting.
The setting is reflected in the data from the second frame after setting.
Execution fails when the peripheral port I / O settings are invalid.

Reference: HARDWARE MANUAL vol.1 (SMPC)

slGetPeripheral


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