0.3.1

Typedefs

typedef enum cpu_smpc_cmd cpu_smpc_cmd_t
 SMPC commands.
 

Enumerations

enum  cpu_smpc_cmd
 SMPC commands. More...
 

Functions

static void smpc_smc_wait (bool enter)
 Wait either to call an SMPC command, or wait until called SMPC command has ended.
 
static uint8_t smpc_smc_call (cpu_smpc_cmd_t cmd)
 Call an SMPC command.
 
static uint8_t smpc_smc_cdoff_call (void)
 Call SMPC command to turn CD-block off.
 
static uint8_t smpc_smc_cdon_call (void)
 SMPC command to turn CD-block on.
 
static uint8_t smpc_smc_ckchg320_call (void)
 Call SMPC command to change clock to 320-mode.
 
static uint8_t smpc_smc_ckchg352_call (void)
 Call SMPC command to change clock to 352-mode.
 
static uint8_t smpc_smc_intback_call (uint8_t ireg0, uint8_t ireg1)
 Call SMPC command to acquire SMPC status and peripheral data.
 
static uint8_t smpc_smc_mshon_call (void)
 Call SMPC command to turn master CPU on.
 
static uint8_t smpc_smc_nmireq_call (void)
 Call SMPC command to send an NMI request to the master CPU.
 
static uint8_t smpc_smc_resdisa_call (void)
 SMPC command to acquire SMPC status and peripheral data.
 
static uint8_t smpc_smc_resenab_call (void)
 Call SMPC command to enable NMI generation.
 
static uint8_t smpc_smc_setsmem_call (void)
 Call SMPC command to set data to SMEM.
 
static uint8_t smpc_smc_sndoff_call (void)
 Call SMPC command to turn sound CPU off.
 
static uint8_t smpc_smc_sndon_call (void)
 Call SMPC command to turn sound CPU on.
 
static uint8_t smpc_smc_sshoff_call (void)
 Call SMPC command to turn slave CPU off.
 
static uint8_t smpc_smc_sshon_call (void)
 Call SMPC command to turn slave CPU on.
 
static void smpc_smc_sysres_call (void)
 Call SMPC command to reset the system.
 

Detailed Description

Description goes here.

Enumeration Type Documentation

◆ cpu_smpc_cmd

SMPC commands.

Enumerator
SMPC_SMC_MSHON 

SMPC command to turn master CPU on.

SMPC_SMC_SSHON 

SMPC command to turn slave CPU on.

SMPC_SMC_SSHOFF 

SMPC command to turn slave CPU off.

SMPC_SMC_SNDON 

SMPC command to turn sound CPU on.

SMPC_SMC_SNDOFF 

SMPC command to turn sound CPU off.

SMPC_SMC_CDON 

SMPC command to turn CD-block on.

SMPC_SMC_CDOFF 

SMPC command to turn CD-block off.

SMPC_SMC_SYSRES 

SMPC command to reset the system.

SMPC_SMC_CKCHG352 

SMPC command to change clock to 352-mode.

SMPC_SMC_CKCHG320 

SMPC command to change clock to 320-mode.

SMPC_SMC_INTBACK 

SMPC command to acquire SMPC status and peripheral data.

SMPC_RTC_SETTIME 

SMPC command to set RTC time.

SMPC_SMC_SETSMEM 

SMPC command to set data to SMEM.

SMPC_SMC_NMIREQ 

SMPC command to send an NMI request to the master CPU.

SMPC_SMC_RESENAB 

SMPC command to enable NMI generation.

SMPC_SMC_RESDISA 

SMPC command to disable NMI generation.

Function Documentation

◆ smpc_smc_wait()

static void smpc_smc_wait ( bool  enter)
inlinestatic

Wait either to call an SMPC command, or wait until called SMPC command has ended.

If enter is false, wait until the called SMPC command has ended. If is true, then wait until the SMPC is ready for another command to be called.

Note
There is no real need to call use this function, as there are inlined functions that handle the call to SMPC commands.
Parameters
enterWait to call or wait for SMPC command

◆ smpc_smc_call()

static uint8_t smpc_smc_call ( cpu_smpc_cmd_t  cmd)
inlinestatic

Call an SMPC command.

Note
There is no real need to call use this function, as there are inlined functions that handle the call to SMPC commands.
Parameters
cmdThe SMPC command
Returns
Not yet documented.

◆ smpc_smc_cdoff_call()

static uint8_t smpc_smc_cdoff_call ( void  )
inlinestatic

Call SMPC command to turn CD-block off.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_cdon_call()

static uint8_t smpc_smc_cdon_call ( void  )
inlinestatic

SMPC command to turn CD-block on.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_ckchg320_call()

static uint8_t smpc_smc_ckchg320_call ( void  )
inlinestatic

Call SMPC command to change clock to 320-mode.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_ckchg352_call()

static uint8_t smpc_smc_ckchg352_call ( void  )
inlinestatic

Call SMPC command to change clock to 352-mode.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_intback_call()

static uint8_t smpc_smc_intback_call ( uint8_t  ireg0,
uint8_t  ireg1 
)
inlinestatic

Call SMPC command to acquire SMPC status and peripheral data.

This function does not wait until the SMPC INTBACK command ends. This is purposely done for asynchronous reasons.

Warning
Do not use this function, as Yaul uses this function to fetch SMPC status and peripheral data.
Parameters
ireg0
ireg1
Returns
Not yet documented.

◆ smpc_smc_mshon_call()

static uint8_t smpc_smc_mshon_call ( void  )
inlinestatic

Call SMPC command to turn master CPU on.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_nmireq_call()

static uint8_t smpc_smc_nmireq_call ( void  )
inlinestatic

Call SMPC command to send an NMI request to the master CPU.

Returns
Not yet documented.

◆ smpc_smc_resdisa_call()

static uint8_t smpc_smc_resdisa_call ( void  )
inlinestatic

SMPC command to acquire SMPC status and peripheral data.

Returns
Not yet documented.

◆ smpc_smc_resenab_call()

static uint8_t smpc_smc_resenab_call ( void  )
inlinestatic

Call SMPC command to enable NMI generation.

Returns
Not yet documented.

◆ smpc_smc_setsmem_call()

static uint8_t smpc_smc_setsmem_call ( void  )
inlinestatic

Call SMPC command to set data to SMEM.

Returns
Not yet documented.

◆ smpc_smc_sndoff_call()

static uint8_t smpc_smc_sndoff_call ( void  )
inlinestatic

Call SMPC command to turn sound CPU off.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_sndon_call()

static uint8_t smpc_smc_sndon_call ( void  )
inlinestatic

Call SMPC command to turn sound CPU on.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_sshoff_call()

static uint8_t smpc_smc_sshoff_call ( void  )
inlinestatic

Call SMPC command to turn slave CPU off.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_sshon_call()

static uint8_t smpc_smc_sshon_call ( void  )
inlinestatic

Call SMPC command to turn slave CPU on.

Warning
Do not use this function.
Returns
Not yet documented.

◆ smpc_smc_sysres_call()

static void smpc_smc_sysres_call ( void  )
inlinestatic

Call SMPC command to reset the system.

Note
Predictably, never returns.