wut/include/padscore/wud.h
Daniel K. O. 00ced99799
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
Add all padscore functions. (#445)
* - Added all WPAD functions.
- Added all KPAD functions.
- Changed KPADStatus::mplus to have all directions in a KPADBase3D struct.

* - `KPAD_BUTTON_REPEAT` is now a macro.
- Replaced snake_case vars with camelCase.
- Removed leftover comment.
- Fixed `WPADClearDeviceCallback` to take a `uint32_t` argument.
- Fixed second argument of `WPADSyncDeviceCallback` to be uknown `uint32_t`.
- Fixed return type of `WPADiControllerInfoInNand` to be `BOOL`.

* One more snake_case fix, clang-format fixes.

* More snake_case fix, moved wpad_im functions to the bottom.

* - Moved WUD functions into `wud.h`.
- Some doxygen changes (grammar, conjugation, formatting, broken link.)

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2026-05-06 16:48:52 +02:00

52 lines
870 B
C

#pragma once
#include <wut.h>
#include <padscore/wpad.h>
/**
* \defgroup padscore_wud WUD
* \ingroup padscore
*
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
uint16_t
WUDGetFirmwareVersion(void);
BOOL
WUDSerialFlashTestMode(void (*callback)(void));
BOOL
WUDSerialFlashTestRead(uint32_t unknown1,
uint8_t size,
void (*callback)(void *, void *));
BOOL
WUDSerialFlashTestWrite(uint32_t unknown1,
uint8_t size,
uint32_t unknown2,
void (*callback)(void));
BOOL
WUDSerialFlashUpdate(void (*callback)(char, char));
uint16_t
WUDSerialFlashVersion(void);
void
WUDSetSniffMode(WPADAddress *btaddr,
void *unknown);
void
WUDSetVisibility(uint8_t unknown1,
uint8_t unknown2);
#ifdef __cplusplus
}
#endif
/** @} */