~aleteoryx/muditaos

ref: 7d4452f90c40b1b5d3f673f321484c6f418bbea2 muditaos/module-cellular/Modem/TS0710/TS0710_SLEEP.h -rw-r--r-- 1.1 KiB
7d4452f9 — Bartosz Cichocki [EGD-6052] Add idle BT device disconnect 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
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * @brief The request primitive is used to advice the receiving device that the transmitter wishes to enter a low
 * power state. The TS 0710 layer of the receiving unit sends an indication primitive to the upper layer in order to
 * inform that the transmitting unit has entered the power saving state. The TS 0710 layer will automatically transmit
 * an acknowledge message to the transmitting device, thus no response primitive is required. The confirm primitive is
 * sent to the upper layer of the transmitting device when the low power request has been received, and indicates that
 * the TS 0710 layer has entered the low power mode. Note that the Receiving device is not required to enter a low power
 * mode, but it will be considered to have done so by the TS 07.10 layer.
 */

#ifndef _TS0710_SLEEP_H
#define _TS0710_SLEEP_H

class TS0710_SLEEP
{
  public:
    TS0710_SLEEP()
    {}
    ~TS0710_SLEEP()
    {}

  private:
    void request();

    void indication();

    void confirm();
};

#endif //_TS0710_SLEEP_H