-
Notifications
You must be signed in to change notification settings - Fork 0
/
SvdSauRegion.h
63 lines (48 loc) · 1.54 KB
/
SvdSauRegion.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Copyright (c) 2010-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef SvdSauRegion_H
#define SvdSauRegion_H
#include "SvdTypes.h"
class SvdSauRegion;
class SvdSauRegionsConfig : public SvdItem
{
public:
SvdSauRegionsConfig(SvdItem* parent);
virtual ~SvdSauRegionsConfig();
virtual bool ProcessXmlElement(XMLTreeElement* xmlElement);
virtual bool ProcessXmlAttributes(XMLTreeElement* xmlElement);
virtual bool Construct(XMLTreeElement* xmlElement);
virtual bool CopyItem(SvdItem *from);
bool GetEnabled() { return m_enabled; }
SvdTypes::ProtectionType GetProtectionWhenDisabled() { return m_protectionWhenDisabled; }
protected:
private:
bool m_enabled;
SvdTypes::ProtectionType m_protectionWhenDisabled;
};
class SvdSauRegion : public SvdItem
{
public:
SvdSauRegion(SvdItem* parent);
virtual ~SvdSauRegion();
virtual bool Construct(XMLTreeElement* xmlElement);
virtual bool ProcessXmlElement(XMLTreeElement* xmlElement);
virtual bool ProcessXmlAttributes(XMLTreeElement* xmlElement);
virtual bool CopyItem(SvdItem *from);
virtual bool Calculate();
virtual bool CheckItem();
bool GetEnabled () { return m_enabled ; }
uint32_t GetBase () { return m_base ; }
uint32_t GetLimit () { return m_limit ; }
SvdTypes::SauAccessType GetAccessType () { return m_accessType; }
protected:
private:
bool m_enabled;
uint32_t m_base;
uint32_t m_limit;
SvdTypes::SauAccessType m_accessType;
};
#endif // SvdSauRegion_H