libctru
v2.4.1
|
mcuHwc service. More...
Go to the source code of this file.
Data Structures | |
struct | InfoLedPattern |
Enumerations | |
enum | powerLedState { LED_NORMAL = 1 , LED_SLEEP_MODE , LED_OFF , LED_RED , LED_BLUE , LED_BLINK_RED } |
Functions | |
Result | mcuHwcInit (void) |
Initializes mcuHwc. | |
void | mcuHwcExit (void) |
Exits mcuHwc. | |
Handle * | mcuHwcGetSessionHandle (void) |
Gets the current mcuHwc session handle. More... | |
Result | MCUHWC_ReadRegister (u8 reg, void *data, u32 size) |
Reads data from an i2c device3 register. More... | |
Result | MCUHWC_WriteRegister (u8 reg, const void *data, u32 size) |
Writes data to a i2c device3 register. More... | |
Result | MCUHWC_GetBatteryVoltage (u8 *voltage) |
Gets the battery voltage. More... | |
Result | MCUHWC_GetBatteryLevel (u8 *level) |
Gets the battery level. More... | |
Result | MCUHWC_GetSoundSliderLevel (u8 *level) |
Gets the sound slider level. More... | |
Result | MCUHWC_SetWifiLedState (bool state) |
Sets Wifi LED state. More... | |
Result | MCUHWC_SetInfoLedPattern (const InfoLedPattern *pattern) |
Sets the notification LED pattern. More... | |
Result | MCUHWC_SetPowerLedState (powerLedState state) |
Sets Power LED state. More... | |
Result | MCUHWC_Get3dSliderLevel (u8 *level) |
Gets 3d slider level. More... | |
Result | MCUHWC_GetFwVerHigh (u8 *out) |
Gets the major MCU firmware version. More... | |
Result | MCUHWC_GetFwVerLow (u8 *out) |
Gets the minor MCU firmware version. More... | |
mcuHwc service.
enum powerLedState |
Gets 3d slider level.
level | Pointer to write 3D slider level to. |
Gets the battery level.
level | Pointer to write the current battery level to. |
Gets the battery voltage.
voltage | Pointer to write the battery voltage to. |
Gets the major MCU firmware version.
out | Pointer to write the major firmware version to. |
Gets the minor MCU firmware version.
out | Pointer to write the minor firmware version to. |
Gets the sound slider level.
level | Pointer to write the slider level to. |
Reads data from an i2c device3 register.
reg | Register number. See https://www.3dbrew.org/wiki/I2C_Registers#Device_3 for more info |
data | Pointer to write the data to. |
size | Size of data to be read |
Result MCUHWC_SetInfoLedPattern | ( | const InfoLedPattern * | pattern | ) |
Sets the notification LED pattern.
pattern | Pattern for the notification LED. |
Result MCUHWC_SetPowerLedState | ( | powerLedState | state | ) |
Sets Power LED state.
state | powerLedState State of power LED. |
Result MCUHWC_SetWifiLedState | ( | bool | state | ) |
Sets Wifi LED state.
state | State of Wifi LED. (True/False) |
Writes data to a i2c device3 register.
reg | Register number. See https://www.3dbrew.org/wiki/I2C_Registers#Device_3 for more info |
data | Pointer to write the data to. |
size | Size of data to be written |
Handle* mcuHwcGetSessionHandle | ( | void | ) |
Gets the current mcuHwc session handle.