| поискавой системы для электроныых деталей |
|
UPD77533 датащи(PDF) 94 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD77533 датащи(HTML) 94 Page - Renesas Technology Corp |
|
94 / 104 page ![]() Data Sheet S15671EJ4V0DS 92 µµµµPD77533 LsSerialIn(); /* Transmit transmission data stored in GmComm. */ GmSerialOut(); /* Transmit transmission data stored in LsComm. */ LsSerialOut(); } } /*----------------------------------------------------------------------------- * Function * Input by DSP * * Parameter * None * * Return Value * None ---------------------------------------------------------------------------- */ static void GmSerialIn(void) { int Len; unsigned char Buf[MAXBLOCK]; int i; /* Read response from GM */ if((Len = RecvFromSerial(SERIAL_GM, (char*)Buf, MAXBLOCK)) > 0) { /* Analyze contents of response */ for(i = 0; i < Len; i++) { GmComm.BinData[SERIAL_IN][GmComm.CurrentLen[SERIAL_IN]] = Buf[i]; GmComm.CurrentLen[SERIAL_IN] += 1; if(GmComm.CurrentLen[SERIAL_IN] == 1) /* 1st byte? */ { /* CMD-ID has been read */ GmComm.EstimateLen[SERIAL_IN] = -1; } else if(GmComm.CurrentLen[SERIAL_IN] == 2) /* 2nd byte? */ { /* LENGTH has been read */ GmComm.EstimateLen[SERIAL_IN] = Buf[i]+PACKET_INFO_LEN; } else { if(GmComm.CurrentLen[SERIAL_IN] == GmComm.EstimateLen[SERIAL_IN]) { /* Whole packet has been read */ GmComm.FixedFlag[SERIAL_IN] = TRUE; /* Check response from GM */ CopyGmRes(); CheckGmRes(); GmComm.FixedFlag[SERIAL_IN] = FALSE; GmComm.CurrentLen[SERIAL_IN] = 0; } } |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |