Files
MuditaOS/module-services/service-bluetooth/ServiceBluetooth.hpp
Radoslaw Wicik a8573a404c Apply new style
2020-03-17 10:03:16 +01:00

25 lines
675 B
C++

#pragma once
#include "Service/Service.hpp"
#include "Bluetooth/BluetoothWorker.hpp"
#include <memory>
class ServiceBluetooth : public sys::Service
{
public:
ServiceBluetooth();
~ServiceBluetooth();
virtual sys::Message_t DataReceivedHandler(sys::DataMessage *msg, sys::ResponseMessage *resp) override;
void TickHandler(uint32_t id) override;
sys::ReturnCodes InitHandler() override;
sys::ReturnCodes DeinitHandler() override;
virtual sys::ReturnCodes SwitchPowerModeHandler(const sys::ServicePowerMode mode) override;
private:
static const char *serviceName;
uint32_t testTimerID;
std::unique_ptr<BluetoothWorker> worker;
};