當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。