Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fe-vmm-tbl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nice
dev-epics-modules
fe-vmm-tbl
Commits
40132fd5
Commit
40132fd5
authored
1 year ago
by
Douglas Araujo
Browse files
Options
Downloads
Patches
Plain Diff
Add vmm3a get and set info methods
parent
da9c46e0
No related branches found
No related tags found
1 merge request
!1
ICSHWI-14275: Create VMM FEN Epics module
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vmmTblApp/src/vmm3a.cpp
+18
-0
18 additions, 0 deletions
vmmTblApp/src/vmm3a.cpp
vmmTblApp/src/vmm3a.h
+2
-0
2 additions, 0 deletions
vmmTblApp/src/vmm3a.h
with
20 additions
and
0 deletions
vmmTblApp/src/vmm3a.cpp
+
18
−
0
View file @
40132fd5
...
...
@@ -162,4 +162,22 @@ vmmStatus VMM3a::updateRegisterMap(std::string feature, int value, int ch) {
return
status
;
}
vmmStatus
VMM3a
::
getInfo
(
const
std
::
string
&
feature
,
std
::
string
&
result
)
{
vmmStatus
status
=
vmmSuccess
;
if
(
vmmInfo
.
find
(
feature
)
!=
vmmInfo
.
end
())
result
=
vmmInfo
[
feature
];
else
status
=
vmmParamNotFound
;
return
status
;
}
vmmStatus
VMM3a
::
setInfo
(
const
std
::
string
&
feature
,
const
std
::
string
&
value
)
{
vmmStatus
status
=
vmmSuccess
;
if
(
vmmInfo
.
find
(
feature
)
!=
vmmInfo
.
end
())
vmmInfo
[
feature
]
=
value
;
else
status
=
vmmParamNotFound
;
return
status
;
}
VMM3a
::~
VMM3a
(){}
This diff is collapsed.
Click to expand it.
vmmTblApp/src/vmm3a.h
+
2
−
0
View file @
40132fd5
...
...
@@ -23,6 +23,8 @@ public:
const
VMM3aSettings
&
getVMM3aSettings
()
const
;
vmmStatus
setRegister
(
std
::
string
feature
,
int
val
);
vmmStatus
setRegister
(
std
::
string
feature
,
int
val
,
int
ch
);
vmmStatus
getInfo
(
const
std
::
string
&
feature
,
std
::
string
&
result
);
vmmStatus
setInfo
(
const
std
::
string
&
feature
,
const
std
::
string
&
value
);
private
:
vmmStatus
updateRegisterMap
(
std
::
string
feature
,
int
value
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment