AN93
Rev. 1.4
281
if(bError)
{
strcat(cpErrorString, "Read Error\r\n");
exit(10); // implement a write to file before exit(0)
}
cpI= ulNoOfbytes;
// check for a timeout
sCurrentTime = clock();
+;
if( sCurrentTime > (sSta sWaitTime) )
{
strcat(cpErrorString, "Timeout of "); strcat(cpErrorString, cpResponse);
printf ("\n%s\n", cpErrorString);
strncpy(cpInput_test, cpInputBuffer, iCharCnt);
cpInput_test[iCharCnt]='\0'; //copy the received bytes for late display
return cpInputBuffer; // we exit with the same input string we came in with
// because we time out.
}
}
};
// -------------------------------------------------------------------------
void AssertRTS(bool bAssert)
{
BOOL bSuccess;
if(bAssert)
dcb.fRtsControl = RTS_CONTROL_ENABLE; // assert RTS
else
dcb.fRtsControl = RTS_CONTROL_DISABLE; // dis-assert RTS
bSuccess = SetCommState(hCom, &dcb);
if (!bSuccess)
{ // Handle the error.
printf ("SetCommState failed with error %d.\n", GetLastError());
exit(1);
}
else
return;
}
void AssertDTR(bool bAssert)
{
BOOL bSuccess;
if(bAssert)
dcb.fDtrControl = RTS_CONTROL_ENABLE; // assert RTS
else
Содержание Si2404
Страница 2: ...AN93 2 Rev 1 4 ...
Страница 27: ...AN93 Rev 1 4 27 Figure 7 Parallel Interface Read Timing Figure 8 Parallel Interface Write Timing ...
Страница 200: ...AN93 200 Rev 1 4 Figure 31 TAM Handset and Speakerphone Voice Paths ...
Страница 201: ...AN93 Rev 1 4 201 Figure 32 Si3000 Codec Gain and Signal Selection Options ...
Страница 290: ...AN93 290 Rev 1 4 Figure 57 256 Band Spectral Display Figure 58 2048 Band Spectral Display ...
Страница 305: ...AN93 Rev 1 4 305 Figure 76 Parallel or SPI Port Interrupt Service Flowchart ...