ListReference

macro

slSoundOn


Form

    #include "sgl.h"

    Bool slSoundOn (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Turn on the sound.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

caution


    This macro activates the sound block.
Be sure to adhere to the following restrictions when stopping and starting the sound block.
-Restrictions on stopping and starting the sound block The sound block must not be stopped and there must be no non-access period of 0.5 seconds or more from the main system (SH2 side) to the sound RAM. If you want to stop the sound block, load the sound driver, etc. Stop it for the minimum required period and restart it immediately.
If you do not need to use the sound CPU (MC68EC000), you need to take measures such as executing a dummy program.
Executing this macro will reset the sound chip (SCSP). Access is prohibited for 30 μs after resetting the SCSP because the SCSP initializes the internal registers. Since the macro does not perform any weight processing, please control the application side so that SCSP is not accessed during this period.

reference

 slSoundOff
 slSoundOnWait
 slSoundOffWait 



ListReference

macro

slSoundOff


Form

    #include "sgl.h"

    Bool slSoundOff (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Turn off the sound.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

caution


    This macro will stop the sound block.
Be sure to adhere to the following restrictions when stopping and starting the sound block.
-Restrictions on stopping and starting the sound block The sound block must not be stopped and there must be no non-access period of 0.5 seconds or more from the main system (SH2 side) to the sound RAM. If you want to stop the sound block, load the sound driver, etc. Stop it for the minimum required period and restart it immediately.
If you do not need to use the sound CPU (MC68EC000), you need to take measures such as executing a dummy program.

reference

 slSoundOn
 slSoundOnWait
 slSoundOffWait 



ListReference

macro

slNMIRequest


NMI request

Form

    #include "sgl.h"

    Bool slNMIRequest (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Request NMI for master SH2.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

caution


    Use this function only when you want to perform the reset operation with the reset button disabled. (When using a modem, etc.)
    Do not use it in other applications.

reference

 slNMIRequestWait 



ListReference

macro

slResetEnable


Reset enable

Form

    #include "sgl.h"

    Bool slResetEnable (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Enables reset.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

reference

 slResetDisable
 slResetEnableWait
 slResetDisableWait 



ListReference

macro

slResetDisable


Reset Disable

Form

    #include "sgl.h"

    Bool slResetDisable (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Disables reset.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

caution


    This command cannot be issued from the slave CPU. When this command is issued from the slave CPU, NG is returned in the result code and the command cannot be issued.
Be sure to disable the reset button when accessing the backup memory.
Please re-enable it as soon as the access to the backup memory is completed.
However, if you are using a modem, always disable the reset button.

reference

 slResetEnable
 slResetEnableWait
 slResetDisableWait 



ListReference

macro

slSetSmpcMemory


SMPC memory settings

Form

    #include "sgl.h"

    Bool slSetSmpcMemory (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Requests settings for SMPC memory.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

reference

 slSetSmpcMemoryWait
 slSetLanguage
 slSetSoundEffect
 slSetSoundOutput
 slSetHelpWindow 



ListReference

macro

slSetDateTime


Time setting

Form

    #include "sgl.h"

    Bool slSetDateTime (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Set the real-time clock of SMPC.
If another process is locked and the semaphore cannot be acquired, or if the command cache for SMPC overflows, the result code NG is returned and the command is not issued. If the command registration is successful, Returns OK.

caution


    When using this function, be careful to follow the contents of the creation criteria.

reference

 slSetDateTimeWait 


★ Command end return type



ListReference

macro

slSoundOnWait


Form

    #include "sgl.h"

    Bool slSoundOnWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Turn on the sound and wait for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
If the command registration is successful, OK is returned.

caution


    This macro activates the sound block.
Be sure to adhere to the following restrictions when stopping and starting the sound block.
-Restrictions on stopping and starting the sound block The sound block must not be stopped and there must be no non-access period of 0.5 seconds or more from the main system (SH2 side) to the sound RAM. If you want to stop the sound block, load the sound driver, etc. Stop it for the minimum required period and restart it immediately.
If you do not need to use the sound CPU (MC68EC000), you need to take measures such as executing a dummy program.
Executing this macro will reset the sound chip (SCSP). Access is prohibited for 30 μs after resetting the SCSP because the SCSP initializes the internal registers. Since the macro does not perform any weight processing, please control the application side so that SCSP is not accessed during this period.

reference

 slSoundOffWait
 slSoundOn
 slSoundOff 



ListReference

macro

slSoundOffWait


Form

    #include "sgl.h"

    Bool slSoundOffWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Turn off the sound and wait for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
If the command registration is successful, OK is returned.

caution


    This macro will stop the sound block.
Be sure to adhere to the following restrictions when stopping and starting the sound block.
-Restrictions on stopping and starting the sound block The sound block must not be stopped and there must be no non-access period of 0.5 seconds or more from the main system (SH2 side) to the sound RAM. If you want to stop the sound block, load the sound driver, etc. Stop it for the minimum required period and restart it immediately.
If you do not need to use the sound CPU (MC68EC000), you need to take measures such as executing a dummy program.

reference

 slSoundOnWait
 slSoundOn
 slSoundOff 



ListReference

macro

slNMIRequestWait


NMI request

Form

    #include "sgl.h"

    Bool slNMIRequestWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Request NMI from master SH2 and wait for command execution to finish.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
Returns OK if the command registration is successful.

caution


    Use this function only when you want to perform the reset operation with the reset button disabled. (When using a modem, etc.)
    Do not use it in other applications.

reference

 slNMIRequest 



ListReference

macro

slResetEnableWait


Reset enable

Form

    #include "sgl.h"

    Bool slResetEnableWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Enable reset and wait for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
If the command registration is successful, OK is returned.

reference

 slResetEnableWait
 slResetEnable
 slResetDisable 



ListReference

macro

slResetDisableWait


Reset Disable

Form

    #include "sgl.h"

    Bool slResetDisableWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Disables reset and waits for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
If the command registration is successful, OK is returned.

caution


    This command cannot be issued from the slave CPU. When this command is issued from the slave CPU, NG is returned in the result code and the command cannot be issued.
Be sure to disable the reset button when accessing the backup memory.
Please re-enable it as soon as the access to the backup memory is completed.
However, if you are using a modem, always disable the reset button.

reference

 slResetDisableWait
 slResetEnable
 slResetDisable 



ListReference

macro

slSetSmpcMemoryWait


SMPC memory settings

Form

    #include "sgl.h"

    Bool slSetSmpcMemoryWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Requests the SMPC memory setting and waits for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
Returns OK if the command registration is successful.

reference

 slSetSmpcMemory
 slSetLanguage
 slSetSoundEffect
 slSetSoundOutput
 slSetHelpWindow 



ListReference

macro

slSetDateTimeWait


Time setting

Form

    #include "sgl.h"

    Bool slSetDateTimeWait (void);

argument

    void --Do not give anything.

Number of returns

    Bool --A flag that indicates whether the process ended normally (described later).

function

    Requests the SMPC real-time clock to be set and waits for the command to finish executing.
If another process is locked and the semaphore cannot be acquired, the command cache for SMPC overflows, or an interrupt back is issued, the result code NG is returned and the command is not issued.
If the command registration is successful, OK is returned.

caution


    When using this function, be careful to follow the contents of the creation criteria.

reference

 slSetDateTime

return
Copyright SEGA ENTERPRISES, LTD., 1997