반응형 기술자료/USN4 RFID ISO 15693 16Bit CRC unsigned short Emb_Crc(void *arg) { unsigned short i; unsigned short j; unsigned short cnt; unsigned short crc=0xFFFF; unsigned short temp; unsigned char *buf = arg; cnt = (*buf) - 2; for(i=0 ; i 1)^0x8408; } else { crc=(crc>>1); } } } return crc; } 2012. 9. 27. RFID ISO 15963 Spec 모던 리더기 설정 속도 : 38400패리티 : 짝수 모던 리더기 테스트(COM1) 샘플 코드 #include #pragma pack(push, 1) typedef struct COMMON COMMON; struct COMMON { unsigned char ucLen; unsigned char ucComAdr; unsigned char ucCtl; }; #pragma pack(pop) unsigned short MecCRC(void *arg) { unsigned short i; unsigned short j; unsigned short cnt; unsigned short crc=0xFFFF; unsigned short temp; unsigned char *buf = arg; cnt = (*buf) - 2;.. 2012. 9. 27. [AX-12] 모터제어 스펙 2009. 11. 17. Zigbee-Full-Source-공개금지 2009. 10. 14. 이전 1 다음 728x90 반응형