uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Functions
Clockgen Module

Functions

s32 sceClockgenSetup (void)
 
s32 sceClockgenSetSpectrumSpreading (s32 mode)
 
s32 sceClockgenInit (void)
 
s32 sceClockgenEnd (void)
 
s32 sceClockgenSetProtocol (u32 prot)
 
s32 sceClockgenGetRevision (void)
 
s32 sceClockgenGetRegValue (u32 idx)
 
s32 sceClockgenAudioClkSetFreq (u32 freq)
 
s32 sceClockgenAudioClkEnable (void)
 
s32 sceClockgenAudioClkDisable (void)
 
s32 sceClockgenLeptonClkEnable (void)
 
s32 sceClockgenLeptonClkDisable (void)
 

Detailed Description

Clock generator management.

Function Documentation

◆ sceClockgenSetup()

s32 sceClockgenSetup ( void  )

Setups the module by retrieving all hardware registers to memory.

Returns
SCE_ERROR_OK, otherwise <0 on error.

◆ sceClockgenSetSpectrumSpreading()

s32 sceClockgenSetSpectrumSpreading ( s32  mode)

Sets the spectrum spreading mode.

Parameters
modeThe new spectrum spreading mode. Unknown unit.
Returns
SCE_ERROR_OK, otherwise <0 on error.

◆ sceClockgenInit()

s32 sceClockgenInit ( void  )

Inits the module.

Sets up the I2C bus speed, creates the mutex and registers the sysevent handler.

Returns
SCE_ERROR_OK, otherwise <0 on error.

◆ sceClockgenEnd()

s32 sceClockgenEnd ( void  )

Terminates the module.

Deletes the mutex and unregisters the sysevent handler.

Returns
SCE_ERROR_OK.

◆ sceClockgenSetProtocol()

s32 sceClockgenSetProtocol ( u32  prot)

Sets the protocol.

Changes the behavior of sceClockgenSetup(). Non-zero will retrieve the hardware registers with a single command.

Parameters
protBoolean.
Returns
SCE_ERROR_OK.

◆ sceClockgenGetRevision()

s32 sceClockgenGetRevision ( void  )

Gets the CY27040 chip revision.

Returns
Likely 3, 4, 7, 8, 9, 10 or 15. Another value may indicate that you work at SCE.

◆ sceClockgenGetRegValue()

s32 sceClockgenGetRegValue ( u32  idx)

Gets the CY27040 hardware register value as stored in memory.

Parameters
idxAn index where 0 <= idx < 3.
Returns
The register value, otherwise <0.

◆ sceClockgenAudioClkSetFreq()

s32 sceClockgenAudioClkSetFreq ( u32  freq)

Sets the audio clock frequency.

Parameters
freqA sample rate frequency in Hz. 44100 or 48000.
Returns
SCE_ERROR_OK, otherwise <0.

◆ sceClockgenAudioClkEnable()

s32 sceClockgenAudioClkEnable ( void  )

Enables the audio clock.

Returns
SCE_ERROR_OK, otherwise <0.

◆ sceClockgenAudioClkDisable()

s32 sceClockgenAudioClkDisable ( void  )

Disables the audio clock.

Returns
SCE_ERROR_OK, otherwise <0.

◆ sceClockgenLeptonClkEnable()

s32 sceClockgenLeptonClkEnable ( void  )

Enables the lepton clock (managing the UMD reader).

Returns
SCE_ERROR_OK, otherwise <0.

◆ sceClockgenLeptonClkDisable()

s32 sceClockgenLeptonClkDisable ( void  )

Disables the lepton clock (managing the UMD reader).

Returns
SCE_ERROR_OK, otherwise <0.