当前位置: 首页>>代码示例>>C++>>正文


C++ PDeviceDescriptor_t类代码示例

本文整理汇总了C++中PDeviceDescriptor_t的典型用法代码示例。如果您正苦于以下问题:C++ PDeviceDescriptor_t类的具体用法?C++ PDeviceDescriptor_t怎么用?C++ PDeviceDescriptor_t使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PDeviceDescriptor_t类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: devIsCondor

BOOL devIsCondor(PDeviceDescriptor_t d)
{
  BOOL result = FALSE;

  LockComm();
  if ((d != NULL) && (d->IsCondor != NULL))
    result = d->IsCondor(d);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:11,代码来源:device.cpp

示例2: devOpen

// Only called from devInit() above which
// is in turn called with LockComm
BOOL devOpen(PDeviceDescriptor_t d, int Port){
  BOOL res = TRUE;

  if (d != NULL && d->Open != NULL)
    res = d->Open(d, Port);

  if (res == TRUE)
    d->Port = Port;

  return res;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例3: devIsBaroSource

BOOL devIsBaroSource(PDeviceDescriptor_t d)
{
  BOOL result = FALSE;

  LockComm();
  if ((d != NULL) && (d->IsBaroSource != NULL))
    result = d->IsBaroSource(d);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:11,代码来源:device.cpp

示例4: devPutFreqStandby

BOOL devPutFreqStandby(PDeviceDescriptor_t d, double Freq)
{
  BOOL result = TRUE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d != NULL && d->PutFreqStandby != NULL)
    result = d->PutFreqStandby(d, Freq);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例5: devPutVolume

BOOL devPutVolume(PDeviceDescriptor_t d, int Volume)
{
  BOOL result = TRUE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d != NULL && d->PutVolume != NULL)
    result = d->PutVolume(d, Volume);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例6: devPutBallast

BOOL devPutBallast(PDeviceDescriptor_t d, double Ballast)
{
  BOOL result = TRUE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d != NULL && d->PutBallast != NULL)
    result = d->PutBallast(d, Ballast);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例7: devPutBugs

BOOL devPutBugs(PDeviceDescriptor_t d, double Bugs)
{
  BOOL result = TRUE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d != NULL && d->PutBugs != NULL)
    result = d->PutBugs(d, Bugs);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例8: devPutMacCready

BOOL devPutMacCready(PDeviceDescriptor_t d, double MacCready)
{
  BOOL result = TRUE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d != NULL && d->PutMacCready != NULL)
    result = d->PutMacCready(d, MacCready);
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例9: devDirectLink

BOOL devDirectLink(PDeviceDescriptor_t d,	BOOL bLinkEnable)
{
  BOOL result = TRUE;

  if (SIMMODE)
	return TRUE;

  if (d != NULL && d->DirectLink != NULL)
	result = d->DirectLink(d, bLinkEnable);


  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:13,代码来源:device.cpp

示例10: devIsLogger

BOOL devIsLogger(PDeviceDescriptor_t d)
{
  bool result = false;

  LockComm();
  if ((d != NULL) && (d->IsLogger != NULL)) {
    if (d->IsLogger(d)) {
      result = true;
    }
  }
  if ((d != NULL) && !result) {
    result |= NMEAParser::PortIsFlarm(d->Port);
  }
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:17,代码来源:device.cpp

示例11: devClose

// Tear down methods should always succeed.
// Called from devInit() above under LockComm
// Also called when shutting down via devCloseAll()
BOOL devClose(PDeviceDescriptor_t d)
{
  if (d != NULL) {
    if (d->Close != NULL)
      d->Close(d);

    ComPort *Com = d->Com;
    d->Com = NULL;

    if (Com) {
      Com->Close();
      delete Com;
    }
  }

  return TRUE;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:20,代码来源:device.cpp

示例12: devClose

// Tear down methods should always succeed.
// Called from devInit() above under LockComm
// Also called when shutting down via devCloseAll()
BOOL devClose(PDeviceDescriptor_t d)
{
  if (d != NULL) {
    if (d->Close != NULL) {
      d->Close(d);
    }
    
    ComPort *Com = d->Com;
    if (Com) {
      Com->Close();
      d->Com = NULL; // if we do that before Stop RXThread , Crash ....
      delete Com;
    }    
  }

  return TRUE;
}
开发者ID:AlphaLima,项目名称:LK8000,代码行数:20,代码来源:device.cpp

示例13: devDeclare

BOOL devDeclare(PDeviceDescriptor_t d, Declaration_t *decl, unsigned errBufferLen, TCHAR errBuffer[])
{
  BOOL result = FALSE;

  if (SIMMODE)
    return TRUE;
  
  const unsigned BUFF_LEN = 128;
  TCHAR buffer[BUFF_LEN];

  // We must be sure we are not going to attempt task declaration
  // while a port reset is already in progress. If this happens, a Flarm device will not be Flarm anymore
  // until a Flarm nmea sentence is parsed again once. 
  
  // LKTOKEN  [email protected]_ = "Task declaration"
  // LKTOKEN  [email protected]_ = "START"
  _sntprintf(buffer, BUFF_LEN, _T("%s: %s..."), gettext(_T("[email protected]_")), gettext(_T("[email protected]_")));
  CreateProgressDialog(buffer);

  /***********************************************************/
  devDirectLink(d,true);
  /***********************************************************/
  LockComm();

  if ((d != NULL) && (d->Declare != NULL))
	result = d->Declare(d, decl, errBufferLen, errBuffer);
  else {
	if ((d != NULL) && NMEAParser::PortIsFlarm(d->Port)) {
		result |= FlarmDeclare(d, decl, errBufferLen, errBuffer);
	}
  }


  UnlockComm();
  /***********************************************************/
  devDirectLink(d,false);
  /***********************************************************/
  CloseProgressDialog();
  
  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:41,代码来源:device.cpp

示例14: devLinkTimeout

BOOL devLinkTimeout(PDeviceDescriptor_t d)
{
  BOOL result = FALSE;

  if (SIMMODE)
    return TRUE;
  LockComm();
  if (d == NULL){
    for (int i=0; i<NUMDEV; i++){
      d = &DeviceList[i];
      if (d->LinkTimeout != NULL)
        (d->LinkTimeout)(d);
    }
    result = TRUE;
  } else {
    if (d->LinkTimeout != NULL)
      result = d->LinkTimeout(d);
  }
  UnlockComm();

  return result;
}
开发者ID:Mazuk,项目名称:LK8000,代码行数:22,代码来源:device.cpp


注:本文中的PDeviceDescriptor_t类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。