Add mcuHwcGetSessionHandle

This commit is contained in:
TuxSH 2023-01-31 17:11:02 +00:00
parent e253c2c005
commit 1de86ea38a
2 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,12 @@ Result mcuHwcInit(void);
/// Exits mcuHwc.
void mcuHwcExit(void);
/**
* @brief Gets the current mcuHwc session handle.
* @return A pointer to the current mcuHwc session handle.
*/
Handle* mcuHwcGetSessionHandle(void);
/**
* @brief Reads data from an i2c device3 register
* @param reg Register number. See https://www.3dbrew.org/wiki/I2C_Registers#Device_3 for more info

View File

@ -23,6 +23,11 @@ void mcuHwcExit(void)
svcCloseHandle(mcuHwcHandle);
}
Handle* mcuHwcGetSessionHandle(void)
{
return &mcuHwcHandle;
}
Result MCUHWC_ReadRegister(u8 reg, void* data, u32 size)
{
Result ret = 0;