![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Data Structures | |
| struct | SceLocationLocationInfo |
| Structure of location information. More... | |
| struct | SceLocationHeadingInfo |
| Structure of heading information. More... | |
| struct | SceLocationPermissionInfo |
| Location information acquisition permission information. More... | |
Macros | |
| #define | SCE_LOCATION_DATA_INVALID (-9999.0) |
Typedefs | |
| typedef SceUInt32 | SceLocationHandle |
| Location handle datatype. | |
| typedef void(* | SceLocationLocationInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationLocationInfo *location, void *userdata) |
| Location information callback notification function. | |
| typedef void(* | SceLocationHeadingInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationHeadingInfo *heading, void *userdata) |
| Callback notification function for direction information. | |
Variables | |
| SceDouble64 | SceLocationLocationInfo::latitude |
| Latitude (deg). Valid range: -90 to + 90. If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceDouble64 | SceLocationLocationInfo::longitude |
| Longitude (deg). Valid range: -180 to +180. If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceDouble64 | SceLocationLocationInfo::altitude |
| Altitude (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceFloat32 | SceLocationLocationInfo::accuracy |
| Horizontal error (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceFloat32 | SceLocationLocationInfo::reserve |
| Reserve. | |
| SceFloat32 | SceLocationLocationInfo::direction |
| Travel direction. If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceFloat32 | SceLocationLocationInfo::speed |
| Travel speed (m/s). If cannot be obtained, SCE_LOCATION_DATA_INVALID. | |
| SceRtcTick | SceLocationLocationInfo::timestamp |
| Time of data acquisition, in μsec (UTC) | |
| SceFloat32 | SceLocationHeadingInfo::trueHeading |
| Clockwise angle from true north (0 to 360 degrees). If cannot be acquired, SCE_LOCATION_INVALID_DATA. | |
| SceFloat32 | SceLocationHeadingInfo::headingVectorX |
| Direction vector X coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. | |
| SceFloat32 | SceLocationHeadingInfo::headingVectorY |
| Direction vector Y coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. | |
| SceFloat32 | SceLocationHeadingInfo::headingVectorZ |
| Direction vector Z coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. | |
| SceFloat32 | SceLocationHeadingInfo::reserve |
| Reserve. | |
| SceFloat32 | SceLocationHeadingInfo::reserve2 |
| Reserve. | |
| SceRtcTick | SceLocationHeadingInfo::timestamp |
| Time acquired in unit of 1 usec (UTC) | |
| SceLocationPermissionStatus | SceLocationPermissionInfo::parentalstatus |
| Status of usage permission through parental control. | |
| SceLocationPermissionStatus | SceLocationPermissionInfo::mainstatus |
| Status of usage permission through location data item of system settings. | |
| SceLocationPermissionApplicationStatus | SceLocationPermissionInfo::applicationstatus |
| Status of usage permission through location data item for each application in system settings. | |
| int | SceLocationPermissionInfo::unk_0x0C |
| int | SceLocationPermissionInfo::unk_0x10 |
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
| struct SceLocationLocationInfo |
Structure of location information.
| Data Fields | ||
|---|---|---|
| SceDouble64 | latitude | Latitude (deg). Valid range: -90 to + 90. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceDouble64 | longitude | Longitude (deg). Valid range: -180 to +180. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceDouble64 | altitude | Altitude (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceFloat32 | accuracy | Horizontal error (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceFloat32 | reserve | Reserve. |
| SceFloat32 | direction | Travel direction. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceFloat32 | speed | Travel speed (m/s). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
| SceRtcTick | timestamp | Time of data acquisition, in μsec (UTC) |
| struct SceLocationHeadingInfo |
Structure of heading information.
| Data Fields | ||
|---|---|---|
| SceFloat32 | trueHeading | Clockwise angle from true north (0 to 360 degrees). If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
| SceFloat32 | headingVectorX | Direction vector X coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
| SceFloat32 | headingVectorY | Direction vector Y coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
| SceFloat32 | headingVectorZ | Direction vector Z coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
| SceFloat32 | reserve | Reserve. |
| SceFloat32 | reserve2 | Reserve. |
| SceRtcTick | timestamp | Time acquired in unit of 1 usec (UTC) |
| struct SceLocationPermissionInfo |
Location information acquisition permission information.
| Data Fields | ||
|---|---|---|
| SceLocationPermissionStatus | parentalstatus | Status of usage permission through parental control. |
| SceLocationPermissionStatus | mainstatus | Status of usage permission through location data item of system settings. |
| SceLocationPermissionApplicationStatus | applicationstatus | Status of usage permission through location data item for each application in system settings. |
| int | unk_0x0C | |
| int | unk_0x10 | |
| #define SCE_LOCATION_DATA_INVALID (-9999.0) |
| typedef SceUInt32 SceLocationHandle |
Location handle datatype.
| typedef void(* SceLocationLocationInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationLocationInfo *location, void *userdata) |
Location information callback notification function.
| typedef void(* SceLocationHeadingInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationHeadingInfo *heading, void *userdata) |
Callback notification function for direction information.
| enum SceLocationErrorCode |
Location error codes.
location usage permission status for individual application
Location measurement method.
Direction measurement method.
| VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
| SceLocationHandle | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x30 | , |
| SceLocationLocationInfo | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x20 | , |
| SceLocationHeadingInfo | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x14 | , |
| SceLocationPermissionInfo | |||
| ) |
| SceInt32 sceLocationOpen | ( | SceLocationHandle * | handle, |
| SceLocationLocationMethod | locateMethod, | ||
| SceLocationHeadingMethod | headingMethod | ||
| ) |
Functions.
Library start
| SceInt32 sceLocationClose | ( | SceLocationHandle | handle | ) |
Close library.
| SceInt32 sceLocationReopen | ( | SceLocationHandle | handle, |
| SceLocationLocationMethod | locateMethod, | ||
| SceLocationHeadingMethod | headingMethod | ||
| ) |
Reopen library.
| SceInt32 sceLocationGetMethod | ( | SceLocationHandle | handle, |
| SceLocationLocationMethod * | locateMethod, | ||
| SceLocationHeadingMethod * | headingMethod | ||
| ) |
Get location measurement method.
| SceInt32 sceLocationGetLocation | ( | SceLocationHandle | handle, |
| SceLocationLocationInfo * | locationInfo | ||
| ) |
Get location information.
| SceInt32 sceLocationCancelGetLocation | ( | SceLocationHandle | handle | ) |
Cancel location information acquisition operation.
| SceInt32 sceLocationStartLocationCallback | ( | SceLocationHandle | handle, |
| SceUInt32 | distance, | ||
| SceLocationLocationInfoCallback | callback, | ||
| void * | userdata | ||
| ) |
Start continuous acquisition of location information.
| SceInt32 sceLocationStopLocationCallback | ( | SceLocationHandle | handle | ) |
Stop continuous acquisition of location information.
| SceInt32 sceLocationGetHeading | ( | SceLocationHandle | handle, |
| SceLocationHeadingInfo * | headingInfo | ||
| ) |
Get direction information.
| SceInt32 sceLocationStartHeadingCallback | ( | SceLocationHandle | handle, |
| SceUInt32 | difference, | ||
| SceLocationHeadingInfoCallback | callback, | ||
| void * | userdata | ||
| ) |
Start continuous acquisition of direction information.
| SceInt32 sceLocationStopHeadingCallback | ( | SceLocationHandle | handle | ) |
Stop continuous acquisition of direction information.
| SceInt32 sceLocationConfirm | ( | SceLocationHandle | handle | ) |
Allow acquisition of location information.
| SceInt32 sceLocationConfirmGetStatus | ( | SceLocationHandle | handle, |
| SceLocationDialogStatus * | status | ||
| ) |
Get status of location information acquisition permission dialog.
| SceInt32 sceLocationConfirmGetResult | ( | SceLocationHandle | handle, |
| SceLocationDialogResult * | result | ||
| ) |
Get result of location information acquisition permission dialog.
| SceInt32 sceLocationConfirmAbort | ( | SceLocationHandle | handle | ) |
Abort location information acquisition permission dialog.
| SceInt32 sceLocationGetPermission | ( | SceLocationHandle | handle, |
| SceLocationPermissionInfo * | info | ||
| ) |
Get location information acquisition permission/refusal information.
| SceInt32 sceLocationSetGpsEmulationFile | ( | unsigned char * | filename | ) |
Get location information acquisition permission information.
| SceDouble64 SceLocationLocationInfo::latitude |
Latitude (deg). Valid range: -90 to + 90. If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceDouble64 SceLocationLocationInfo::longitude |
Longitude (deg). Valid range: -180 to +180. If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceDouble64 SceLocationLocationInfo::altitude |
Altitude (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceFloat32 SceLocationLocationInfo::accuracy |
Horizontal error (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceFloat32 SceLocationLocationInfo::reserve |
Reserve.
| SceFloat32 SceLocationLocationInfo::direction |
Travel direction. If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceFloat32 SceLocationLocationInfo::speed |
Travel speed (m/s). If cannot be obtained, SCE_LOCATION_DATA_INVALID.
| SceRtcTick SceLocationLocationInfo::timestamp |
Time of data acquisition, in μsec (UTC)
| SceFloat32 SceLocationHeadingInfo::trueHeading |
Clockwise angle from true north (0 to 360 degrees). If cannot be acquired, SCE_LOCATION_INVALID_DATA.
| SceFloat32 SceLocationHeadingInfo::headingVectorX |
Direction vector X coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA.
| SceFloat32 SceLocationHeadingInfo::headingVectorY |
Direction vector Y coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA.
| SceFloat32 SceLocationHeadingInfo::headingVectorZ |
Direction vector Z coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA.
| SceFloat32 SceLocationHeadingInfo::reserve |
Reserve.
| SceFloat32 SceLocationHeadingInfo::reserve2 |
Reserve.
| SceRtcTick SceLocationHeadingInfo::timestamp |
Time acquired in unit of 1 usec (UTC)
| SceLocationPermissionStatus SceLocationPermissionInfo::parentalstatus |
Status of usage permission through parental control.
| SceLocationPermissionStatus SceLocationPermissionInfo::mainstatus |
Status of usage permission through location data item of system settings.
| SceLocationPermissionApplicationStatus SceLocationPermissionInfo::applicationstatus |
Status of usage permission through location data item for each application in system settings.
| int SceLocationPermissionInfo::unk_0x0C |
| int SceLocationPermissionInfo::unk_0x10 |