Add mcuHwcGetSessionHandle
This commit is contained in:
parent
e253c2c005
commit
1de86ea38a
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user