Appendix B
Sorensen SLM-4 Chassis
queue[0] = '\0';
if (timeout == 1)
{
return(TIME_OUT);
}
return(SUCCESS);
}
int read_buf()
{
char ch,ch1;
int temp_index;
unsigned long ticks;
float sec1,sec2;
rd_result = 0;
ticks = biostime(0,0);
sec1 = ticks/18.2;
do
{
ticks = biostime(0,0);
sec2 = ticks/18.2;
if((sec2 - sec1) >= 20.0)
/* delay about 1 Sec */
{
timeout = 1;
}
ch = inportb(ACE_INT_IDENT_REG);
ch &= 0x06;
switch(ch)
{
case 6:
inportb(ACE_DATA_REG);
/* read the data register to empty it */
break;
case 0:
break;
case 2:
break;
case 4:
/* read character from data register */
ch1 = inportb(ACE_DATA_REG);
temp_index = input 1;
/* increment index of input buffer*/
if (ch1 != '\n')
/* check terminate bit */
{
queue[input_index] = ch1;
/* store character to input buffer*/
input_index = temp_index;
}
else
{
queue[input_index] = ch1;
input_index = temp_index;
input_index = 0;
/* if terminate bit was detected */
temp_index = 0;
rd_result = 1;
/* clear index and set return value */
}
B-4
M540069-01 Rev B
Summary of Contents for SLM-4
Page 2: ......
Page 4: ...This page intentionally left blank ii...
Page 6: ...This page intentionally left blank iv...
Page 8: ...This page intentionally left blank vi M540069 01 Rev B...
Page 12: ...This page intentionally left blank x M540069 01 Rev B...
Page 26: ...Operation Sorensen SLM 4 Chassis This page intentionally left blank 3 6 M540069 01 Rev B...
Page 56: ......
Page 60: ...Appendix A Sorensen SLM 4 Chassis This page intentionally left blank A 4 M540069 01 Rev B...
Page 70: ...Appendix B Sorensen SLM 4 Chassis This page intentionally left blank B 10 M540069 01 Rev B...
Page 72: ...Appendix C Sorensen SLM 4 Chassis This page intentionally left blank C 2 M540069 01 Rev B...
Page 74: ...Appendix D Sorensen SLM 4 Chassis This page intentionally left blank D 2 M540069 01 Rev B...