本文整理汇总了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;
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
}
示例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);
}
}
示例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;
}
示例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 );
}
示例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;
}
示例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);
}
示例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);
}
示例14: fprintf
void
CLabelManagerLanguageMonitor::StartPage()
{
fprintf(stderr, "DEBUG: CLabelManagerLanguageMonitor::StartPage()\n");
if (IsFirstPage_)
{
CheckStatus();
}
IsFirstPage_ = false;
}
示例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);
}