-
Notifications
You must be signed in to change notification settings - Fork 1
/
_AppTx.py
58 lines (51 loc) · 2.08 KB
/
_AppTx.py
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
#-----------------------------------------------------------------------------
# This file is part of the 'Simple-PGPv4-KCU105-Example'. It is subject to
# the license terms in the LICENSE.txt file found in the top-level directory
# of this distribution and at:
# https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
# No part of the 'Simple-PGPv4-KCU105-Example', including this file, may be
# copied, modified, propagated, or distributed except according to the terms
# contained in the LICENSE.txt file.
#-----------------------------------------------------------------------------
import pyrogue as pr
class AppTx(pr.Device):
def __init__( self,**kwargs):
super().__init__(**kwargs)
self.add(pr.RemoteVariable(
name = 'FrameSize',
description = 'Number of words to send per frame (Units of 64-bit words, zero inclusive)',
offset = 0x000,
bitSize = 32,
mode = 'RW',
))
self.add(pr.RemoteVariable(
name = 'SendFrame',
description = 'Write Only for sending burst of frames (Units of frames)',
offset = 0x004,
bitSize = 32,
mode = 'WO',
))
self.add(pr.RemoteVariable(
name = 'FrameCnt',
description = 'Read Only for monitoring bursting status',
offset = 0x008,
bitSize = 32,
mode = 'RO',
pollInterval = 1,
))
self.add(pr.RemoteVariable(
name = 'WordCnt',
description = 'Read Only for monitoring bursting status',
offset = 0x00C,
bitSize = 32,
mode = 'RO',
pollInterval = 1,
))
self.add(pr.RemoteVariable(
name = 'ContinuousMode',
description = 'Bursting Continuously Flag',
offset = 0x010,
bitSize = 1,
mode = 'RW',
base = pr.Bool,
))