⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ck.h

📁 pic单片机工程
💻 H
字号:
/*
** Copyright (C)1998 KVASER AB, http://www.kvaser.com
** This code may be freely distrubuted and used if the source is indicated.
**
*/

#ifndef CK_H
#define CK_H

#ifdef __WIN32__
typedef unsigned long ulong;
typedef unsigned int uint;
typedef unsigned char uchar;
#else
#include "std.h"
#endif

typedef enum {
    ckKeepActMode = 0,
    ckRunning = 1,
    ckFreeze = 2,
    ckReset = 3
} actModesT;

typedef enum {
    ckKeepCommMode = 0,
    ckSilent = 1,     // The output is disabled, not even acks's are transmitted
    ckListenOnly = 2, // We listen but respond only to Kings Letters
    ckCommunicate = 3 // Normal communication
} commModesT;

#ifndef __WIN32__  // Defined in canlib.h
typedef enum {
    canOK                  = 0,
    canERR_PARAM           = -1,     // Error in parameter
    canERR_NOMSG           = -2,     // No messages available
    canERR_NOTFOUND        = -3,     // Specified hw not found
    canERR_TIMEOUT         = -7,     // Timeout ocurred
    canERR_NOTINITIALIZED  = -8,     // Lib not initialized
    canERR_TXBUFOFL        = -13,    // Transmit buffer overflow
    canERR_HARDWARE        = -15,    // Some hardware error has occurred
} canStatus;

// Bits in the flags variable of canRead()/canWrite()
#define canMSG_RTR              0x0001      // Message is a remote request
#define canMSG_STD              0x0002      // Message has a standard ID
#define canMSG_EXT              0x0004      // Message has a extended ID

#endif

#endif // CK_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -