diff options
author | GrapheneCt | 2021-03-07 15:37:11 -0500 |
---|---|---|
committer | Reiko Asakura | 2021-03-07 15:37:11 -0500 |
commit | e43b1837efaae9c081ba987273fa8832a7429e45 (patch) | |
tree | 56b890754005d0faf86e5f08abaf80f8991b53bc | |
parent | Add and rename old SDK functions (diff) | |
download | vds-libraries-e43b1837efaae9c081ba987273fa8832a7429e45.tar.gz |
Add clockgen functions
Not sure about sceClockgenSetSpectrumSpreading.
-rw-r--r-- | include/kernel/clockgen.h | 30 | ||||
-rw-r--r-- | nids/360/SceClockgen.yml | 13 |
2 files changed, 43 insertions, 0 deletions
diff --git a/include/kernel/clockgen.h b/include/kernel/clockgen.h new file mode 100644 index 0000000..fbc14c9 --- /dev/null +++ b/include/kernel/clockgen.h @@ -0,0 +1,30 @@ +/* + Vita Development Suite Libraries +*/ + +#ifndef _VDSUITE_KERNEL_CLOCKGEN_H +#define _VDSUITE_KERNEL_CLOCKGEN_H + +#include <stdint.h> +#include <stdbool.h> + +#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) +extern "C" { +#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */ + +// idx < 3 +int sceClockgenGetRegValue(uint32_t idx); + +// 44100 or 48000, default 48000 +int sceClockgenAudioClkSetSamplingFreq(uint32_t frequency); + +int sceClockgenSetSpectrumSpreading(int mode); + +// changes behaviour of sceClockgenInit(), default true +int sceClockgenSetProtocol(bool protocol); + +#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) +} +#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */ + +#endif /* _VDSUITE_KERNEL_CLOCKGEN_H */ diff --git a/nids/360/SceClockgen.yml b/nids/360/SceClockgen.yml index 5cee1c7..2b4a9e3 100644 --- a/nids/360/SceClockgen.yml +++ b/nids/360/SceClockgen.yml @@ -5,4 +5,17 @@ modules: SceClockgenForDriver: nid: 0xFF160234 functions: + sceClockgenAudioClkDisable: 0xF0A0242D + sceClockgenAudioClkEnable: 0x5130682D + sceClockgenAudioClkSetSamplingFreq: 0x820D3516 + sceClockgenCameraClkDisable: 0x82F39378 + sceClockgenCameraClkEnable: 0x06663ECA + sceClockgenGetRegValue: 0x09072366 + sceClockgenGetRevision: 0xCF63B11D + sceClockgenInit: 0x0BA41732 + sceClockgenSetProtocol: 0xEFE8A68C + sceClockgenSetSpectrumSpreading: 0xA2CA8B65 + sceClockgenUnk1ClkDisable: 0x66AC5580 + sceClockgenUnk1ClkEnable: 0x62478916 sceClockgenWlanBtClkDisable: 0xB6F0A532 + sceClockgenWlanBtClkEnable: 0x7B28A724 |