Patternactionwrite – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual
Page 56

Classes of the C++ Interface
Methods of the IGCGenerator Class
2-34
CATC IBTrainer InfiniBand Exerciser API Reference
PatternActionWrite
void PatternActionWrite ( IN ig_int8 pattern, IN ig_int8 action );
Determines which pattern matcher will be used to match the incoming
pattern and the action that will take place when a pattern ‘hit’ occurs.
None
pattern
Selects t
he pattern matcher that will be used to check for pattern ‘hits’.
Values taken by pattern can be:
• PATTERN_GENERIC
The Generic pattern matcher will be used.
• PATTERN_BUFFER
The MAD Buffer pattern matcher will be used.
• PATTERN_LOWERMEMORY
The Low Receive Pattern Memory pattern matcher will be used.
• PATTERN_UPPERMEMORY
The High Receive Pattern Memory pattern matcher will be used.
action
The action assigned to the selected pattern matcher. Values taken by
action
can be:
• ACTION_NONE
This is defined to 0. No action follows.
• ACTION_TRIGGEROUT
A pattern ‘hit’ fires a trigger out.
• ACTION_STEPSTROBE
A pattern ‘hit’ fires a step register strobe.
• ACTION_DISCARDNOHIT
Determines whether a packet is allowed to pass through or is
discarded on pattern ‘hit’. When set to 1 a packet is discarded on no
pattern ‘hit’. The default for packets is pass-through.
Call
Description
Return Value
Input Parameters