Files
pspsdk/src/wlan/pspwlan.h
2024-11-01 09:44:41 +11:00

65 lines
1.2 KiB
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspwlan.h - Prototypes for the sceWlan library
*
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
*
*/
#ifndef __PSPWLAN_H__
#define __PSPWLAN_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
* Determine if the wlan device is currently powered on
*
* @return 0 if off, 1 if on
*/
int sceWlanDevIsPowerOn(void);
/**
* Determine the state of the Wlan power switch
*
* @return 0 if off, 1 if on
*/
int sceWlanGetSwitchState(void);
/**
* Get the Ethernet Address of the wlan controller
*
* @param etherAddr - pointer to a buffer of uint8_t (NOTE: it only writes to 6 bytes, but
* requests 8 so pass it 8 bytes just in case)
* @return 0 on success, < 0 on error
*/
int sceWlanGetEtherAddr(uint8_t *etherAddr);
/**
* Attach to the wlan device
*
* @return 0 on success, < 0 on error.
*/
int sceWlanDevAttach(void);
/**
* Detach from the wlan device
*
* @return 0 on success, < 0 on error/
*/
int sceWlanDevDetach(void);
/*
int sceWlanGPBindRegError();
*/
#ifdef __cplusplus
}
#endif
#endif