[in] | handle | device handle |
[out] | rotarySw | rotary switch position. Optional, pass NULL if not needed. The value is one of 7 positions corresponding to the rotary switch.
Position | Description |
MXF_RELAYBOX_CONFIG_POS_OFF | The relays are set to Off |
MXF_RELAYBOX_CONFIG_POS_AB | The relays from A and B are commutated |
MXF_RELAYBOX_CONFIG_POS_AC | The relays from A and C are commutated |
MXF_RELAYBOX_CONFIG_POS_AD | The relays from A and D are commutated |
MXF_RELAYBOX_CONFIG_POS_BC | The relays from B and C are commutated |
MXF_RELAYBOX_CONFIG_POS_BD | The relays from B and D are commutated |
MXF_RELAYBOX_CONFIG_POS_CD | The relays from C and D are commutated |
|
[out] | db9 | TTL control value. 8-bit bitmask, one bit for each pin. Pin #1 is LSB, pin #8 is MSB. Only bit 0-2 are currently used. Optional, pass NULL if not needed.
3-bit bitmask value (Bit 0-2) | Description |
0-0-0 | The relays are set to Off |
0-0-1 | The relays from A and B are commutated |
0-1-0 | The relays from A and C are commutated |
0-1-1 | The relays from A and D are commutated |
1-0-0 | The relays from B and C are commutated |
1-0-1 | The relays from B and D are commutated |
1-1-0 | The relays from C and D are commutated |
|
[out] | softMask | software configuration mask value. The 64-bit value is divided in 4 16-bit, one 16-bit for each group (A, B, C and D) and one bit for each relay in that group. The 16-bit LSB is group A and MSB is group D. In each group, the LSB is relay 0 and MSB relay 15. Optional, pass NULL if not needed. |
[out] | relayMask | current relay mask value. The 64-bit value is divided in 4 16-bit, one 16-bit for each group (A, B, C and D) and one bit for each relay in that group. The 16-bit LSB is group A and MSB is group D. In each group, the LSB is relay 0 and MSB relay 15. Optional, pass NULL if not needed. |