From e43b1837efaae9c081ba987273fa8832a7429e45 Mon Sep 17 00:00:00 2001 From: GrapheneCt Date: Sun, 7 Mar 2021 15:37:11 -0500 Subject: Add clockgen functions Not sure about sceClockgenSetSpectrumSpreading. --- include/kernel/clockgen.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/kernel/clockgen.h (limited to 'include/kernel/clockgen.h') 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 +#include + +#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 */ -- cgit v1.2.3