~aleteoryx/muditaos

ref: e8fd36cdae716250db936b165fd657c065a7a3da muditaos/module-services/service-evtmgr/service-evtmgr/EventManagerServiceAPI.hpp -rw-r--r-- 994 bytes
e8fd36cd — Paweł Joński [BH-936] Add Polish translation to Bell 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <chrono>

#include <MessageType.hpp>
#include <Service/Message.hpp>
#include <bsp/common.hpp>

namespace sys
{
    class Service;
} // namespace sys

namespace EventManagerServiceAPI
{
    /*
     * @brief Gets board version.
     * @return board type
     */
    bsp::Board GetBoard(sys::Service *serv);

    /*
     * @brief Call single vibra pulse
     */
    void vibraPulseOnce(sys::Service *serv);

    /*
     * @brief Call vibra to stop
     */
    void vibraStop(sys::Service *serv);

    /*
     * @brief Call repetitive vibra pulses for given time [ms]
     */
    void vibraPulseRepeat(sys::Service *serv, std::chrono::milliseconds time);

    /*
     * @brief Call repetitive vibra pulses until stop message is sent
     */
    void vibraPulseRepeatUntilStop(sys::Service *serv);

} // namespace EventManagerServiceAPI