vitasdk
Documentation of the vitasdk
oled.h
Go to the documentation of this file.
1
6#ifndef _PSP2KERN_OLED_H_
7#define _PSP2KERN_OLED_H_
8
9#include <psp2kern/types.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
22VITASDK_BUILD_ASSERT_EQ(4, SceOledErrorCode); // size is from FW 3.60
23
30
43
56
59
75int ksceOledGetDDB(SceUInt16 *supplier_id, SceUInt16 *supplier_elective_data);
76
79
99
116
127
128#ifdef __cplusplus
129}
130#endif
131
132#endif /* _PSP2KERN_OLED_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
int ksceOledWaitReady(void)
Wait until the asynchronous OLED initialization attempt has completed.
SceUInt32 ksceOledGetBrightness(void)
Get the exact wide-brightness value most recently accepted by the driver.
int ksceOledGetDDB(SceUInt16 *supplier_id, SceUInt16 *supplier_elective_data)
Get the Device Descriptor Block values cached during OLED initialization.
int ksceOledDisplayOff(void)
Queue the OLED display-off sequence.
int ksceOledSetDisplayColorSpaceMode(SceOledColorSpaceMode mode)
Set the OLED color-space mode.
SceOledColorSpaceMode
OLED color-space modes.
Definition oled.h:25
int ksceOledSetBrightness(SceUInt32 brightness)
Set the wide OLED brightness.
SceOledColorSpaceMode ksceOledGetDisplayColorSpaceMode(void)
Get the cached OLED color-space mode.
SceOledErrorCode
OLED driver error codes observed on FW 3.60.
Definition oled.h:16
int ksceOledDisplayOn(void)
Queue the OLED display-on sequence.
@ SCE_OLED_COLOR_SPACE_MODE_1
Definition oled.h:27
@ SCE_OLED_COLOR_SPACE_MODE_0
Definition oled.h:26
@ SCE_OLED_ERROR_INVALID_STATE
Definition oled.h:20
@ SCE_OLED_ERROR_INITIALIZATION_FAILED
Definition oled.h:18
@ SCE_OLED_ERROR_INVALID_ARGUMENT
Definition oled.h:17
@ SCE_OLED_ERROR_NOT_READY
Definition oled.h:19
uint16_t SceUInt16
Definition types.h:42
uint32_t SceUInt32
Definition types.h:45