extern SDL_Boolean IsLIPData (d_sds_data_s *Source)
{
edbit_s edbit;
edbit_rc_e rc;
char tmpData[256] = {0};
int nValue = 0;
//
// The User Defined Data-4 information element shall enable
// the user applications to determine their own interpretation of
// the SDS message as defined in table 14.90. The first 8 bits of
// the user defined data-4 element shall contain a protocol
// identifier as defined in clause 29.
//
if (Source->ShortDataTypeID == USER_DEFINED_DATA_4)
{
memcpy(tmpData, Source->UserDefinedData4.A, 255);
// 전체 길이에서 8bit만 사용한다고 예약
rc = edbit_dec_init (&edbit, tmpData, 0, 8);
rc = edbit_dibits (&edbit, &nValue, 8);
/*Location information protocol*/
if(nValue == 0x0A)
{
return 1;
}
}
return 0;
}
{
edbit_s edbit;
edbit_rc_e rc;
char tmpData[256] = {0};
int nValue = 0;
//
// The User Defined Data-4 information element shall enable
// the user applications to determine their own interpretation of
// the SDS message as defined in table 14.90. The first 8 bits of
// the user defined data-4 element shall contain a protocol
// identifier as defined in clause 29.
//
if (Source->ShortDataTypeID == USER_DEFINED_DATA_4)
{
memcpy(tmpData, Source->UserDefinedData4.A, 255);
// 전체 길이에서 8bit만 사용한다고 예약
rc = edbit_dec_init (&edbit, tmpData, 0, 8);
rc = edbit_dibits (&edbit, &nValue, 8);
/*Location information protocol*/
if(nValue == 0x0A)
{
return 1;
}
}
return 0;
}
'Windows > MFC' 카테고리의 다른 글
윈도우 종료 (for vista) (0) | 2013.10.02 |
---|---|
CString 에서 메모리관련 오류 발생시 m_szParsing.GetBuffer(6500); (0) | 2013.10.02 |
CScrollView를 분할윈도우로 붙였더니 휠로 스크롤 되지않습니다 (0) | 2013.10.02 |
scroll 시 깜박임... 문제 처리 (0) | 2013.10.02 |
Splitter 분할 (0) | 2013.10.02 |