Configure the SSI operating mode.
You must calling this function be for you call any other function witch access of SSI.
- Parameters
-
[in] | dw_BoardHandle | : Handle of board PCI-3009 |
[in] | b_SSIProfile | : Selection from SSI profile length (1 to 32). |
[in] | b_PositionTurnLength | : Selection from SSI position data length (1 to 31). |
[in] | b_TurnCptLength | : Selection from SSI turn counter data length (0 to 31). |
[in] | dw_SSIOutputClock | : Selection from SSI output clock.
From 252 to 5 000 000 Hz |
[in] | b_SSICountingMode | : SSI counting mode selection
- PCI3009_BINARY_MODE :
Binary counting mode.
- PCI3009_GRAY_MODE :
Gray counting mode.
|
- Returns
- 0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a SSI module
-3: The selected SSI profile length is wrong
-4: The selected SSI position data length is wrong
-5: The selected SSI turn counter data length is wrong
-6: The selected SSI output clock is wrong
-7: The selected SSI counting mode parameter is wrong