SceClockgen: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
(Add section on Clockgen hardware)
m (→‎sceClockgenCameraClkEnableForDriver: Indicate which clock is turned on)
Line 124: Line 124:
| 0.940-3.60 || 0x06663ECA
| 0.940-3.60 || 0x06663ECA
|}
|}
Enables the 22 MHz output of Clockgen.


<source lang="C">int sceClockgenCameraClkEnableForDriver(void);</source>
<source lang="C">int sceClockgenCameraClkEnableForDriver(void);</source>

Revision as of 20:31, 27 October 2024

Module

Version World Privilege
0.940-3.65 Non-secure Kernel

Hardware

P1P40167 1.8V 4-PLL Low Power Clock Generator by ON Semiconductor (onsemi)

An oscillator provides the reference 27MHz frequency from which 5 clock signals are derived:

  • Fixed 22.5792 MHz
  • Fixed 27 MHz (= buffered reference clock)
  • Fixed 37 MHz (w/ spread spectrum feature)
  • Fixed 48 MHz (UCLK?)
  • Configurable Audio Clock (22.5792 or 24.576 MHz)

Kermit communicates with Clockgen via I²C.

Libraries

Known NIDs

Version Name World Visibility NID
0.940-3.60 SceClockgenForDriver Non-secure Kernel 0xFF160234

SceClockgenForDriver

sceClockgenInitForDriver

Version NID
3.60 0x0BA41732

This is a guessed name.

int sceClockgenInitForDriver(void);

sceClockgenSetProtocolForDriver

Version NID
3.60 0xEFE8A68C

This is a guessed name.

Changes behaviour of #sceClockgenInit. Default is true.

int sceClockgenSetProtocolForDriver(SceBool protocol);

sceClockgenGetRegValueForDriver

Version NID
3.60 0x09072366

This is a guessed name.

// idx < 3
int sceClockgenGetRegValueForDriver(SceUInt32 idx);

sceClockgenSetSpectrumSpreadingForDriver

Version NID
3.60 0xA2CA8B65
int sceClockgenSetSpectrumSpreadingForDriver(SceUInt32 mode);

sceClockgenGetRevisionForDriver

Version NID
3.60 0xCF63B11D

This is a guessed name.

int sceClockgenGetRevisionForDriver(void);

sceClockgenWlanBtClkEnableForDriver

Version NID
0.990-3.60 0x7B28A724
int sceClockgenWlanBtClkEnableForDriver(void);

sceClockgenWlanBtClkDisableForDriver

Version NID
0.990-3.60 0xB6F0A532
int sceClockgenWlanBtClkDisableForDriver(void);

sceClockgenCameraClkEnableForDriver

Version NID
0.940-3.60 0x06663ECA

Enables the 22 MHz output of Clockgen.

int sceClockgenCameraClkEnableForDriver(void);

sceClockgenCameraClkDisableForDriver

Version NID
0.940-3.60 0x82F39378
int sceClockgenCameraClkDisableForDriver(void);

sceClockgenAudioClkEnableForDriver

Version NID
3.60 0x5130682D

This is a guessed name.

int sceClockgenAudioClkEnableForDriver(void);

sceClockgenAudioClkDisableForDriver

Version NID
3.60 0xF0A0242D

This is a guessed name.

int sceClockgenAudioClkDisableForDriver(void);

sceClockgenAudioClkSetSamplingFreqForDriver

Version NID
3.60 0x820D3516

This is a guessed name.

// 44100 or 48000, default 48000
int sceClockgenAudioClkSetSamplingFreqForDriver(SceUInt32 frequency);

sceClockgenMotionClkEnableForDriver

Version NID
3.60 0x62478916

This is a guessed name.

int sceClockgenMotionClkEnableForDriver(void);

sceClockgenMotionClkDisableForDriver

Version NID
3.60 0x66AC5580

This is a guessed name.

int sceClockgenMotionClkDisableForDriver(void);