| 전자부품 데이터시트 검색엔진 |
|
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 |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |