Dawn Framework 1.0
Universal data acquisition framework for embedded systems
descswitch.hxx
1// dawn/include/dawn/dev/descswitch.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include <cstdint>
9
10namespace dawn
11{
20{
21public:
28 static void requestSwitch(uint8_t slot);
29
32 static void clear();
33
40 static bool isSwitchRequested();
41
48 static uint8_t getSwitchSlot();
49
56 static uint8_t getActiveSlot();
57
64 static void setActiveSlot(uint8_t slot);
65};
66
67} // namespace dawn
Global descriptor switch request manager.
static uint8_t getActiveSlot()
Get currently active descriptor slot.
static void setActiveSlot(uint8_t slot)
Set currently active descriptor slot.
static void clear()
Clear pending switch request.
static uint8_t getSwitchSlot()
Get pending switch target slot.
static bool isSwitchRequested()
Check if descriptor switch is pending.
static void requestSwitch(uint8_t slot)
Request descriptor switch to a slot.
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13