You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,19 +126,26 @@ It extends the `SCA_SEQUENCE` to add the following functionality:
126
126
*`read` with optional TimeOut prefix (e.g. `2,read`)
127
127
*`wait` with optional WaitTime prefix in ms (e.g. `5,wait`), defaults to 3
128
128
*`lock` which instructs ALF to execute the sequence atomically (needs to lead the sequence)
129
+
*`read_multiple` with count prefix (e.g. `2,read_multiple`): read a number of words
130
+
*`set_read_timeout` to define default read TimeOut in milliseconds (for read and read_multiple operations). (e.g. `10,set_read_timeout`). Timeout argument is optional, in which case the default value is reset.
131
+
129
132
* Returns:
130
133
* Sequence of SWT output as follows:
131
134
*`write` always retuns `0`
132
135
*`read` returns the SWT words present in the CRU SWT FIFO
133
136
*`sc_reset` returns nothing
134
137
*`wait` returns time waited
135
138
*`lock` returns nothing
136
-
139
+
*`read_multiple` returns the SWT words present in the CRU SWT FIFO (for the number of read requested)
140
+
*`set_read_timeout` returns the new timeout
141
+
137
142
* Example:
138
143
* DIM input `sc_reset\n0x0000000000badc0ffee,write\nread\n0xbadf00d,write\n4,read`
139
144
* DIM input (atomic) `lock\nsc_reset\n0x0000000000badc0ffee,write\nread\n0xbadf00d,write\n4,read`
140
145
* DIM output `0\n0x0000000000badc0ffee\n0\n0x000000000000badf00d\n`
141
146
147
+
NB: when calling the service from DIM did client for testing, use double quotes around the full query string.
ErrorInfo::Message("ReadMultiple different number of words than expected: " + std::to_string(readWords) + " (expected " + std::to_string(wordsToRead) + ")"));
0 commit comments