mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 20:45:05 +00:00
86 lines
1.7 KiB
C
86 lines
1.7 KiB
C
/*
|
|
* PSP Software Development Kit - https://github.com/pspdev
|
|
* -----------------------------------------------------------------------
|
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
|
*
|
|
* pspsyscon.h - Interface to sceSyscon_driver.
|
|
*
|
|
* Copyright (c) 2006 James F
|
|
*
|
|
*/
|
|
|
|
#ifndef PSPSYSCON_H
|
|
#define PSPSYSCON_H
|
|
|
|
#include <pspkerneltypes.h>
|
|
|
|
/** @defgroup Syscon Interface to the sceSyscon_driver library.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** @addtogroup Syscon Interface to the sceSyscon_driver library. */
|
|
/**@{*/
|
|
|
|
/**
|
|
* Force the PSP to go into standby
|
|
*/
|
|
void sceSysconPowerStandby(void);
|
|
|
|
/**
|
|
* Reset the PSP
|
|
*
|
|
* @param unk1 - Unknown, pass 1
|
|
* @param unk2 - Unknown, pass 1
|
|
*/
|
|
void sceSysconResetDevice(int unk1, int unk2);
|
|
|
|
#define SCE_LED_POWER 1
|
|
#define LED_ON 1
|
|
#define LED_OFF 0
|
|
/**
|
|
* Control an LED
|
|
*
|
|
* @param SceLED - The led to toggle (only SCE_LED_POWER)
|
|
* @param state - Whether to turn on or off
|
|
*/
|
|
int sceSysconCtrlLED(int SceLED, int state);
|
|
|
|
/**
|
|
* Control the remote control power
|
|
*
|
|
* @param power - 1 is on, 0 is off
|
|
*
|
|
* @return < 0 on error
|
|
*/
|
|
int sceSysconCtrlHRPower(int power);
|
|
|
|
|
|
int sceSysconGetHPConnect(void);
|
|
|
|
int sceSysconSetHPConnectCallback( void (*)(int), int unk0 );
|
|
|
|
int sceSysconSetHRPowerCallback( void (*)(int), int unk0 );
|
|
|
|
/**
|
|
* Get the PSP's Pommel version
|
|
* @param version - A pointer to an int to receive the Pommel version into
|
|
*/
|
|
int sceSysconGetPommelVersion( int* version );
|
|
|
|
/**
|
|
* Get the PSP's Baryon version
|
|
* @param version - A pointer to an int to receive the Baryon version into
|
|
*/
|
|
int sceSysconGetBaryonVersion( int* version );
|
|
|
|
/**@}*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|