mirror of
https://github.com/devkitPro/wut.git
synced 2026-04-25 07:58:39 -05:00
Merge 5f7ff6ae20 into 2016e429c1
This commit is contained in:
commit
dd7879c1ec
|
|
@ -903,7 +903,7 @@ WPADCanSendStreamData(WPADChan channel);
|
|||
WPADError
|
||||
WPADSendStreamData(WPADChan channel,
|
||||
const void *data,
|
||||
uint32_t size);
|
||||
uint32_t size) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Encode 16-bit LPCM as 4-bit Yamaha ADPCM
|
||||
|
|
@ -922,7 +922,7 @@ WENCGetEncodeData(WENCParams *params,
|
|||
BOOL continuing,
|
||||
const int16_t *samples,
|
||||
uint32_t sampleCount,
|
||||
uint8_t *outEncodedData);
|
||||
uint8_t *outEncodedData) WUT_SIZED_ACCESS(read_only, 3, 4);
|
||||
|
||||
/**
|
||||
* Returns the global Wii Remote speaker volume
|
||||
|
|
@ -990,7 +990,7 @@ WPADReadMemoryAsync(WPADChan channel,
|
|||
void *destination,
|
||||
uint16_t size,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(write_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Writes to the device's memory
|
||||
|
|
@ -1006,10 +1006,10 @@ WPADReadMemoryAsync(WPADChan channel,
|
|||
*/
|
||||
WPADError
|
||||
WPADWriteMemoryAsync(WPADChan channel,
|
||||
void *source,
|
||||
const void *source,
|
||||
uint32_t size,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Reads from the registers of the Wii Remote's peripherals
|
||||
|
|
@ -1024,7 +1024,7 @@ WPADReadExtReg(WPADChan channel,
|
|||
uint16_t size,
|
||||
WPADPeripheralSpace peripheral,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(write_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Writes to the registers of the Wii Remote's peripherals
|
||||
|
|
@ -1047,7 +1047,7 @@ WPADWriteExtReg(WPADChan channel,
|
|||
uint32_t size,
|
||||
WPADPeripheralSpace peripheral,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Read Balance Board calibration.
|
||||
|
|
@ -1060,7 +1060,7 @@ WPADGetBLCalibration(WPADChan channel,
|
|||
void *destination,
|
||||
uint32_t address,
|
||||
uint32_t size,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(write_only, 2, 4);
|
||||
|
||||
/**
|
||||
* Sets power save mode, this makes the controller only report input data
|
||||
|
|
@ -1325,8 +1325,8 @@ WPADiSendMuteSpeaker(WPADiQueue *cmdQueue,
|
|||
*/
|
||||
BOOL
|
||||
WPADiSendStreamData(WPADiQueue *cmdQueue,
|
||||
void *source,
|
||||
uint32_t size);
|
||||
const void *source,
|
||||
uint32_t size) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Queues HID Report for a single-byte memory write
|
||||
|
|
@ -1345,10 +1345,10 @@ WPADiSendWriteDataCmd(WPADiQueue *cmdQueue,
|
|||
*/
|
||||
BOOL
|
||||
WPADiSendWriteData(WPADiQueue *cmdQueue,
|
||||
void *source,
|
||||
const void *source,
|
||||
uint32_t size,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Queues HID Report for a memory read
|
||||
|
|
@ -1360,7 +1360,7 @@ WPADiSendReadData(WPADiQueue *cmdQueue,
|
|||
void *destination,
|
||||
uint16_t size,
|
||||
uint32_t address,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(write_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Game code (identifier), which may be saved to the EEPROM of connected controllers
|
||||
|
|
@ -1429,7 +1429,7 @@ WPADiWriteGameData(WPADChan channel,
|
|||
const void *source,
|
||||
uint16_t size,
|
||||
uint32_t offset,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Read custom game data from the controller's EEPROM
|
||||
|
|
@ -1447,7 +1447,7 @@ WPADiReadGameData(WPADChan channel,
|
|||
void *destination,
|
||||
uint16_t size,
|
||||
uint32_t offset,
|
||||
WPADCallback callback);
|
||||
WPADCallback callback) WUT_SIZED_ACCESS(read_only, 2, 3);
|
||||
|
||||
/**
|
||||
* Get MotionPlus mode
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
#define WUT_DEPRECATED(reason) __attribute__((__deprecated__(reason)))
|
||||
#define WUT_FORMAT_PRINTF(fmt, args) __attribute__((__format__(__printf__, fmt, args)))
|
||||
|
||||
#define WUT_SIZED_ACCESS(access_type, ptr_index, size_index) __attribute__ ((__access__(access_type, ptr_index, size_index)))
|
||||
#else // not __GNUC__ and not __clang__
|
||||
|
||||
#define WUT_DEPRECATED(reason)
|
||||
#define WUT_FORMAT_PRINTF(fmt, args)
|
||||
|
||||
#define WUT_SIZED_ACCESS(access_type, ptr_index, size_index)
|
||||
#endif //__GNUC__ or __clang__
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user