Add MCU::HWC::GetBatteryLevel

This commit is contained in:
wheremyfoodat 2023-08-19 17:50:55 +03:00
parent c544dd1567
commit 6d7ab14480
3 changed files with 16 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#include "config.hpp"
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
@ -10,11 +11,13 @@ namespace MCU {
Memory& mem;
MAKE_LOG_FUNCTION(log, mcuLogger)
const EmulatorConfig& config;
// Service commands
void getBatteryLevel(u32 messagePointer);
public:
HWCService(Memory& mem) : mem(mem) {}
HWCService(Memory& mem, const EmulatorConfig& config) : mem(mem), config(config) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};