Skip to content

Commit ae754b2

Browse files
Add Channel Access Report functions
Includes casr, dbel, and dbcar. Does not include ascar as we don't have Access Security rules in PythonSoftIOC.
1 parent f1f3623 commit ae754b2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Versioning <https://semver.org/spec/v2.0.0.html>`_.
1010
Unreleased_
1111
-----------
1212

13+
Added:
14+
15+
- `Add Channel Access Report functions <../../pull/115>`_
16+
1317
4.2.0_ - 2022-11-08
1418
-------------------
1519

softioc/softioc.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,42 @@ def call_f(*args):
221221
222222
Prints all records in the I/O event scan lists.''')
223223

224+
225+
ExportTest('casr', (c_int,), (0,), '''\
226+
casr(level=0)
227+
228+
Channel Access Server Report - print information regarding all connected CA
229+
clients. Information printed determined by level:
230+
231+
= ==================================================================
232+
0 Show a one line summary of each connected client
233+
1 Show additional information for each client
234+
2 Also show additional information about the server's free resources
235+
= ==================================================================
236+
''')
237+
238+
ExportTest('dbel', (auto_encode,), (), '''\
239+
dbel(record_name)
240+
241+
This routine prints the Channel Access event list for the specified record.''')
242+
243+
ExportTest('dbcar', (auto_encode, c_int), ("*", 0,), '''\
244+
dbcar(record_name, level)
245+
246+
Database to channel access report. This command generates a report showing
247+
database channel access links. If record_name is “*” then information
248+
about all records is shown otherwise only information about the specified
249+
record.
250+
251+
level can have the following values:
252+
253+
= ==================================================================
254+
0 Show summary information only.
255+
1 Show summary and each CA link that is not connected.
256+
2 Show summary and status of each CA link
257+
= ==================================================================
258+
''')
259+
224260
ExportTest('generalTimeReport', (c_int,), (0,), '''\
225261
generalTimeReport(int level)
226262

0 commit comments

Comments
 (0)