![]() |
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. | |
Exports for Kernel.
Include the header file in your project:
Include the header file in your project:
Link the library to the executable:
| 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. |
| VITASDK_BUILD_ASSERT_EQ | ( | 0xC | , |
| SceTouchDeviceInfo | |||
| ) |
Set touch enable flag.
| [in] | port | - The port number. |
| [in] | enable | - The enable flag. |
| 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.
| [in] | panel | - One of SceTouchPortType. |
| [out] | info | - Receives the complete 0xC-byte device-information record. |
| 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.
| [in] | front_data | - Optional pointer to a front-panel SceTouchData. |
| [in] | back_data | - Optional pointer to a back-panel SceTouchData. |
| 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.