vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Data Structures

struct  SceTouchDeviceInfo
 Cached touch-panel identity and firmware information. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0xC, SceTouchDeviceInfo)
 
int ksceTouchSetEnableFlag (SceUInt32 port, SceBool enable)
 Set touch enable flag.
 
int ksceTouchGetDeviceInfo (SceUInt32 panel, SceTouchDeviceInfo *info)
 Get touch-panel device information.
 
int ksceTouchSetTouchEmulationData (const void *front_data, const void *back_data)
 Set front and back touch-emulation data.
 

Variables

SceUInt16 SceTouchDeviceInfo::vendor_id
 Touch-controller vendor ID.
 
SceUInt16 SceTouchDeviceInfo::firmware_rev
 Controller firmware revision.
 
SceUInt16 SceTouchDeviceInfo::config_rev
 Controller configuration revision.
 
SceUInt8 SceTouchDeviceInfo::hw_version
 Hardware version used for firmware compatibility.
 
SceUInt8 SceTouchDeviceInfo::vendor_info
 Vendor-specific value used for firmware compatibility.
 
SceUInt8 SceTouchDeviceInfo::reserved [4]
 Set to zero on FW 3.60.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceTouchForDriver_stub




Data Structure Documentation

◆ SceTouchDeviceInfo

struct SceTouchDeviceInfo

Cached touch-panel identity and firmware information.

On FW 3.60, the extended Syscon record supplies the first eight bytes. The legacy path supplies the vendor and firmware revisions, obtains the configuration revision separately when supported, and leaves the hardware version and vendor information at zero. The public and kernel getters always set SceTouchDeviceInfo::reserved to zero.

Data Fields
SceUInt16 vendor_id Touch-controller vendor ID.
SceUInt16 firmware_rev Controller firmware revision.
SceUInt16 config_rev Controller configuration revision.
SceUInt8 hw_version Hardware version used for firmware compatibility.
SceUInt8 vendor_info Vendor-specific value used for firmware compatibility.
SceUInt8 reserved[4] Set to zero on FW 3.60.

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceTouchDeviceInfo   
)

◆ ksceTouchSetEnableFlag()

int ksceTouchSetEnableFlag ( SceUInt32  port,
SceBool  enable 
)

Set touch enable flag.

Parameters
[in]port- The port number.
[in]enable- The enable flag.
Returns
0 on success. < 0 on error.

◆ ksceTouchGetDeviceInfo()

int ksceTouchGetDeviceInfo ( SceUInt32  panel,
SceTouchDeviceInfo *  info 
)

Get touch-panel device information.

The complete output is cleared to zero, then filled from the selected panel's cached information while CPU interrupts are suspended and the Touch state spinlock is held. The panel does not need to be actively sampling.

Parameters
[in]panel- One of SceTouchPortType.
[out]info- Receives the complete 0xC-byte device-information record.
Returns
0 on success, or SCE_TOUCH_ERROR_INVALID_ARG if panel is not SCE_TOUCH_PORT_FRONT or SCE_TOUCH_PORT_BACK, or if info is NULL.

◆ ksceTouchSetTouchEmulationData()

int ksceTouchSetTouchEmulationData ( const void *  front_data,
const void *  back_data 
)

Set front and back touch-emulation data.

Each argument may be NULL. A non-NULL argument points to one 0x90-byte SceTouchData structure for the corresponding panel. On FW 3.60, this function ignores both arguments: it does not read, retain, or modify either structure.

Parameters
[in]front_data- Optional pointer to a front-panel SceTouchData.
[in]back_data- Optional pointer to a back-panel SceTouchData.
Returns
Always 0 on FW 3.60, including when both pointers are NULL.

Variable Documentation

◆ vendor_id

SceUInt16 SceTouchDeviceInfo::vendor_id

Touch-controller vendor ID.

◆ firmware_rev

SceUInt16 SceTouchDeviceInfo::firmware_rev

Controller firmware revision.

◆ config_rev

SceUInt16 SceTouchDeviceInfo::config_rev

Controller configuration revision.

◆ hw_version

SceUInt8 SceTouchDeviceInfo::hw_version

Hardware version used for firmware compatibility.

◆ vendor_info

SceUInt8 SceTouchDeviceInfo::vendor_info

Vendor-specific value used for firmware compatibility.

◆ reserved

SceUInt8 SceTouchDeviceInfo::reserved[4]

Set to zero on FW 3.60.