Since the enumerated members are in the Relay class, you need
Code:
myRelay.Set(Relay::kForward)
in order to set the proper scope for kForward.
Also, since the constuctor defaults to kBothDirections, you don't need to include that parameter.
So, to initialize a relay object called "r41" on DSC 4 relay channel 1 using the default mode (kBothDirections) and set it forward you'd use:
Code:
Relay r41(4,1);
r41.Set(Relay::kForward);
-Jeff