Result MCUHWC_ReadRegister(u8 reg, void *data, u32 size)
Reads data from an i2c device3 register.
Result MCUHWC_GetBatteryLevel(u8 *level)
Gets the battery level.
Result MCUHWC_GetFwVerLow(u8 *out)
Gets the minor MCU firmware version.
Result mcuHwcInit(void)
Initializes mcuHwc.
powerLedState
Definition: mcuhwc.h:7
@ LED_NORMAL
The normal mode of the led.
Definition: mcuhwc.h:8
@ LED_BLINK_RED
Blinking red state of power led and notification led.
Definition: mcuhwc.h:13
@ LED_BLUE
Blue state of the led.
Definition: mcuhwc.h:12
@ LED_RED
Red state of the led.
Definition: mcuhwc.h:11
@ LED_SLEEP_MODE
The led pulses slowly as it does in the sleep mode.
Definition: mcuhwc.h:9
@ LED_OFF
Switch off power led.
Definition: mcuhwc.h:10
Result MCUHWC_WriteRegister(u8 reg, const void *data, u32 size)
Writes data to a i2c device3 register.
Result MCUHWC_SetPowerLedState(powerLedState state)
Sets Power LED state.
Result MCUHWC_GetSoundSliderLevel(u8 *level)
Gets the sound slider level.
Result MCUHWC_SetInfoLedPattern(const InfoLedPattern *pattern)
Sets the notification LED pattern.
Result MCUHWC_GetBatteryVoltage(u8 *voltage)
Gets the battery voltage.
Result MCUHWC_GetFwVerHigh(u8 *out)
Gets the major MCU firmware version.
Result MCUHWC_Get3dSliderLevel(u8 *level)
Gets 3d slider level.
Handle * mcuHwcGetSessionHandle(void)
Gets the current mcuHwc session handle.
Result MCUHWC_SetWifiLedState(bool state)
Sets Wifi LED state.
void mcuHwcExit(void)
Exits mcuHwc.
u8 delay
Delay between pattern values, 1/16th of a second (1 second = 0x10)
Definition: mcuhwc.h:18
u8 loopDelay
Delay between pattern loops, 1/16th of a second (1 second = 0x10, 0xFF = pattern is played only once)
Definition: mcuhwc.h:20
u8 blinkSpeed
Blink speed, when smoothing == 0x00.
Definition: mcuhwc.h:21
u8 greenPattern[32]
Pattern for green component.
Definition: mcuhwc.h:23
u8 bluePattern[32]
Pattern for blue component.
Definition: mcuhwc.h:24
u8 redPattern[32]
Pattern for red component.
Definition: mcuhwc.h:22
u8 smoothing
Smoothing between pattern values (higher = smoother)
Definition: mcuhwc.h:19
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint32_t u32
32-bit unsigned integer
Definition: types.h:23