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
ebc67c74
Commit
ebc67c74
authored
2 months ago
by
Marco Filho
Browse files
Options
Downloads
Patches
Plain Diff
Add SC, SL, STH, SM and SMX parameters.
Didn't add SD because the mechanism is a bit different.
parent
9fcb1f57
No related branches found
No related tags found
1 merge request
!7
Major refactor
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vmmTblApp/src/vmm_tbl.cpp
+85
-0
85 additions, 0 deletions
vmmTblApp/src/vmm_tbl.cpp
with
85 additions
and
0 deletions
vmmTblApp/src/vmm_tbl.cpp
+
85
−
0
View file @
ebc67c74
...
...
@@ -286,6 +286,24 @@ asynStatus VMMTbl::readInt8Array(asynUser *pasynUser, epicsInt8 *value, size_t n
if
(
function
<
FIRST_VMM_PARAM
)
return
asynPortDriver
::
readInt8Array
(
pasynUser
,
value
,
nElements
,
nIn
);
found_param
=
VecUtils
::
getIndex
(
vmmSC_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
getSC
(
hyb_index
,
vmm_index
,
i
,
data
);
value
[
i
]
=
data
;
}
goto
endOfReadInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSL_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
getSL
(
hyb_index
,
vmm_index
,
i
,
data
);
value
[
i
]
=
data
;
}
goto
endOfReadInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmST_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
...
...
@@ -295,6 +313,33 @@ asynStatus VMMTbl::readInt8Array(asynUser *pasynUser, epicsInt8 *value, size_t n
goto
endOfReadInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSTH_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
getSTH
(
hyb_index
,
vmm_index
,
i
,
data
);
value
[
i
]
=
data
;
}
goto
endOfReadInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSM_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
getSM
(
hyb_index
,
vmm_index
,
i
,
data
);
value
[
i
]
=
data
;
}
goto
endOfReadInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSMX_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
getSMX
(
hyb_index
,
vmm_index
,
i
,
data
);
value
[
i
]
=
data
;
}
goto
endOfReadInt8Array
;
}
endOfReadInt8Array
:
if
(
found_param
!=
0
)
{
asynPrint
(
pasynUserSelf
,
ASYN_TRACE_ERROR
,
...
...
@@ -328,6 +373,22 @@ asynStatus VMMTbl::writeInt8Array(asynUser *pasynUser, epicsInt8 *value, size_t
if
(
function
<
FIRST_VMM_PARAM
)
return
asynPortDriver
::
writeInt8Array
(
pasynUser
,
value
,
nElements
);
found_param
=
VecUtils
::
getIndex
(
vmmSC_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
setSC
(
hyb_index
,
vmm_index
,
i
,
(
bool
)
value
[
i
]);
}
goto
endOfWriteInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSL_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
setSL
(
hyb_index
,
vmm_index
,
i
,
(
bool
)
value
[
i
]);
}
goto
endOfWriteInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmST_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
...
...
@@ -336,6 +397,30 @@ asynStatus VMMTbl::writeInt8Array(asynUser *pasynUser, epicsInt8 *value, size_t
goto
endOfWriteInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSTH_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
setSTH
(
hyb_index
,
vmm_index
,
i
,
(
bool
)
value
[
i
]);
}
goto
endOfWriteInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSM_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
setSM
(
hyb_index
,
vmm_index
,
i
,
(
bool
)
value
[
i
]);
}
goto
endOfWriteInt8Array
;
}
found_param
=
VecUtils
::
getIndex
(
vmmSMX_
,
function
,
hyb_index
,
vmm_index
);
if
(
found_param
==
0
)
{
for
(
size_t
i
=
0
;
i
<
nElements
;
i
++
)
{
status
|=
(
int
)
this
->
pVmmAPI
->
setSMX
(
hyb_index
,
vmm_index
,
i
,
(
bool
)
value
[
i
]);
}
goto
endOfWriteInt8Array
;
}
endOfWriteInt8Array
:
status
|=
(
int
)
doCallbacksInt8Array
(
value
,
nElements
,
function
,
0
);
// Comparing different statuses, yes.
if
(
found_param
!=
0
)
{
...
...
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