uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
Syscon Module

Data Structures

struct  SceSysconPacket
 
struct  SceSysconDebugHandlers
 

Macros

#define PSP_SYSCON_BARYON_GET_UNIT_TYPE(v)   ((v) & 0xFF) /* 0 = Dev version, 1 = Retail */
 

Typedefs

typedef struct SceSysconPacket SceSysconPacket
 
typedef void(* SceSysconFunc) (s32 enable, void *argp)
 

Enumerations

enum  PspSysconLeds { PSP_SYSCON_LED_MS , PSP_SYSCON_LED_WLAN , PSP_SYSCON_LED_POWER , PSP_SYSCON_LED_BT }
 

Functions

s32 sceSysconInit (void)
 
s32 sceSysconEnd (void)
 
s32 sceSysconResume (void *arg0)
 
s32 sceSysconCmdExec (SceSysconPacket *packet, u32 flags)
 
s32 sceSysconCmdExecAsync (SceSysconPacket *packet, u32 flags, s32(*callback)(SceSysconPacket *, void *), void *argp)
 
s32 sceSysconCmdCancel (SceSysconPacket *packet)
 
s32 sceSysconCmdSync (SceSysconPacket *packet, u32 noWait)
 
s32 sceSyscon_driver_90EAEA2B (u32 timeout, u32 intrTimeout)
 
s32 sceSyscon_driver_755CF72B (u32 *timeoutPtr, u32 *intrTimeoutPtr)
 
s32 sceSysconSuspend (void)
 
s32 sceSysconSetDebugHandlers (SceSysconDebugHandlers *handlers)
 
s32 sceSysconSetPollingMode (u32 pollingMode)
 
s32 sceSysconSetAffirmativeRertyMode (u32 mode)
 
s32 _sceSysconGetBaryonVersion (void)
 
u64 _sceSysconGetBaryonTimeStamp (void)
 
s32 _sceSysconGetUsbPowerType (void)
 
s32 sceSysconSetGSensorCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetLowBatteryCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetPowerSwitchCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetAlarmCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetAcSupplyCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetAcSupply2Callback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetHPConnectCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetHRPowerCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetHRWakeupCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetWlanSwitchCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetWlanPowerCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetBtSwitchCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetBtPowerCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetHoldSwitchCallback (SceSysconFunc callback, void *argp)
 
s32 sceSysconSetUmdSwitchCallback (SceSysconFunc callback, void *argp)
 
s32 sceSyscon_driver_374373A8 (SceSysconFunc callback, void *argp)
 
s32 sceSyscon_driver_B761D385 (SceSysconFunc callback, void *argp)
 
s32 sceSyscon_driver_26307D84 (SceSysconFunc callback, void *argp)
 
s32 sceSyscon_driver_6C388E02 (SceSysconFunc callback, void *argp)
 
u8 sceSysconGetBaryonStatus (void)
 
u8 sceSysconGetBaryonStatus2 (void)
 
u8 sceSysconIsFalling (void)
 
u8 sceSysconIsLowBattery (void)
 
u8 sceSysconGetPowerSwitch (void)
 
u8 sceSysconIsAlarmed (void)
 
u8 sceSysconIsAcSupplied (void)
 
s8 sceSysconGetHPConnect (void)
 
s8 sceSysconGetWlanSwitch (void)
 
s8 sceSyscon_driver_0B51E34D (s8 wlanSwitch)
 
s8 sceSysconGetBtSwitch (void)
 
s8 sceSyscon_driver_BADF1260 (s8 btSwitch)
 
s8 sceSysconGetHoldSwitch (void)
 
s8 sceSysconGetUmdSwitch (void)
 
s8 sceSyscon_driver_248335CD (void)
 
s8 sceSyscon_driver_040982CD (void)
 
s8 sceSyscon_driver_97765E27 (void)
 
u8 sceSysconGetHRPowerStatus (void)
 
u8 sceSysconGetHRWakeupStatus (void)
 
u8 sceSysconGetWlanPowerStatus (void)
 
u8 sceSysconGetBtPowerStatus (void)
 
u8 sceSyscon_driver_DF20C984 (void)
 
s8 sceSysconGetLeptonPowerCtrl (void)
 
s8 sceSysconGetMsPowerCtrl (void)
 
s8 sceSysconGetWlanPowerCtrl (void)
 
s8 sceSysconGetHddPowerCtrl (void)
 
s8 sceSysconGetDvePowerCtrl (void)
 
s8 sceSysconGetBtPowerCtrl (void)
 
s8 sceSysconGetUsbPowerCtrl (void)
 
s8 sceSysconGetTachyonVmePowerCtrl (void)
 
s8 sceSysconGetTachyonAwPowerCtrl (void)
 
s8 sceSysconGetTachyonAvcPowerCtrl (void)
 
s8 sceSysconGetLcdPowerCtrl (void)
 
s8 sceSysconGetHRPowerCtrl (void)
 
s8 sceSysconGetWlanLedCtrl (void)
 
s32 sceSysconGetTimeStamp (s8 *timeStamp)
 
s32 sceSysconWriteScratchPad (u32 dst, void *src, u32 size)
 
s32 sceSysconReadScratchPad (u32 src, void *dst, u32 size)
 
s32 sceSysconSendSetParam (u32 id, void *param)
 
s32 sceSysconReceiveSetParam (u32 id, void *param)
 
s32 sceSysconCtrlTachyonWDT (s32 wdt)
 
s32 sceSysconResetDevice (u32 reset, u32 mode)
 
s32 sceSyscon_driver_12518439 (u32 arg0)
 
s32 sceSysconPowerSuspend (u32 arg0, u32 arg1)
 
s32 sceSysconNop (void)
 
s32 sceSysconGetBaryonVersion (s32 *baryonVersion)
 
s32 sceSysconGetGValue (void)
 
s32 sceSysconGetPowerSupplyStatus (s32 *status)
 
s32 sceSysconGetFallingDetectTime (void)
 
s32 sceSysconGetWakeUpFactor (void *factor)
 
s32 sceSysconGetWakeUpReq (void *req)
 
s32 sceSysconGetVideoCable (s32 *cable)
 
s32 sceSysconReadClock (s32 *clock)
 
s32 sceSysconWriteClock (s32 clock)
 
s32 sceSysconReadAlarm (s32 *alarm)
 
s32 sceSysconWriteAlarm (s32 alarm)
 
s32 sceSysconSetUSBStatus (u8 status)
 
s32 sceSysconGetTachyonWDTStatus (s32 *status)
 
s32 sceSysconCtrlAnalogXYPolling (s8 polling)
 
s32 sceSysconCtrlHRPower (s8 power)
 
s32 sceSysconCtrlPower (u32 arg0, u32 arg1)
 
s32 sceSysconCtrlLED (u32 led, u32 set)
 
s32 sceSysconCtrlDvePower (s8 power)
 
s32 sceSyscon_driver_765775EB (s32 arg0)
 
s32 sceSysconCtrlCharge (u8 allow)
 
s32 sceSysconCtrlTachyonAvcPower (s8 power)
 
s32 sceSysconGetPommelVersion (s32 *pommel)
 
s32 sceSysconGetPolestarVersion (s32 *polestar)
 
s32 sceSysconCtrlVoltage (s32 arg0, s32 arg1)
 
s32 sceSysconGetGSensorVersion (void)
 
s32 sceSysconCtrlGSensor (void)
 
s32 sceSysconGetPowerStatus (s32 *status)
 
s32 sceSysconWritePommelReg (u8 reg, s16 value)
 
s32 sceSysconReadPommelReg (u8 reg, s16 *value)
 
s32 sceSysconGetPowerError (s32 *error)
 
s32 sceSysconCtrlLeptonPower (s8 power)
 
s32 sceSysconCtrlMsPower (s8 power)
 
s32 sceSysconCtrlWlanPower (s8 power)
 
s32 sceSysconCtrlHddPower (s8 power)
 
s32 sceSysconCtrlBtPower (s8 power)
 
s32 sceSysconCtrlUsbPower (s8 power)
 
s32 sceSysconPermitChargeBattery (void)
 
s32 sceSysconForbidChargeBattery (void)
 
s32 sceSysconCtrlTachyonVmePower (s8 power)
 
s32 sceSysconCtrlTachyonAwPower (s8 power)
 
s32 sceSysconCtrlLcdPower (s8 power)
 
s32 sceSysconGetGSensorCarib (void)
 
s32 sceSysconSetGSensorCarib (void)
 
s32 sceSysconWritePolestarReg (u8 reg, s16 val)
 
s32 sceSysconReadPolestarReg (u8 reg, s16 *val)
 
s32 sceSysconWriteGSensorReg (void)
 
s32 sceSysconReadGSensorReg (void)
 
s32 sceSysconBatteryGetStatusCap (s32 *arg0, s32 *arg1)
 
s32 sceSysconBatteryGetInfo (s32 *info)
 
s32 sceSysconGetBattVolt (s32 *volt)
 
s32 sceSysconGetBattVoltAD (s32 *volt1, s32 *volt2)
 
s32 sceSysconBatteryNop (void)
 
s32 sceSysconBatteryGetTemp (s32 *temp)
 
s32 sceSysconBatteryGetVolt (s32 *volt)
 
s32 sceSysconBatteryGetElec (s32 *elec)
 
s32 sceSysconBatteryGetRCap (s32 *rcap)
 
s32 sceSysconBatteryGetCap (s32 *cap)
 
s32 sceSysconBatteryGetFullCap (s32 *cap)
 
s32 sceSysconBatteryGetIFC (s32 *ifc)
 
s32 sceSysconBatteryGetLimitTime (s32 *time)
 
s32 sceSysconBatteryGetStatus (s32 *status)
 
s32 sceSysconBatteryGetCycle (s32 *cycle)
 
s32 sceSysconBatteryGetSerial (s32 *serial)
 
s32 sceSysconBatteryGetTempAD (s32 *temp)
 
s32 sceSysconBatteryGetVoltAD (s32 *volt)
 
s32 sceSysconBatteryGetElecAD (s32 *elec)
 
s32 sceSysconBatteryGetTotalElec (s32 *elec)
 
s32 sceSysconBatteryGetChargeTime (s32 *time)
 
s32 sceSysconCtrlTachyonVoltage (s32 voltage)
 
s32 sceSysconGetDigitalKey (s8 *key)
 

Detailed Description

Author
artart78
Version
6.60

The syscon.prx module RE'ing.

Macro Definition Documentation

◆ PSP_SYSCON_BARYON_GET_UNIT_TYPE

#define PSP_SYSCON_BARYON_GET_UNIT_TYPE (   v)    ((v) & 0xFF) /* 0 = Dev version, 1 = Retail */

Below are macros to extract Baryon specific info returned by _sceSysconGetBaryonVersion() and sceSysconGetBaryonVersion().

Typedef Documentation

◆ SceSysconPacket

A system controller packet, used to run a syscon command.

◆ SceSysconFunc

typedef void(* SceSysconFunc) (s32 enable, void *argp)

A system controller callback.

Enumeration Type Documentation

◆ PspSysconLeds

PSP Hardware LEDs which can be turned ON/OFF via sceSysconCtrlLED().

Enumerator
PSP_SYSCON_LED_MS 

Memory-Stick LED.

PSP_SYSCON_LED_WLAN 

W-LAN LED.

PSP_SYSCON_LED_POWER 

Power LED.

PSP_SYSCON_LED_BT 

Bluetooth LED.

Function Documentation

◆ sceSysconInit()

s32 sceSysconInit ( void  )

Initialize the system controller.

Returns
0.

◆ sceSysconEnd()

s32 sceSysconEnd ( void  )

End the system controller.

Returns
0.

◆ sceSysconResume()

s32 sceSysconResume ( void *  arg0)

Resume the system controller.

Returns
0.

◆ sceSysconCmdExec()

s32 sceSysconCmdExec ( SceSysconPacket packet,
u32  flags 
)

Execute synchronously a syscon packet.

Parameters
packetThe packet to execute. Its tx member needs to be initialized.
flagsThe packet flags. Check ScesysconPacketFlags.
Returns
0 on success.

◆ sceSysconCmdExecAsync()

s32 sceSysconCmdExecAsync ( SceSysconPacket packet,
u32  flags,
s32(*)(SceSysconPacket *, void *)  callback,
void *  argp 
)

Execute asynchronously a syscon packet.

Parameters
packetThe packet to execute. Its tx member needs to be initialized.
flagsThe packet flags. Check SceSysconPacketFlags.
callbackThe packet callback. Check the callback member of SceSysconPacket.
argpThe second argument that will be passed to the callback when executed.
Returns
0 on success.

◆ sceSysconCmdCancel()

s32 sceSysconCmdCancel ( SceSysconPacket packet)

Cancel a syscon packet which has been added for execution.

Parameters
packetThe same packet that was passed to sceSysconCmdExec or sceSysconCmdExecAsync.
Returns
0 on success.

◆ sceSysconCmdSync()

s32 sceSysconCmdSync ( SceSysconPacket packet,
u32  noWait 
)

Wait for the currently queued syscon packets to be executed, or check if any are in the queue.

Parameters
packetThe packet you want to check or wait for, or NULL if you want to check or wait for all the currently running packets.
noWaitSet to 1 if you just want to check the packet status, or 0 if you want the function to return only when the packet queue is empty.
Returns
1 if packets are still running (and noWait was set to 1), 0 on success, < 0 otherwise.

◆ sceSyscon_driver_90EAEA2B()

s32 sceSyscon_driver_90EAEA2B ( u32  timeout,
u32  intrTimeout 
)

Set the packet start timeout when waiting for the queue to leave room. After it, packet will be set to current, whatever is the current packet, if polling mode isn't 0 (for interrupts) or if retry mode isn't 0 (for normal sceSysconCmdExec / sceSysconCmdExecAsync).

Parameters
timeoutThe timeout when a packet is ran using sceSysconCmdExec or sceSysconCmdExecAsync.
intrTimeoutThe timeout when running the next packet from the queue.
Returns
0.

◆ sceSyscon_driver_755CF72B()

s32 sceSyscon_driver_755CF72B ( u32 *  timeoutPtr,
u32 *  intrTimeoutPtr 
)

Get the packet start timeouts (check sceSyscon_driver_90EAEA2B for details).

Parameters
timeoutPtrA pointer which will be filled with the packet start timeout if non-NULL.
intrTimeoutPtrA pointer which will be filled with the interrupt packet start timeout if non-NULL.
Returns
0.

◆ sceSysconSuspend()

s32 sceSysconSuspend ( void  )

Suspend the system controller.

◆ sceSysconSetDebugHandlers()

s32 sceSysconSetDebugHandlers ( SceSysconDebugHandlers handlers)

Set the debug handlers.

Returns
0.

◆ sceSysconSetPollingMode()

s32 sceSysconSetPollingMode ( u32  pollingMode)

Set the polling mode.

Parameters
pollingModeShould be the same state as the interrupt controller. If set to 0, the module will use semaphores for synchronization, add the "wait" syscon command in the queue, use a constant timeout of 4ms, etc.
Returns
0.

◆ sceSysconSetAffirmativeRertyMode()

s32 sceSysconSetAffirmativeRertyMode ( u32  mode)

Enable retrying packet execution.

Parameters
modeIf set to 1, the syscon commands which "failed" will be ran again.
Returns
0.

◆ _sceSysconGetBaryonVersion()

s32 _sceSysconGetBaryonVersion ( void  )

Get the baryon version.

Returns
The baryon version.

◆ _sceSysconGetBaryonTimeStamp()

u64 _sceSysconGetBaryonTimeStamp ( void  )

Get the baryon timestamp.

Returns
The baryon timestamp.

◆ _sceSysconGetUsbPowerType()

s32 _sceSysconGetUsbPowerType ( void  )

Get the USB power type.

Returns
0 or 1 (but probably returns 1 on all normal PSPs).

◆ sceSysconSetGSensorCallback()

s32 sceSysconSetGSensorCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the GSensor callback, that will be ran when the GSensor state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetLowBatteryCallback()

s32 sceSysconSetLowBatteryCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the low battery callback, that will be ran when the battery is low.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetPowerSwitchCallback()

s32 sceSysconSetPowerSwitchCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the power switch callback, that will be ran when the power switch state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetAlarmCallback()

s32 sceSysconSetAlarmCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the alarm callback, that will be ran when the alarm state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetAcSupplyCallback()

s32 sceSysconSetAcSupplyCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the Ac supply callback, that will be ran when the PSP Ac power is (dis)connected (probably).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetAcSupply2Callback()

s32 sceSysconSetAcSupply2Callback ( SceSysconFunc  callback,
void *  argp 
)

Set the second Ac supply callback, that will be ran when the 2nd PSP Ac state changes (?).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetHPConnectCallback()

s32 sceSysconSetHPConnectCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the headphone connect callback, that will be ran when the headphone is (dis)connected.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetHRPowerCallback()

s32 sceSysconSetHRPowerCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the HR power callback, that will be ran when the HR power (?) state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetHRWakeupCallback()

s32 sceSysconSetHRWakeupCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the HR wakeup callback, that will be ran when the HR wakeup (?) state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetWlanSwitchCallback()

s32 sceSysconSetWlanSwitchCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the wlan switch callback, that will be ran when the wlan switch changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetWlanPowerCallback()

s32 sceSysconSetWlanPowerCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the wlan power callback, that will be ran when the wlan power state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetBtSwitchCallback()

s32 sceSysconSetBtSwitchCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the bluetooth switch callback, that will be ran when the bluetooth switch changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetBtPowerCallback()

s32 sceSysconSetBtPowerCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the bluetooth power callback, that will be ran when the bluetooth power state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetHoldSwitchCallback()

s32 sceSysconSetHoldSwitchCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the hold switch callback, that will be ran when the hold switch state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconSetUmdSwitchCallback()

s32 sceSysconSetUmdSwitchCallback ( SceSysconFunc  callback,
void *  argp 
)

Set the UMD switch callback, that will be ran when the UMD switch state changes.

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSyscon_driver_374373A8()

s32 sceSyscon_driver_374373A8 ( SceSysconFunc  callback,
void *  argp 
)

Set the (?) callback, that will be ran when the (?) state changes (in PSP street, related to HP remote).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSyscon_driver_B761D385()

s32 sceSyscon_driver_B761D385 ( SceSysconFunc  callback,
void *  argp 
)

Set the (?) callback, that will be ran when the (?) state changes (in PSP street, related to HP remote).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSyscon_driver_26307D84()

s32 sceSyscon_driver_26307D84 ( SceSysconFunc  callback,
void *  argp 
)

Set the (?) callback, that will be ran when the (?) state changes (unused).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSyscon_driver_6C388E02()

s32 sceSyscon_driver_6C388E02 ( SceSysconFunc  callback,
void *  argp 
)

Set the (?) callback, that will be ran when the (?) state changes (related to USB).

Parameters
callbackThe callback function.
argpThe second argument that will be passed to the callback.
Returns
0.

◆ sceSysconGetBaryonStatus()

u8 sceSysconGetBaryonStatus ( void  )

Get the baryon status (set of flags about the syscon ctrl state).

Returns
The baryon status.

◆ sceSysconGetBaryonStatus2()

u8 sceSysconGetBaryonStatus2 ( void  )

Get the "second" baryon status (set of other flags about the syscon ctrl state).

Returns
The second baryon status.

◆ sceSysconIsFalling()

u8 sceSysconIsFalling ( void  )

Check if the PSP is falling.

Returns
1 if it is falling, 0 otherwise.

◆ sceSysconIsLowBattery()

u8 sceSysconIsLowBattery ( void  )

Check if the battery is low.

Returns
1 if it is low, 0 otherwise.

◆ sceSysconGetPowerSwitch()

u8 sceSysconGetPowerSwitch ( void  )

Get the power switch state.

Returns
1 if it is on, 0 otherwise.

◆ sceSysconIsAlarmed()

u8 sceSysconIsAlarmed ( void  )

Check if the PSP is alarmed.

Returns
1 if it is alarmed, 0 otherwise.

◆ sceSysconIsAcSupplied()

u8 sceSysconIsAcSupplied ( void  )

Check if the Ac is supplying current.

Returns
1 if it is supplying, 0 otherwise.

◆ sceSysconGetHPConnect()

s8 sceSysconGetHPConnect ( void  )

Get the headphone connection.

Returns
1 if the headphone is connected, 0 otherwise.

◆ sceSysconGetWlanSwitch()

s8 sceSysconGetWlanSwitch ( void  )

Get the wlan switch state.

Returns
1 if wlan is activated, 0 otherwise.

◆ sceSyscon_driver_0B51E34D()

s8 sceSyscon_driver_0B51E34D ( s8  wlanSwitch)

Set a wlan switch override value.

Parameters
wlanSwitchThe value that will override the default wlan switch value if more than 0, or disable overriding with a less than 0 value.
Returns
The former overriding value.

◆ sceSysconGetBtSwitch()

s8 sceSysconGetBtSwitch ( void  )

Get the bluetooth switch state.

Returns
1 if bluetooth is activated, 0 otherwise.

◆ sceSyscon_driver_BADF1260()

s8 sceSyscon_driver_BADF1260 ( s8  btSwitch)

Set a bluetooth switch override value.

Parameters
btSwitchThe value that will override the default bluetooth switch value if more than 0, or disable overriding with a less than 0 value.
Returns
The former overriding value.

◆ sceSysconGetHoldSwitch()

s8 sceSysconGetHoldSwitch ( void  )

Get the hold switch state.

Returns
1 if the hold switch is on, 0 otherwise.

◆ sceSysconGetUmdSwitch()

s8 sceSysconGetUmdSwitch ( void  )

Get the UMD switch state.

Returns
1 if the umd switch is on, 0 otherwise.

◆ sceSyscon_driver_248335CD()

s8 sceSyscon_driver_248335CD ( void  )

Get an unknown state (in PSP street, related to HP remote).

Returns
1 or 0.

◆ sceSyscon_driver_040982CD()

s8 sceSyscon_driver_040982CD ( void  )

Get an unknown state (in PSP street, related to HP remote).

Returns
1 or 0.

◆ sceSyscon_driver_97765E27()

s8 sceSyscon_driver_97765E27 ( void  )

Get an unknown state (related to input).

Returns
1 or 0.

◆ sceSysconGetHRPowerStatus()

u8 sceSysconGetHRPowerStatus ( void  )

Get the HP remote power status.

Returns
1 if the HP remote is powered, 0 otherwise.

◆ sceSysconGetHRWakeupStatus()

u8 sceSysconGetHRWakeupStatus ( void  )

Get the headphone remote wakeup status.

Returns
1 if it woke up (unsure), 0 otherwise.

◆ sceSysconGetWlanPowerStatus()

u8 sceSysconGetWlanPowerStatus ( void  )

Get the wlan power status.

Returns
1 if the power is on, 0 otherwise.

◆ sceSysconGetBtPowerStatus()

u8 sceSysconGetBtPowerStatus ( void  )

Get the bluetooth power status.

Returns
1 if the power is on, 0 otherwise.

◆ sceSyscon_driver_DF20C984()

u8 sceSyscon_driver_DF20C984 ( void  )

Get an unknown state (USB-related).

Returns
1 or 0.

◆ sceSysconGetLeptonPowerCtrl()

s8 sceSysconGetLeptonPowerCtrl ( void  )

Get the UMD drive power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetMsPowerCtrl()

s8 sceSysconGetMsPowerCtrl ( void  )

Get the Memory Stick power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetWlanPowerCtrl()

s8 sceSysconGetWlanPowerCtrl ( void  )

Get the wlan power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetHddPowerCtrl()

s8 sceSysconGetHddPowerCtrl ( void  )

Get the HDD power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetDvePowerCtrl()

s8 sceSysconGetDvePowerCtrl ( void  )

Get the DVE (video out) power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetBtPowerCtrl()

s8 sceSysconGetBtPowerCtrl ( void  )

Get the bluetooth power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetUsbPowerCtrl()

s8 sceSysconGetUsbPowerCtrl ( void  )

Get the USB power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetTachyonVmePowerCtrl()

s8 sceSysconGetTachyonVmePowerCtrl ( void  )

Get the Tachyon VME power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetTachyonAwPowerCtrl()

s8 sceSysconGetTachyonAwPowerCtrl ( void  )

Get the Tachyon AW power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetTachyonAvcPowerCtrl()

s8 sceSysconGetTachyonAvcPowerCtrl ( void  )

Get the Tachyon AVC power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetLcdPowerCtrl()

s8 sceSysconGetLcdPowerCtrl ( void  )

Get the LCD screen power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetHRPowerCtrl()

s8 sceSysconGetHRPowerCtrl ( void  )

Get the headphone remote power control state.

Returns
1 if powered, 0 otherwise.

◆ sceSysconGetWlanLedCtrl()

s8 sceSysconGetWlanLedCtrl ( void  )

Get the wlan LED control state.

Returns
1 if on, 0 otherwise.

◆ sceSysconGetTimeStamp()

s32 sceSysconGetTimeStamp ( s8 *  timeStamp)

Get the baryon timestamp string.

Parameters
timeStampA pointer to a string at least 12 bytes long.
Returns
0 on success.

◆ sceSysconWriteScratchPad()

s32 sceSysconWriteScratchPad ( u32  dst,
void *  src,
u32  size 
)

Write data to the scratchpad.

Parameters
dstThe scratchpad address to write to.
srcA pointer to the data to copy to the scratchpad.
sizeThe size of the data to copy.
Returns
0 on success.

◆ sceSysconReadScratchPad()

s32 sceSysconReadScratchPad ( u32  src,
void *  dst,
u32  size 
)

Read data from the scratchpad.

Parameters
srcThe scratchpad address to read from.
dstA pointer where will be copied the read data.
sizeThe size of the data to read from the scratchpad.
Returns
0 on success.

◆ sceSysconSendSetParam()

s32 sceSysconSendSetParam ( u32  id,
void *  param 
)

Set a parameter (used by power).

Parameters
idThe parameter ID (?).
paramPointer to a buffer (length 8) the parameter will be set to.
Returns
0 on success.

◆ sceSysconReceiveSetParam()

s32 sceSysconReceiveSetParam ( u32  id,
void *  param 
)

Receive a parameter (used by power).

Parameters
idThe parameter ID (?).
paramPointer to a buffer (length 8) where will be copied the parameter.
Returns
0 on success.

◆ sceSysconCtrlTachyonWDT()

s32 sceSysconCtrlTachyonWDT ( s32  wdt)

Set the tachyon watchdog timer.

Parameters
wdtThe timer value (0 - 0x7F).
Returns
0 on success.

◆ sceSysconResetDevice()

s32 sceSysconResetDevice ( u32  reset,
u32  mode 
)

Reset the device.

Parameters
resetThe reset value, passed to the syscon.
modeThe resetting mode (?).
Returns
0 on success.

◆ sceSyscon_driver_12518439()

s32 sceSyscon_driver_12518439 ( u32  arg0)

(? related to power, looks a bit like sceSysconPowerSuspend)

Parameters
arg0Unknown.
Returns
0.

◆ sceSysconPowerSuspend()

s32 sceSysconPowerSuspend ( u32  arg0,
u32  arg1 
)

Suspend the PSP power.

Parameters
arg0Unknown.
arg1Unknown.
Returns
0.

◆ sceSysconNop()

s32 sceSysconNop ( void  )

Send a command to the syscon doing nothing.

Returns
0 on success.

◆ sceSysconGetBaryonVersion()

s32 sceSysconGetBaryonVersion ( s32 *  baryonVersion)

Get the baryon version from the syscon.

Parameters
baryonVersionPointer to a s32 where the baryon version will be stored.
Returns
0 on success.

◆ sceSysconGetGValue()

s32 sceSysconGetGValue ( void  )

Debugging function, disactivated in production.

Returns
< 0.

◆ sceSysconGetPowerSupplyStatus()

s32 sceSysconGetPowerSupplyStatus ( s32 *  status)

Get the power supply status.

Parameters
statusPointer to a s32 where the power supply status will be stored.
Returns
0 on success.

◆ sceSysconGetFallingDetectTime()

s32 sceSysconGetFallingDetectTime ( void  )

Debugging function, disactivated in production.

Returns
< 0.

◆ sceSysconGetWakeUpFactor()

s32 sceSysconGetWakeUpFactor ( void *  factor)

Get the wake up factor (?).

Parameters
factorPointer to a buffer where the factor will be stored.
Returns
0 on success.

◆ sceSysconGetWakeUpReq()

s32 sceSysconGetWakeUpReq ( void *  req)

Get the wake up req (?).

Parameters
reqPointer to a buffer where the req will be stored.
Returns
0 on success.

◆ sceSysconGetVideoCable()

s32 sceSysconGetVideoCable ( s32 *  cable)

Get the video cable.

Parameters
cablePointer to a s32 where the cable info will be stored.
Returns
0 on success.

◆ sceSysconReadClock()

s32 sceSysconReadClock ( s32 *  clock)

Read the PSP clock.

Parameters
clockPointer to a s32 where the clock will be stored.
Returns
0 on success.

◆ sceSysconWriteClock()

s32 sceSysconWriteClock ( s32  clock)

Write the PSP clock.

Parameters
clockThe clock value to set the PSP clock to.
Returns
0 on success.

◆ sceSysconReadAlarm()

s32 sceSysconReadAlarm ( s32 *  alarm)

Read the PSP alarm.

Parameters
alarmPointer to a s32 where the alarm will be stored.
Returns
0 on success.

◆ sceSysconWriteAlarm()

s32 sceSysconWriteAlarm ( s32  alarm)

Set the PSP alarm.

Parameters
alarmThe alarm value to set the PSP alarm to.
Returns
0 on success.

◆ sceSysconSetUSBStatus()

s32 sceSysconSetUSBStatus ( u8  status)

Set the USB status.

Parameters
statusThe new USB status.
Returns
0 on success.

◆ sceSysconGetTachyonWDTStatus()

s32 sceSysconGetTachyonWDTStatus ( s32 *  status)

Get the Tachyon watchdog timer status.

Parameters
statusPointer to a s32 where the watchdog timer status will be stored.
Returns
0 on success.

◆ sceSysconCtrlAnalogXYPolling()

s32 sceSysconCtrlAnalogXYPolling ( s8  polling)

Set the analog XY polling control.

Parameters
pollingThe new polling value.
Returns
0 on success.

◆ sceSysconCtrlHRPower()

s32 sceSysconCtrlHRPower ( s8  power)

Set the HR power control.

Parameters
powerThe new power control.
Returns
0 on success.

◆ sceSysconCtrlPower()

s32 sceSysconCtrlPower ( u32  arg0,
u32  arg1 
)

Set the power control.

Parameters
arg0Unknown.
arg1Unknown.
Returns
0 on success.

◆ sceSysconCtrlLED()

s32 sceSysconCtrlLED ( u32  led,
u32  set 
)

Turn a LED on or off.

Parameters
ledThe LED id, one of PspSysconLeds.
setSet this value to 1 if you want the LED to turn on, or 0 if you want it to turn off.
Returns
0 on success.

◆ sceSysconCtrlDvePower()

s32 sceSysconCtrlDvePower ( s8  power)

Set the Dve power control.

Parameters
powerThe new dve power control.
Returns
0 on success.

◆ sceSyscon_driver_765775EB()

s32 sceSyscon_driver_765775EB ( s32  arg0)

Set an unknown value.

Parameters
arg0Always set to 0 when the function is called.
Returns
0 on success.

◆ sceSysconCtrlCharge()

s32 sceSysconCtrlCharge ( u8  allow)

Allow or disallow charge.

Parameters
allowSet to 1 if you want charge to be allowed, 0 otherwise.
Returns
0 on success.

◆ sceSysconCtrlTachyonAvcPower()

s32 sceSysconCtrlTachyonAvcPower ( s8  power)

Set the tachyon AVC power control.

Parameters
powerThe new AVC power control.
Returns
0 on success.

◆ sceSysconGetPommelVersion()

s32 sceSysconGetPommelVersion ( s32 *  pommel)

Get the pommel version.

Parameters
pommelPointer to a s32 where the pommel version will be stored.
Returns
0 on success.

◆ sceSysconGetPolestarVersion()

s32 sceSysconGetPolestarVersion ( s32 *  polestar)

Get the polestar version.

Parameters
polestarPointer to a s32 where the polestar version will be stored.
Returns
0 on success.

◆ sceSysconCtrlVoltage()

s32 sceSysconCtrlVoltage ( s32  arg0,
s32  arg1 
)

Set the voltage.

Parameters
arg0Unknown.
arg1Unknown.
Returns
0 on success.

◆ sceSysconGetGSensorVersion()

s32 sceSysconGetGSensorVersion ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconCtrlGSensor()

s32 sceSysconCtrlGSensor ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconGetPowerStatus()

s32 sceSysconGetPowerStatus ( s32 *  status)

Get the power status.

Parameters
statusPointer to a s32 where the power status will be stored.
Returns
0 on success.

◆ sceSysconWritePommelReg()

s32 sceSysconWritePommelReg ( u8  reg,
s16  value 
)

Write a value to a pommel register.

Parameters
regThe register id to write the value to.
valueThe value to write to the register.
Returns
0 on success.

◆ sceSysconReadPommelReg()

s32 sceSysconReadPommelReg ( u8  reg,
s16 *  value 
)

Read a value from a pommel register.

Parameters
regThe register id to read the value from.
valuePointer to a s16 where the contents of the register will be stored.
Returns
0 on success.

◆ sceSysconGetPowerError()

s32 sceSysconGetPowerError ( s32 *  error)

Get the power error (function seems disabled).

Parameters
errorPointer to a s32 where 0 will be stored, if non-NULL.
Returns
0.

◆ sceSysconCtrlLeptonPower()

s32 sceSysconCtrlLeptonPower ( s8  power)

Set the lepton power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlMsPower()

s32 sceSysconCtrlMsPower ( s8  power)

Set the memory stick power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlWlanPower()

s32 sceSysconCtrlWlanPower ( s8  power)

Set the wlan power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlHddPower()

s32 sceSysconCtrlHddPower ( s8  power)

Set the HDD power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlBtPower()

s32 sceSysconCtrlBtPower ( s8  power)

Set the bluetooth power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlUsbPower()

s32 sceSysconCtrlUsbPower ( s8  power)

Set the USB power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconPermitChargeBattery()

s32 sceSysconPermitChargeBattery ( void  )

Permit the battery charge.

Returns
0 on success.

◆ sceSysconForbidChargeBattery()

s32 sceSysconForbidChargeBattery ( void  )

Forbid the battery charge.

Returns
0 on success.

◆ sceSysconCtrlTachyonVmePower()

s32 sceSysconCtrlTachyonVmePower ( s8  power)

Set the tachyon VME power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlTachyonAwPower()

s32 sceSysconCtrlTachyonAwPower ( s8  power)

Set the tachyon AW power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconCtrlLcdPower()

s32 sceSysconCtrlLcdPower ( s8  power)

Set the LCD power.

Parameters
powerThe new power value.
Returns
0 on success.

◆ sceSysconGetGSensorCarib()

s32 sceSysconGetGSensorCarib ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconSetGSensorCarib()

s32 sceSysconSetGSensorCarib ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconWritePolestarReg()

s32 sceSysconWritePolestarReg ( u8  reg,
s16  val 
)

Write a value to a polestar register.

Parameters
regThe register to write the value to.
valThe value that will be stored in the register.
Returns
0 on success.

◆ sceSysconReadPolestarReg()

s32 sceSysconReadPolestarReg ( u8  reg,
s16 *  val 
)

Read a value from a polestar register.

Parameters
regThe register to read the value from.
valPointer to a s16 where will be stored the read content of the register.
Returns
0 on sucess.

◆ sceSysconWriteGSensorReg()

s32 sceSysconWriteGSensorReg ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconReadGSensorReg()

s32 sceSysconReadGSensorReg ( void  )

Debugging function, disabled for production.

Returns
< 0.

◆ sceSysconBatteryGetStatusCap()

s32 sceSysconBatteryGetStatusCap ( s32 *  arg0,
s32 *  arg1 
)

Get the battery status cap.

Parameters
arg0Pointer to an unknown s32 where a value will be stored.
arg1Pointer to an unknown s32 where a value will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetInfo()

s32 sceSysconBatteryGetInfo ( s32 *  info)

Get the battery info.

Parameters
infoPointer to a s32 where the battery info will be stored.
Returns
0 on success.

◆ sceSysconGetBattVolt()

s32 sceSysconGetBattVolt ( s32 *  volt)

Get the battery voltage.

Parameters
voltPointer to a s32 where the voltage will be stored.
Returns
0 on success.

◆ sceSysconGetBattVoltAD()

s32 sceSysconGetBattVoltAD ( s32 *  volt1,
s32 *  volt2 
)

Get the battery analog-digital voltage (?).

Parameters
volt1Pointer to a s32 where an unknown value will be stored.
volt2Pointer to a s32 where an unknown value will be stored.
Returns
0 on success.

◆ sceSysconBatteryNop()

s32 sceSysconBatteryNop ( void  )

Send a command to the battery doing nothing.

Returns
0 on success.

◆ sceSysconBatteryGetTemp()

s32 sceSysconBatteryGetTemp ( s32 *  temp)

Get the battery temperature.

Parameters
tempPointer to a s32 where the temperature will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetVolt()

s32 sceSysconBatteryGetVolt ( s32 *  volt)

Get the battery voltage.

Parameters
voltPointer to a s32 where the voltage will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetElec()

s32 sceSysconBatteryGetElec ( s32 *  elec)

Get the battery electric charge.

Parameters
elecPointer to a s32 where the charge will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetRCap()

s32 sceSysconBatteryGetRCap ( s32 *  rcap)

Get the battery remaining capacity.

Parameters
rcapPointer to a s32 where the capacity will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetCap()

s32 sceSysconBatteryGetCap ( s32 *  cap)

Get the battery charged capacity.

Parameters
capPointer to a s32 where the capacity will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetFullCap()

s32 sceSysconBatteryGetFullCap ( s32 *  cap)

Get the battery full capacity.

Parameters
capPointer to a s32 where the capacity will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetIFC()

s32 sceSysconBatteryGetIFC ( s32 *  ifc)

Get the battery IFC (Integrated Fire Control?).

Parameters
ifcPointer to a s32 where the IFC will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetLimitTime()

s32 sceSysconBatteryGetLimitTime ( s32 *  time)

Get the battery limit time.

Parameters
timePointer to a s32 where the limit time will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetStatus()

s32 sceSysconBatteryGetStatus ( s32 *  status)

Get the battery status.

Parameters
statusPointer to a s32 where the status will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetCycle()

s32 sceSysconBatteryGetCycle ( s32 *  cycle)

Get the battery cycle.

Parameters
cyclePointer to a s32 where the cycle will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetSerial()

s32 sceSysconBatteryGetSerial ( s32 *  serial)

Get the battery serial.

Parameters
serialPointer to a s32 where the serial will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetTempAD()

s32 sceSysconBatteryGetTempAD ( s32 *  temp)

Get the battery analog-digital temperature.

Parameters
tempPointer to a s32 where the temperature will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetVoltAD()

s32 sceSysconBatteryGetVoltAD ( s32 *  volt)

Get the battery analog-digital voltage.

Parameters
voltPointer to a s32 where the voltage will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetElecAD()

s32 sceSysconBatteryGetElecAD ( s32 *  elec)

Get the battery analog-digital electric current.

Parameters
elecPointer to a s32 where the electric current will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetTotalElec()

s32 sceSysconBatteryGetTotalElec ( s32 *  elec)

Get the battery total electric current.

Parameters
elecPointer to a s32 where the total current will be stored.
Returns
0 on success.

◆ sceSysconBatteryGetChargeTime()

s32 sceSysconBatteryGetChargeTime ( s32 *  time)

Get the battery charge time.

Parameters
timePointer to a s32 where the charge time will be stored.
Returns
0 on success.

◆ sceSysconCtrlTachyonVoltage()

s32 sceSysconCtrlTachyonVoltage ( s32  voltage)

Set the tachyon voltage.

Parameters
voltageThe new voltage.
Returns
0 on success.

◆ sceSysconGetDigitalKey()

s32 sceSysconGetDigitalKey ( s8 *  key)

Get the pressed user keys.

Parameters
keyPointer to a 2-byte buffer where the pressed user keys will be stored.
Returns
0 on success.