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


C++ CheckStatus函数代码示例

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


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

示例1: vdp_device_destroy

void CVDPAU::FiniVDPAUProcs()
{
  if (vdp_device == VDP_INVALID_HANDLE) return;

  VdpStatus vdp_st;
  vdp_st = vdp_device_destroy(vdp_device);
  CheckStatus(vdp_st, __LINE__);
  vdp_device = VDP_INVALID_HANDLE;
  vdpauConfigured = false;
}
开发者ID:SilkyPantsDan,项目名称:xbmc,代码行数:10,代码来源:VDPAU.cpp

示例2: RemFromFreeList

buf *GetBufFromFreeList(buf *F_LIST){
  buf *buffer = F_LIST -> free_fp;
  if(!CheckStatus(buffer, STAT_DWR)){
    RemFromFreeList(buffer);
    return buffer;
  }
  else{
    GetBufFromFreeList(buffer);
  }
}
开发者ID:UnixSystemProgramingKeioUniversity,项目名称:uspku,代码行数:10,代码来源:getblk.c

示例3: COUNTERJNI_LOG

/*
 * Class:     edu_wpi_first_wpilibj_hal_CounterJNI
 * Method:    freeCounter
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CounterJNI_freeCounter
  (JNIEnv * env, jclass, jlong id)
{
	COUNTERJNI_LOG(logDEBUG) << "Calling COUNTERJNI freeCounter";
	COUNTERJNI_LOG(logDEBUG) << "Counter Ptr = " << (void*)id;
	int32_t status = 0;
	freeCounter((void*)id, &status);
	COUNTERJNI_LOG(logDEBUG) << "Status = " << status;
	CheckStatus(env, status);
}
开发者ID:FRC3238,项目名称:allwpilib,代码行数:15,代码来源:CounterJNI.cpp

示例4: SPIJNI_LOG

/*
 * Class:     edu_wpi_first_wpilibj_hal_SPIJNI
 * Method:    spiInitialize
 * Signature: (B)V
 */
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_SPIJNI_spiInitialize
  (JNIEnv * env, jclass, jbyte port)
{
	SPIJNI_LOG(logDEBUG) << "Calling SPIJNI spiInitialize";
	SPIJNI_LOG(logDEBUG) << "Port = " << (jint) port;
	int32_t status = 0;
	spiInitialize(port, &status);
	SPIJNI_LOG(logDEBUG) << "Status = " << status;
	CheckStatus(env, status);
}
开发者ID:FRC3238,项目名称:allwpilib,代码行数:15,代码来源:SPIJNI.cpp

示例5: DIOJNI_LOG

/*
 * Class:     edu_wpi_first_wpilibj_hal_DIOJNI
 * Method:    freeDIO
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_DIOJNI_freeDIO
  (JNIEnv * env, jclass, jlong id)
{
	DIOJNI_LOG(logDEBUG) << "Calling DIOJNI freeDIO";
	DIOJNI_LOG(logDEBUG) << "Port Ptr = " << (void*)id;
	int32_t status = 0;
	freeDIO((void*)id, &status);
	DIOJNI_LOG(logDEBUG) << "Status = " << status;
	CheckStatus(env, status);
}
开发者ID:FRC3238,项目名称:allwpilib,代码行数:15,代码来源:DIOJNI.cpp

示例6: Java_edu_wpi_first_wpilibj_hal_SPIJNI_spiResetAccumulator

/*
 * Class:     edu_wpi_first_wpilibj_hal_SPIJNI
 * Method:    spiResetAccumulator
 * Signature: (B)V
 */
JNIEXPORT void JNICALL
Java_edu_wpi_first_wpilibj_hal_SPIJNI_spiResetAccumulator(
    JNIEnv *env, jclass, jbyte port) {
  SPIJNI_LOG(logDEBUG) << "Calling SPIJNI spiResetAccumulator";
  SPIJNI_LOG(logDEBUG) << "Port = " << (jint)port;
  int32_t status = 0;
  HAL_ResetSPIAccumulator(port, &status);
  SPIJNI_LOG(logDEBUG) << "Status = " << status;
  CheckStatus(env, status);
}
开发者ID:PeterMitrano,项目名称:allwpilib,代码行数:15,代码来源:SPIJNI.cpp

示例7: CheckStatus

// ---------------------------------------------------------
// CPosPSYRequester::ReportStatus
// From MPosParameterObserver
// (other items were commented in a header).
// ---------------------------------------------------------
//
void CPosPSYRequester::ReportStatus(
    const TPositionModuleId& /*aImplementationUid*/,
    const TPositionModuleStatus& aStatus)
	{
	if (iCheckStatus)
        {
        iModuleStatus = aStatus;
        CheckStatus();
        }
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:16,代码来源:epos_cpospsyrequester.cpp

示例8: portTASK_FUNCTION

static portTASK_FUNCTION(HostTask, pvParameters) {
  (void)pvParameters; /* not used */
  //FsMSD1_HostInit();
  for(;;) {
    FsMSD1_AppTask();
    CheckStatus();
    FRTOS1_taskYIELD();
    //FRTOS1_vTaskDelay(10/portTICK_RATE_MS);
  }
}
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:10,代码来源:host.c

示例9: Load

    static GLuint Load( const char * vert, const char * geom, const char * frag ) {

        GLuint prog = glCreateProgram();
        if( vert ) AttachShader( prog, GL_VERTEX_SHADER, vert );
        if( geom ) AttachShader( prog, GL_GEOMETRY_SHADER, geom );
        if( frag ) AttachShader( prog, GL_FRAGMENT_SHADER, frag );
        glLinkProgram( prog );
        CheckStatus( prog );
        return prog;
    }
开发者ID:scottstensland,项目名称:render-audio-openal,代码行数:10,代码来源:Audio_View.cpp

示例10: SeekToTrackAndHold

BOOL
SeekToTrackAndHold(
    IN INT cdrom,
    IN INT tindex
    )

/*++

Routine Description:


    Seek to specified track and enter hold state.


Arguments:


    cdrom - index into gDevices array, specifies which CDROM
            device to access

    track - track on audio cd to seek to.


Return Value:


    TRUE if successful, FALSE if not


--*/


{

    DWORD status;
    CDROM_SEEK_AUDIO_MSF sam;

    sam.M = TRACK_M(cdrom,tindex);
    sam.S = TRACK_S(cdrom,tindex);
    sam.F = TRACK_F(cdrom,tindex);

    status = SeekCdrom( gDevices[ cdrom ]->hCd, &sam );

    CheckStatus( "SeekToTrackAndHold", status, cdrom );

    if (status == ERROR_SUCCESS) {

        ValidatePosition( cdrom );

    }


    return( status==ERROR_SUCCESS );

}
开发者ID:mingpen,项目名称:OpenNT,代码行数:55,代码来源:cdapi.c

示例11: CheckOpen

std::vector<long> FitsFile::GetColumnDimensions(int columnIndex)
{
	CheckOpen();
	int naxis = 0, status = 0;
	constexpr int maxdim = 10;
	std::vector<long> axes(maxdim, 0);
	fits_read_tdim(_fptr, columnIndex, maxdim, &naxis, axes.data(), &status);
	CheckStatus(status);
	axes.resize(naxis);
	return axes;
}
开发者ID:kernsuite-debian,项目名称:aoflagger,代码行数:11,代码来源:fitsfile.cpp

示例12: StartupDevices

void StartupDevices(void) {
    gpio_ioctl_cb_t gpio_iocb;
    common_ioctl_cb_t uart_iocb;
    BYTE Status = 0;
// Open GPIO driver and configure it
    hDevice[LEDs] = vos_dev_open(LEDs);
// Set LED3 pin to output
    gpio_iocb.ioctl_code = VOS_IOCTL_GPIO_SET_MASK;
    gpio_iocb.value = LED3;
    Status |= vos_dev_ioctl(hDevice[LEDs], &gpio_iocb);

// Open UART driver and configure it
    hDevice[UART] = vos_dev_open(UART);
    uart_iocb.ioctl_code = VOS_IOCTL_UART_SET_BAUD_RATE;
    uart_iocb.set.uart_baud_rate = UART_BAUD_3000000;
    Status = vos_dev_ioctl(hDevice[UART], &uart_iocb);
    uart_iocb.ioctl_code = VOS_IOCTL_UART_SET_FLOW_CONTROL;
    uart_iocb.set.param = UART_FLOW_NONE;
//    Status |= vos_dev_ioctl(hDevice[UART], &uart_iocb);
    uart_iocb.ioctl_code = VOS_IOCTL_UART_SET_DATA_BITS;
    uart_iocb.set.param = UART_DATA_BITS_8;
    Status |= vos_dev_ioctl(hDevice[UART], &uart_iocb);
    uart_iocb.ioctl_code = VOS_IOCTL_UART_SET_STOP_BITS;
    uart_iocb.set.param = UART_STOP_BITS_1;
    Status |= vos_dev_ioctl(hDevice[UART], &uart_iocb);
    uart_iocb.ioctl_code = VOS_IOCTL_UART_SET_PARITY;
    uart_iocb.set.param = UART_PARITY_NONE;
//    Status |= vos_dev_ioctl(hDevice[UART], &uart_iocb);
// Since baud rate >= 115200 enable DMA for this channel
    uart_iocb.ioctl_code = VOS_IOCTL_COMMON_ENABLE_DMA;
    Status |= vos_dev_ioctl(hDevice[UART], &uart_iocb);
// Finally enable UART interrupts are we're ready to go!
    vos_enable_interrupts(VOS_UART_INT_IEN);

// Open two more GPIO drivers for the Logic Analyser and configure them
    hDevice[LA_In] = vos_dev_open(LA_In);
// Set all port bits to input
    gpio_iocb.ioctl_code = VOS_IOCTL_GPIO_SET_MASK;
    gpio_iocb.value = 0;
    Status |= vos_dev_ioctl(hDevice[LA_In], &gpio_iocb);
    hDevice[LA_Out] = vos_dev_open(LA_Out);
// Set all port bits to output
    gpio_iocb.ioctl_code = VOS_IOCTL_GPIO_SET_MASK;
    gpio_iocb.value = 0xFF;
    Status |= vos_dev_ioctl(hDevice[LA_Out], &gpio_iocb);

// Spin up USB Host
    hDevice[Host] = vos_dev_open(Host);

// Let other tasks know that devices are initialized
    vos_signal_semaphore(&DevicesStarted);

    CheckStatus(Status, ErrorStartupDevices);
    }
开发者ID:jjturn,项目名称:lb-boards,代码行数:54,代码来源:Initialize.c

示例13: SOLENOIDJNI_LOG

/*
 * Class:     edu_wpi_first_wpilibj_hal_SolenoidJNI
 * Method:    setSolenoid
 * Signature: (JZ)V
 */
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_SolenoidJNI_setSolenoid
  (JNIEnv *env, jclass, jlong solenoid_port, jboolean value)
{
	SOLENOIDJNI_LOG(logDEBUG) << "Calling SolenoidJNI SetSolenoid";
	
	SOLENOIDJNI_LOG(logDEBUG) << "Solenoid Port Pointer = " << (void*)solenoid_port;
	
	int32_t status = 0;
	setSolenoid((void*)solenoid_port, value, &status);
	CheckStatus(env, status);
}
开发者ID:FRC3238,项目名称:allwpilib,代码行数:16,代码来源:SolenoidJNI.cpp

示例14: fprintf

void
CLabelManagerLanguageMonitor::StartPage()
{
    fprintf(stderr, "DEBUG: CLabelManagerLanguageMonitor::StartPage()\n");
    if (IsFirstPage_)
    {
        CheckStatus();
    }

    IsFirstPage_ = false;
}
开发者ID:xcross,项目名称:dymo-cups-drivers,代码行数:11,代码来源:LabelManagerLanguageMonitor.cpp

示例15: rb_str_new2

void Sandbox::Load(const tPath & path, const char * filename)
{
    tString realPath = path.GetReadPath(filename);
    if (realPath == "")
        return;

    VALUE args[] = { reinterpret_cast<VALUE>(this), rb_str_new2(realPath.c_str()) };
    int status = 0;
    rb_protect(LoadProtect, reinterpret_cast<VALUE>(args), &status);
    CheckStatus(status);
}
开发者ID:KnIfER,项目名称:armagetron,代码行数:11,代码来源:tRuby.cpp


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