Classes |
struct | CAN_IF_STATUS |
struct | CMSG |
struct | CMSG_T |
struct | CSCHED |
struct | EVMSG |
Defines |
#define | CALLTYPE |
#define | EXPORT |
#define | NTCAN_20B_BASE 0x20000000 |
#define | NTCAN_AUTOBAUD 0x7FFFFFFE |
#define | NTCAN_BAUD_10 0xD |
#define | NTCAN_BAUD_100 0x7 |
#define | NTCAN_BAUD_1000 0x0 |
#define | NTCAN_BAUD_125 0x6 |
#define | NTCAN_BAUD_20 0xB |
#define | NTCAN_BAUD_250 0x4 |
#define | NTCAN_BAUD_50 0x9 |
#define | NTCAN_BAUD_500 0x2 |
#define | NTCAN_BAUD_800 0xE |
#define | NTCAN_BUSSTATE_BUSOFF 0xC0 |
#define | NTCAN_BUSSTATE_ERRPASSIVE 0x80 |
#define | NTCAN_BUSSTATE_OK 0x00 |
#define | NTCAN_BUSSTATE_WARN 0x40 |
#define | NTCAN_CONTR_BUSY (NTCAN_ERRNO_BASE +6) |
#define | NTCAN_CONTR_ERR_PASSIVE (NTCAN_ERRNO_BASE +22) |
#define | NTCAN_CONTR_OFF_BUS (NTCAN_ERRNO_BASE +5) |
#define | NTCAN_CONTR_WARN (NTCAN_ERRNO_BASE +7) |
#define | NTCAN_ERRNO_BASE 0x00000100 |
#define | NTCAN_EV_BASE 0x40000000 |
#define | NTCAN_EV_BAUD_CHANGE (NTCAN_EV_BASE + 0x1) |
#define | NTCAN_EV_CAN_ERROR NTCAN_EV_BASE |
#define | NTCAN_EV_CAN_ERROR_EXT (NTCAN_EV_BASE + 0x2) |
#define | NTCAN_EV_LAST 0x400000FF |
#define | NTCAN_EV_USER 0x40000080 |
#define | NTCAN_FEATURE_BASIC_20B (1<<1) |
#define | NTCAN_FEATURE_CYCLIC_TX (1<<3) /* Cyclic Tx support */ |
#define | NTCAN_FEATURE_DEVICE_NET (1<<2) |
#define | NTCAN_FEATURE_FULL_CAN (1<<0) |
#define | NTCAN_FEATURE_LISTEN_ONLY_MODE (1<<6) /* Listen-only-mode support */ |
#define | NTCAN_FEATURE_RX_OBJECT_MODE (1<<4) /* Receive object mode support */ |
#define | NTCAN_FEATURE_SMART_DISCONNECT (1<<7) /* Leave-bus-after-last-close */ |
#define | NTCAN_FEATURE_TIMESTAMP (1<<5) /* Timestamp support */ |
#define | NTCAN_GCCATTR_DEPRECATED |
#define | NTCAN_HANDLE_FORCED_CLOSE (NTCAN_ERRNO_BASE +20) |
#define | NTCAN_ID_ALREADY_ENABLED (NTCAN_ERRNO_BASE +10) |
#define | NTCAN_ID_NOT_ENABLED (NTCAN_ERRNO_BASE +11) |
#define | NTCAN_INSUFFICIENT_RESOURCES ENOMEM |
#define | NTCAN_INTERACTION 0x20 /* only senseful in non obj-mode */ |
#define | NTCAN_INVALID_DRIVER (NTCAN_ERRNO_BASE +18) |
#define | NTCAN_INVALID_FIRMWARE (NTCAN_ERRNO_BASE +13) |
#define | NTCAN_INVALID_HANDLE EBADFD |
#define | NTCAN_INVALID_HARDWARE (NTCAN_ERRNO_BASE +15) |
#define | NTCAN_INVALID_PARAMETER EINVAL |
#define | NTCAN_IOCTL_ABORT_RX 0x0009 /* Abort a pending read */ |
#define | NTCAN_IOCTL_ABORT_TX 0x000A /* Abort pending write */ |
#define | NTCAN_IOCTL_FLUSH_RX_FIFO 0x0001 /* Flush Rx FIFO */ |
#define | NTCAN_IOCTL_GET_RX_MSG_COUNT 0x0002 /* Ret # CMSG in Rx FIFO */ |
#define | NTCAN_IOCTL_GET_RX_TIMEOUT 0x0003 /* Ret configured Rx tout */ |
#define | NTCAN_IOCTL_GET_SERIAL 0x0006 /* Get HW serial number */ |
#define | NTCAN_IOCTL_GET_TIMESTAMP 0x0008 /* Get timestamp counter */ |
#define | NTCAN_IOCTL_GET_TIMESTAMP_FREQ 0x0007 /* Get timestamp frequency in Hz */ |
#define | NTCAN_IOCTL_GET_TX_TIMEOUT 0x0004 /* Ret configured Tx tout */ |
#define | NTCAN_IOCTL_SET_20B_HND_FILTER 0x0005 /* Configure 20B filter */ |
#define | NTCAN_IOCTL_SET_RX_TIMEOUT 0x000B /* Change rx-timeout parameter */ |
#define | NTCAN_IOCTL_SET_TX_TIMEOUT 0x000C /* Change tx-timeout parameter */ |
#define | NTCAN_IOCTL_TX_OBJ_AUTOANSWER_OFF 0x000F /* Switch autoanswer off,arg->CMSG*/ |
#define | NTCAN_IOCTL_TX_OBJ_AUTOANSWER_ON 0x000E /* Switch autoanswer on,arg->CMSG */ |
#define | NTCAN_IOCTL_TX_OBJ_CREATE 0x000D /* Create obj, arg->CMSG */ |
#define | NTCAN_IOCTL_TX_OBJ_DESTROY 0x0011 /* Destroy obj, arg->id */ |
#define | NTCAN_IOCTL_TX_OBJ_SCHEDULE 0x0015 /* Set sched. for obj,arg->CSCHED */ |
#define | NTCAN_IOCTL_TX_OBJ_SCHEDULE_START 0x0013 /* Start scheduling for handle */ |
#define | NTCAN_IOCTL_TX_OBJ_SCHEDULE_STOP 0x0014 /* Stop scheduling for handle */ |
#define | NTCAN_IOCTL_TX_OBJ_UPDATE 0x0010 /* update obj, arg->CMSG */ |
#define | NTCAN_LISTEN_ONLY_MODE 0x40000000 |
#define | NTCAN_MAX_RX_QUEUESIZE 2047 |
#define | NTCAN_MAX_TX_QUEUESIZE 2047 |
#define | NTCAN_MESSAGE_LOST (NTCAN_ERRNO_BASE +14) |
#define | NTCAN_MODE_OBJECT 0x10000000 /* Open for Rx object mode */ |
#define | NTCAN_MODE_OVERLAPPED 0x20000000 |
#define | NTCAN_NET_NOT_FOUND ENODEV |
#define | NTCAN_NO_BAUDRATE 0x7FFFFFFF |
#define | NTCAN_NO_DATA 0x20 /* only senseful in obj-mode */ |
#define | NTCAN_NO_ID_ENABLED (NTCAN_ERRNO_BASE +9) |
#define | NTCAN_NO_QUEUE -1 |
#define | NTCAN_NOT_IMPLEMENTED ENOSYS |
#define | NTCAN_NOT_SUPPORTED (NTCAN_ERRNO_BASE +21) |
#define | NTCAN_OPERATION_ABORTED EINTR |
#define | NTCAN_PENDING_READ (NTCAN_ERRNO_BASE +17) |
#define | NTCAN_PENDING_WRITE (NTCAN_ERRNO_BASE +16) |
#define | NTCAN_RTR 0x10 |
#define | NTCAN_RX_TIMEOUT (NTCAN_ERRNO_BASE +1) |
#define | NTCAN_SOCK_CMD_TIMEOUT (NTCAN_ERRNO_BASE + 0x81) |
#define | NTCAN_SOCK_CONN_TIMEOUT (NTCAN_ERRNO_BASE + 0x80) |
#define | NTCAN_SOCK_HOST_NOT_FOUND (NTCAN_ERRNO_BASE + 0x82) /* gethostbyname() failed */ |
#define | NTCAN_SUCCESS 0 |
#define | NTCAN_TX_ERROR (NTCAN_ERRNO_BASE +4) |
#define | NTCAN_TX_TIMEOUT (NTCAN_ERRNO_BASE +2) |
#define | NTCAN_USER_BAUD 0x80000000 /* DEPRECATED, please use the define below, as described in CAN-API manual */ |
#define | NTCAN_USER_BAUDRATE 0x80000000 |
#define | NTCAN_USER_BAUDRATE_NUM 0x20000000 |
#define | NTCAN_WRONG_DEVICE_STATE (NTCAN_ERRNO_BASE +19) |
Typedefs |
typedef int32_t HANDLE | NTCAN_GCCATTR_DEPRECATED |
typedef int32_t | NTCAN_HANDLE |
typedef int32_t | NTCAN_RESULT |
typedef int32_t | OVERLAPPED |
Functions |
EXPORT NTCAN_RESULT CALLTYPE | canClose (NTCAN_HANDLE handle) |
EXPORT NTCAN_RESULT CALLTYPE | canGetBaudrate (NTCAN_HANDLE handle, uint32_t *baud) |
EXPORT NTCAN_RESULT CALLTYPE | canGetOverlappedResult (NTCAN_HANDLE handle, OVERLAPPED *ovrlppd, int32_t *len, int32_t bWait) |
EXPORT NTCAN_RESULT CALLTYPE | canIdAdd (NTCAN_HANDLE handle, int32_t id) |
EXPORT NTCAN_RESULT CALLTYPE | canIdDelete (NTCAN_HANDLE handle, int32_t id) |
EXPORT NTCAN_RESULT CALLTYPE | canIoctl (NTCAN_HANDLE handle, uint32_t ulCmd, void *pArg) |
EXPORT NTCAN_RESULT CALLTYPE | canOpen (int32_t net, uint32_t flags, int32_t txqueuesize, int32_t rxqueuesize, int32_t txtimeout, int32_t rxtimeout, NTCAN_HANDLE *handle) |
EXPORT NTCAN_RESULT CALLTYPE | canRead (NTCAN_HANDLE handle, CMSG *cmsg, int32_t *len, OVERLAPPED *ovrlppd) |
EXPORT NTCAN_RESULT CALLTYPE | canReadEvent (NTCAN_HANDLE handle, EVMSG *evmsg, OVERLAPPED *ovrlppd) |
EXPORT NTCAN_RESULT CALLTYPE | canReadT (NTCAN_HANDLE handle, CMSG_T *cmsg_t, int32_t *len, OVERLAPPED *ovrlppd) |
EXPORT NTCAN_RESULT CALLTYPE | canSend (NTCAN_HANDLE handle, CMSG *cmsg, int32_t *len) |
EXPORT NTCAN_RESULT CALLTYPE | canSendEvent (NTCAN_HANDLE handle, EVMSG *evmsg) |
EXPORT NTCAN_RESULT CALLTYPE | canSendT (NTCAN_HANDLE handle, CMSG_T *cmsg, int32_t *len) |
EXPORT NTCAN_RESULT CALLTYPE | canSetBaudrate (NTCAN_HANDLE handle, uint32_t baud) |
EXPORT NTCAN_RESULT CALLTYPE | canStatus (NTCAN_HANDLE handle, CAN_IF_STATUS *cstat) |
EXPORT NTCAN_RESULT CALLTYPE | canTake (NTCAN_HANDLE handle, CMSG *cmsg, int32_t *len) |
EXPORT NTCAN_RESULT CALLTYPE | canTakeT (NTCAN_HANDLE handle, CMSG_T *cmsg_t, int32_t *len) |
EXPORT NTCAN_RESULT CALLTYPE | canWrite (NTCAN_HANDLE handle, CMSG *cmsg, int32_t *len, OVERLAPPED *ovrlppd) |
EXPORT NTCAN_RESULT CALLTYPE | canWriteT (NTCAN_HANDLE handle, CMSG_T *cmsg, int32_t *len, OVERLAPPED *ovrlppd) |