데이터통신 - CRC Generation and Error Detection
- 최초 등록일
- 2009.06.16
- 최종 저작일
- 2007.12
- 11페이지/ 압축파일
- 가격 7,000원
소개글
데이터통신 - CRC Generation and Error Detection
//CRC Generation and Error Detection
#include
#include
#include
#include
#define MAX_NUM 30 //임의로 생성되는 ASC코드의 수
#define ORDER 5 //최대차수
//////////////////////////////전역변수 선언부////////////////////////////////
int ascii[MAX_NUM][7]; //임의로 생성된 ASC코드를 7bit씩 저장하는 배열
int generator[ORDER+1]; //생성다항식
int codeword[MAX_NUM][7+ORDER]; //체크섬코드를 만들기위한 배열
int trans_code[MAX_NUM][7+ORDER]; //만들어진 체크섬코드를 저장
int temp_code[MAX_NUM][7+ORDER];
int recieve_code[MAX_NUM][7]; //리시버가받아 원래의 코드로 변경하여저장
int remainder[MAX_NUM][ORDER]; //나머지
int enco_table[7+ORDER][ORDER]={0}; //체크섬 encoding을 위한 계산배열
int deco_table[7+ORDER][ORDER]={0}; //체크섬 decoding을 위한 계산배열
int nodetect_fail=0; //검색되지 않은 전송 실패
int success = 0; //전송 성공
///////////////////////////////함수 부분//////////////////////////////////////
컴파일 실행환경
visual studio 6.0 C
압축파일 내 파일목록
ex3.hwp
hw5.cpp
참고 자료
없음