Dawn Framework 1.0
Universal data acquisition framework for embedded systems
common.hxx
1// dawn/include/dawn/system/common.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include "dawn/common/object.hxx"
9
10namespace dawn
11{
24class CSystemCommon : public CObject
25{
26public:
27 enum
28 {
29 SYSTEM_CLASS_FIRST = 1,
33 };
34
35 explicit CSystemCommon(CDescObject &desc)
36 : CObject(desc)
37 {
38 }
39
40 ~CSystemCommon() override = default;
41
52 constexpr static SObjectCfg::ObjectCfgId cfgId(uint16_t cls,
53 uint8_t dtype,
54 bool rw,
55 uint16_t size,
56 uint8_t id)
57 {
58 return SObjectCfg::objectCfg(SObjectId::OBJTYPE_ANY, cls, dtype, rw, size, id);
59 }
60};
61} // Namespace dawn
Descriptor wrapper for individual object configuration.
Base class for all Dawn objects (IOs, Programs, Protocols).
Definition object.hxx:28
Base class for OBJTYPE_ANY configuration objects.
Definition common.hxx:25
@ SYSTEM_CLASS_GNSS
GNSS coexistence manager (policy)
Definition common.hxx:31
@ SYSTEM_CLASS_LAST
9-bit class field
Definition common.hxx:32
@ SYSTEM_CLASS_LTE
LTE / cellular connectivity settings.
Definition common.hxx:30
static SObjectCfg::ObjectCfgId cfgId(uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Build a config-item id for a dev object.
Definition common.hxx:52
static ObjectCfgId objectCfg(uint8_t type, uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Construct 32-bit ConfigID from component fields.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
Definition objectcfg.hxx:60
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13
@ OBJTYPE_ANY
Wildcard/metadata object type.
Definition objectid.hxx:176