F U N C T I O N C A L L S
int WINAPI Read_Control(int Card, int Channel)
DESCRIPTION
This routine is a specialized version of the Read Register function. It reads the Control
Register specifically. This way the user does not need to know the offsets for each channel.
INPUT DATA
Card = an integer between 0 and 7 for the card of interest. The card number is set in the
MOTION FEEDBACK BOARD MANAGER.
Channel = an integer between 0 and 5 for the channel of interest.
RETURNED DATA
This routine returns the value in the Control Register.
The control register contains data for the following parameters:
EXAMPLE CODE
Code Result/Returned
Data
int Control;
Control = Read_Control(1,1);
Reads the Control Register for
card #1, channel 1.
N/A
N/A
N/A
N/A
Resolution Fine (SIX/TWELVE_F)
Resolution Coarse (SIX/TWELVE_C)
Latch Two Speed Data (LTSD)
Coarse Clear (COARSE_CLR)
Coarse Enable (COARSE_EN)
Fine Clear (FINE_CLR)
Fine Enable (FINE_EN)
Clear All (CLR1)
Dynamic Rotation Coarse (STAT_DYN_C)
Dynamic Rotation Fine (STAT_DYN_F)
Two Speed Stop/Start (TSCOUNTGO)
Two Speed Enable (TWO_SPD)
MSB
LSB
SIX/TWELVE_F
SIX/TWELVE_C
LTSD
COARSE_CLR
COARSE_EN
FINE_CLR
FINE_EN
CLR1
STAT_DYN_C
STAT_DYN_F
TSCOUNTGO
TWO_SPD
Parameter
Bit = 0
Bit = 1
In Two Speed Mode
In One Speed Mode
Rotating in Two Speed Mode
Not Rotating in Two Speed Mode
Fine Channel in Static Mode
Coarse Channel in Static Mode
Fine Channel in Dynamic Mode
Coarse Channel in Dynamic Mode
Clears all channels
Resumes normal operation
Start Fine
Start Coarse
Stop Fine
Stop Coarse
Clear Fine
Clear Coarse
Resume Coarse
Resume Fine
Latch Two Speed data
Unlatch Two Speed data
12 Bit Mode
12 Bit Mode
16 Bit Mode
16 Bit Mode
Data Device Corporation
SB-3622X Manual
51