Delta Electronics AC Drive VFD-F Series Dokumentacja Strona 97

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 190
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 96
VFD-F Series
DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
5-64
The function returns the CRC values as a type of unsigned integer.
unsigned int crc_chk(unsigned char* data, unsigned char length){
int j;
unsigned int reg_crc=0xFFFF;
while(length--){
reg_crc ^= *data++;
for(j=0;j<8;j++){
if(reg_crc & 0x01){ /* LSB(b0)=1 */
reg_crc=(reg_crc>>1) ^ 0xA001;
}else{
reg_crc=reg_crc >>1;
}
}
}
return reg_crc;
}
Przeglądanie stron 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 189 190

Komentarze do niniejszej Instrukcji

Brak uwag