CANpie FD
CAN programming interface environment - Version 3.08
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Modules Pages
Data Structures | Macros | Enumerations
canpie.h File Reference

Detailed Description

This file holds constants and structures used within CANpie FD. All functions, structures, defines and constants in CANpie FD have the prefix "Cp". The following table shows the used nomenclature:

CANpie code Nomenclature
Core functions CpCore<Name>
Message access functions CpMsg<Name>
Structures Cp<Name>_ts
Definitions CP_<NAME>
Enumerations eCP_<NAME>
+ Include dependency graph for canpie.h:

Data Structures

struct  CpTime_s
 
struct  CpCanMsg_s
 
struct  CpHdi_s
 
struct  CpStatistic_s
 
struct  CpState_s
 

Macros

#define CP_AUTOBAUD   0
 
#define CP_BUFFER_MAX   8
 
#define CP_CAN_FD   0
 
#define CP_CAN_MSG_MACRO   1
 
#define CP_CAN_MSG_MARKER   0
 
#define CP_CAN_MSG_TIME   0
 
#define CP_CAN_MSG_USER   1
 
#define CP_CHANNEL_MAX   1
 
#define CP_SMALL_CODE   0
 
#define CP_STATISTIC   0
 
#define CP_VERSION_MAJOR   3
 
#define CP_VERSION_MINOR   8
 
#define CP_MASK_STD_FRAME   ((uint32_t) 0x000007FF)
 
#define CP_MASK_EXT_FRAME   ((uint32_t) 0x1FFFFFFF)
 
#define CP_MASK_MSG_FORMAT   ((uint8_t) 0x03)
 
#define CP_MSG_CTRL_EXT_BIT   ((uint8_t) 0x01)
 
#define CP_MSG_CTRL_FDF_BIT   ((uint8_t) 0x02)
 
#define CP_MSG_CTRL_RTR_BIT   ((uint8_t) 0x04)
 
#define CP_MSG_CTRL_OVR_BIT   ((uint8_t) 0x08)
 
#define CP_MSG_CTRL_RPC_BIT   ((uint8_t) 0x10)
 
#define CP_MSG_CTRL_BRS_BIT   ((uint8_t) 0x40)
 
#define CP_MSG_CTRL_ESI_BIT   ((uint8_t) 0x80)
 
#define CP_MSG_FORMAT_CBFF   ((uint8_t) 0x00)
 
#define CP_MSG_FORMAT_CEFF   (CP_MSG_CTRL_EXT_BIT)
 
#define CP_MSG_FORMAT_FBFF   (CP_MSG_CTRL_FDF_BIT)
 
#define CP_MSG_FORMAT_FEFF   (CP_MSG_CTRL_FDF_BIT | CP_MSG_CTRL_EXT_BIT)
 
#define CP_DATA_SIZE   ((uint8_t) 8)
 

Enumerations

enum  CpErr_e {
  eCP_ERR_NONE = 0,
  eCP_ERR_GENERIC = 1,
  eCP_ERR_HARDWARE = 2,
  eCP_ERR_INIT_FAIL = 3,
  eCP_ERR_INIT_READY = 4,
  eCP_ERR_INIT_MISSING = 5,
  eCP_ERR_RCV_EMPTY = 6,
  eCP_ERR_RCV_OVERRUN = 7,
  eCP_ERR_TRM_FULL = 8,
  eCP_ERR_CAN_MESSAGE = 10,
  eCP_ERR_CAN_ID = 11,
  eCP_ERR_CAN_DLC = 12,
  eCP_ERR_FIFO_EMPTY = 20,
  eCP_ERR_FIFO_WAIT = 21,
  eCP_ERR_FIFO_FULL = 22,
  eCP_ERR_FIFO_SIZE = 23,
  eCP_ERR_FIFO_PARAM = 24,
  eCP_ERR_BUS_PASSIVE = 30,
  eCP_ERR_BUS_OFF = 31,
  eCP_ERR_BUS_WARNING = 32,
  eCP_ERR_CHANNEL = 40,
  eCP_ERR_REGISTER = 41,
  eCP_ERR_BITRATE = 42,
  eCP_ERR_BUFFER = 43,
  eCP_ERR_PARAM = 44,
  eCP_ERR_NOT_SUPPORTED = 50
}
 
enum  CpCallback_e {
  eCP_CALLBACK_PROCESSED = 0,
  eCP_CALLBACK_PUSH_FIFO
}
 
enum  CpBitrate_e {
  eCP_BITRATE_NONE = -1,
  eCP_BITRATE_10K = 0,
  eCP_BITRATE_20K = 1,
  eCP_BITRATE_50K = 2,
  eCP_BITRATE_100K = 3,
  eCP_BITRATE_125K = 4,
  eCP_BITRATE_250K = 5,
  eCP_BITRATE_500K = 6,
  eCP_BITRATE_800K = 7,
  eCP_BITRATE_1M = 8,
  eCP_BITRATE_2M = 10,
  eCP_BITRATE_4M = 11,
  eCP_BITRATE_5M = 12,
  eCP_BITRATE_AUTO = 9
}
 
enum  CpChannel_e {
  eCP_CHANNEL_NONE = 0,
  eCP_CHANNEL_1,
  eCP_CHANNEL_2,
  eCP_CHANNEL_3,
  eCP_CHANNEL_4,
  eCP_CHANNEL_5,
  eCP_CHANNEL_6,
  eCP_CHANNEL_7,
  eCP_CHANNEL_8
}
 
enum  CpMode_e {
  eCP_MODE_INIT = 0 ,
  eCP_MODE_OPERATION = 1 ,
  eCP_MODE_LISTEN_ONLY = 2,
  eCP_MODE_SLEEP = 3,
  eCP_MODE_SELF_TEST = 4
}
 
enum  CpState_e {
  eCP_STATE_INIT = 0 ,
  eCP_STATE_SLEEPING = 1,
  eCP_STATE_BUS_ACTIVE = 2,
  eCP_STATE_BUS_WARN = 3,
  eCP_STATE_BUS_PASSIVE = 4,
  eCP_STATE_BUS_OFF = 5,
  eCP_STATE_PHY_FAULT = 10,
  eCP_STATE_PHY_H = 11,
  eCP_STATE_PHY_L = 12
}
 
enum  CpErrType_e {
  eCP_ERR_TYPE_NONE = 0,
  eCP_ERR_TYPE_BIT0,
  eCP_ERR_TYPE_BIT1,
  eCP_ERR_TYPE_STUFF,
  eCP_ERR_TYPE_FORM,
  eCP_ERR_TYPE_CRC,
  eCP_ERR_TYPE_ACK
}
 
enum  CpBuffer_e {
  eCP_BUFFER_1 = 0,
  eCP_BUFFER_2,
  eCP_BUFFER_3 ,
  eCP_BUFFER_16
}
 
enum  CpBufferDir_e {
  eCP_BUFFER_DIR_RCV = 0,
  eCP_BUFFER_DIR_TRM
}
 
enum  CpRpc_e {
  eCP_RPC_NOOP = 0,
  eCP_RPC_MODE,
  eCP_RPC_BITRATE
}
 

Macro Definition Documentation

◆ CP_DATA_SIZE

#define CP_DATA_SIZE   ((uint8_t) 8)

The symbol CP_DATA_SIZE defines the maximum number of bytes which are transferred inside the data field of a CAN message. For classic CAN frames the maximum number of bytes is 8, for CAN FD frames the maximum number of bytes is 64.

Enumeration Type Documentation

◆ CpBitrate_e

Fixed bit-rates.

The values of the enumeration CpBitrate_e are used as parameter for the function CpCoreBitrate().

Enumerator
eCP_BITRATE_NONE 

No bit-rate defined

eCP_BITRATE_10K 

bit-rate 10 kBit/s

eCP_BITRATE_20K 

bit-rate 20 kBit/s

eCP_BITRATE_50K 

bit-rate 50 kBit/s

eCP_BITRATE_100K 

bit-rate 100 kBit/s

eCP_BITRATE_125K 

bit-rate 125 kBit/s

eCP_BITRATE_250K 

bit-rate 250 kBit/s

eCP_BITRATE_500K 

bit-rate 500 kBit/s

eCP_BITRATE_800K 

bit-rate 800 kBit/s

eCP_BITRATE_1M 

bit-rate 1 MBit/s

eCP_BITRATE_2M 

bit-rate 2 MBit/s (ISO CAN FD, data phase)

eCP_BITRATE_4M 

bit-rate 4 MBit/s (ISO CAN FD, data phase)

eCP_BITRATE_5M 

bit-rate 5 MBit/s (ISO CAN FD, data phase)

eCP_BITRATE_AUTO 

Use automatic bit-rate detection

◆ CpBuffer_e

enum CpBuffer_e

Buffer definition.

The enumeration CpBuffer_e is used to define a message buffer inside a FullCAN controller. The index for the first buffer starts at 0.

Enumerator
eCP_BUFFER_1 

Buffer number 1

eCP_BUFFER_2 

Buffer number 2

eCP_BUFFER_3 

Buffer number 3 ..

eCP_BUFFER_16 

Buffer number 16

◆ CpBufferDir_e

Buffer direction definition.

The enumeration CpBufferDir_e is used to define the direction of a message buffer (transmit or receive). The enumeration values are used by the function CpCoreBufferConfig().

Enumerator
eCP_BUFFER_DIR_RCV 

Message buffer direction is receive

eCP_BUFFER_DIR_TRM 

Message buffer direction is transmit

◆ CpCallback_e

Callback Return Codes.

These return values are used by the callback functions that can be installed by the function CpCoreIntFunctions().

Example

uint8_t MyCallback(CpCanMsg_ts * ptsCanMsgV, uint8_t ubBufferIdxV)
{
// Do something with IDs < 100
if( CpMsgGetIdentifier(ptsCanMsgV) < 100)
{
//.....
}
// Put all other messages into the FIFO
}


Enumerator
eCP_CALLBACK_PROCESSED 

Message was processed by callback and should not inserted in the FIFO

eCP_CALLBACK_PUSH_FIFO 

Message was not processed by callback and must be inserted in the FIFO

◆ CpChannel_e

Channel definition.

The physical CAN interfaces are numbered from 1 .. N (N: total number of physical CAN interfaces on the target system). The enumeration CpChannel_e lists up to 8 physical interfaces. The enumeration value eCP_CHANNEL_NONE denotes an invalid channel value.

Enumerator
eCP_CHANNEL_NONE 

CAN interface invalid

eCP_CHANNEL_1 

CAN interface 1

eCP_CHANNEL_2 

CAN interface 2

eCP_CHANNEL_3 

CAN interface 3

eCP_CHANNEL_4 

CAN interface 4

eCP_CHANNEL_5 

CAN interface 5

eCP_CHANNEL_6 

CAN interface 6

eCP_CHANNEL_7 

CAN interface 7

eCP_CHANNEL_8 

CAN interface 8

◆ CpErr_e

enum CpErr_e

CANpie Error codes.

All functions that may cause an error condition will return an error code. The CANpie error codes are within the value range from 0 to 127. The designer of the core functions might extend the error code table with hardware specific error codes, which must be in the range from 128 to 255.

Enumerator
eCP_ERR_NONE 

No error (00dec / 00hex)

eCP_ERR_GENERIC 

Error not specified (01dec / 01hex)

eCP_ERR_HARDWARE 

Hardware failure (02dec / 02hex)

eCP_ERR_INIT_FAIL 

Initialisation failure (03dec / 03hex)

eCP_ERR_INIT_READY 

Channel is initialised, ready to run (04dec / 04hex)

eCP_ERR_INIT_MISSING 

CAN channel was not initialised (05dec / 05hex)

eCP_ERR_RCV_EMPTY 

Receive buffer is empty (06dec / 06hex)

eCP_ERR_RCV_OVERRUN 

Receive buffer overrun (07dec / 07hex)

eCP_ERR_TRM_FULL 

Transmit buffer is full (08dec / 08hex)

eCP_ERR_CAN_MESSAGE 

CAN message has wrong format (10dec / 0Ahex)

eCP_ERR_CAN_ID 

CAN identifier not valid (11dec / 0Bhex)

eCP_ERR_CAN_DLC 

CAN data length code not valid (12dec / 0Chex)

eCP_ERR_FIFO_EMPTY 

FIFO is empty (20dec / 14hex)

eCP_ERR_FIFO_WAIT 

Message is waiting in FIFO (21dec / 15hex)

eCP_ERR_FIFO_FULL 

FIFO is full (22dec / 16hex)

eCP_ERR_FIFO_SIZE 

FIFO size is out of range (23dec / 17hex)

eCP_ERR_FIFO_PARAM 

Parameter of FIFO function is out of range (24dec / 18hex)

eCP_ERR_BUS_PASSIVE 

Controller is in error passive (30dec / 1Ehex)

eCP_ERR_BUS_OFF 

Controller is in bus off (31dec / 1Fhex)

eCP_ERR_BUS_WARNING 

Controller is in warning status (32dec / 20hex)

eCP_ERR_CHANNEL 

Channel out of range (40dec / 28hex)

eCP_ERR_REGISTER 

Register address out of range (41dec / 29hex)

eCP_ERR_BITRATE 

bit-rate out of range (42dec / 2Ahex)

eCP_ERR_BUFFER 

Buffer number out of range (43dec / 2Bhex)

eCP_ERR_PARAM 

Parameter number out of range (44dec / 2Chex)

eCP_ERR_NOT_SUPPORTED 

Function is not supported (50dec / 32hex)

◆ CpErrType_e

Error type.

These values are used as return value for the function CpCoreCanState().

Enumerator
eCP_ERR_TYPE_NONE 

No error

eCP_ERR_TYPE_BIT0 

Bit 0 error

eCP_ERR_TYPE_BIT1 

Bit 1 error

eCP_ERR_TYPE_STUFF 

Stuff error

eCP_ERR_TYPE_FORM 

Format error

eCP_ERR_TYPE_CRC 

CRC error

eCP_ERR_TYPE_ACK 

Acknowledge error

◆ CpMode_e

enum CpMode_e

Mode of CAN controller.

These values are used as parameter for the function CpCoreCanMode() in order to change the state of the CAN controller.

Enumerator
eCP_MODE_INIT 

Set controller in 'Initialization' mode (no reception or transmission possible)

eCP_MODE_OPERATION 

Set controller into 'Operation' mode

eCP_MODE_LISTEN_ONLY 

Set controller into 'Listen-only' mode

eCP_MODE_SLEEP 

Set controller into 'Sleep' (power-down) mode

eCP_MODE_SELF_TEST 

Set controller into 'Self-test' mode

◆ CpRpc_e

enum CpRpc_e

Remote Procedure Call definition.

The enumeration CpRpc_e is used to define different Remote Procedure Calls. The enumeration values are used by the function CpMsgRpcType() to identify a Remote Procedure Call upon reception.

Enumerator
eCP_RPC_NOOP 

RPC for no operation

eCP_RPC_MODE 

RPC for CpCoreCanMode()

eCP_RPC_BITRATE 

RPC for CpCoreBitrate()

◆ CpState_e

enum CpState_e

State of CAN controller.

These values are used as return value for the function CpCoreCanState().

Enumerator
eCP_STATE_INIT 

CAN controller is in stopped mode

eCP_STATE_SLEEPING 

CAN controller is in Sleep mode

eCP_STATE_BUS_ACTIVE 

CAN controller is error active

eCP_STATE_BUS_WARN 

CAN controller is active, warning level is reached

eCP_STATE_BUS_PASSIVE 

CAN controller is error passive

eCP_STATE_BUS_OFF 

CAN controller went into Bus Off

eCP_STATE_PHY_FAULT 

General failure of physical layer detected (if supported by hardware)

eCP_STATE_PHY_H 

Fault on CAN-H detected (Low Speed CAN)

eCP_STATE_PHY_L 

Fault on CAN-L detected (Low Speed CAN)

QCanSocketCpFD::CpCoreStatistic
friend CpStatus_tv CpCoreStatistic(CpPort_ts *ptsPortV, CpStatistic_ts *ptsStatsV)
Read CAN controller statistics.
QCanSocketCpFD::CpCoreFifoRelease
friend CpStatus_tv CpCoreFifoRelease(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Release FIFO from message buffer.
eCP_ERR_CAN_ID
@ eCP_ERR_CAN_ID
Definition: canpie.h:522
eCP_BITRATE_50K
@ eCP_BITRATE_50K
Definition: canpie.h:656
QCanSocketDialog::exec
int exec(void)
CpCoreBitrate
CpStatus_tv CpCoreBitrate(CpPort_ts *ptsPortV, int32_t slNomBitRateV, int32_t slDatBitRateV)
Set bit-rate of CAN controller.
QCanSocketCpFD::CpCoreFifoWrite
friend CpStatus_tv CpCoreFifoWrite(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpCanMsg_ts *ptsCanMsgV, uint32_t *pulMsgCntV)
Transmit a CAN message.
CpHdi_s::ulTimeStampRes
uint32_t ulTimeStampRes
Definition: canpie.h:1174
QCan
Definition: qcan_namespace.hpp:51
QCanSocketDialog::channel
CAN_Channel_e channel() const
QCanSocket::state
CAN_State_e state(void) const
Definition: qcan_socket.hpp:177
QCanFilter::QCanFilter
QCanFilter()
CpMsgSetTime
void CpMsgSetTime(CpCanMsg_ts *ptsCanMsgV, const CpTime_ts *ptsTimeV)
Set time-stamp value.
eCP_STATE_BUS_WARN
@ eCP_STATE_BUS_WARN
Definition: canpie.h:826
QCanSocketDialog::socketSelected
void socketSelected(QCanSocket *pclSocketV)
eCP_BITRATE_125K
@ eCP_BITRATE_125K
Definition: canpie.h:666
CpFifoIncOut
void CpFifoIncOut(CpFifo_ts *ptsFifoV)
QCanFrame
Definition: qcan_frame.hpp:164
QCanSocket::read
bool read(QCanFrame &clFrameR)
QCanSocketCpFD::CpCoreBufferConfig
friend CpStatus_tv CpCoreBufferConfig(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint32_t ulIdentifierV, uint32_t ulAcceptMaskV, uint8_t ubFormatV, uint8_t ubDirectionV)
Initialise message buffer.
CpMsgClrRemote
void CpMsgClrRemote(CpCanMsg_ts *ptsCanMsgV)
Clear RTR bit.
eCP_STATE_BUS_ACTIVE
@ eCP_STATE_BUS_ACTIVE
Definition: canpie.h:821
QCan::eLOG_LEVEL_OFF
@ eLOG_LEVEL_OFF
Definition: qcan_namespace.hpp:264
QCanTimeStamp::now
static QCanTimeStamp now(void)
CpCoreBufferConfig
CpStatus_tv CpCoreBufferConfig(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint32_t ulIdentifierV, uint32_t ulAcceptMaskV, uint8_t ubFormatV, uint8_t ubDirectionV)
Initialise message buffer.
eCP_ERR_FIFO_WAIT
@ eCP_ERR_FIFO_WAIT
Definition: canpie.h:534
CpState_s::ubCanRcvErrCnt
uint8_t ubCanRcvErrCnt
Definition: canpie.h:1259
QCan::eCAN_CHANNEL_2
@ eCAN_CHANNEL_2
Definition: qcan_namespace.hpp:154
CpMsgRpcGetNominalBitrate
int32_t CpMsgRpcGetNominalBitrate(const CpCanMsg_ts *ptsCanMsgV)
Get Nominal Bit Timing selection via RPC.
eCP_ERR_NOT_SUPPORTED
@ eCP_ERR_NOT_SUPPORTED
Definition: canpie.h:583
eCP_ERR_FIFO_EMPTY
@ eCP_ERR_FIFO_EMPTY
Definition: canpie.h:530
QCanFrame::eFORMAT_FD_EXT
@ eFORMAT_FD_EXT
Definition: qcan_frame.hpp:217
CpMsgGetData
uint8_t CpMsgGetData(const CpCanMsg_ts *ptsCanMsgV, uint8_t ubPosV)
Get Data.
QCanServerLogger::message
QString message(void) const
Definition: qcan_server_logger.hpp:104
CpCoreIntFunctions
CpStatus_tv CpCoreIntFunctions(CpPort_ts *ptsPortV, CpRcvHandler_Fn pfnRcvHandlerV, CpTrmHandler_Fn pfnTrmHandlerV, CpErrHandler_Fn pfnErrHandlerV)
Install callback functions.
eCP_ERR_FIFO_PARAM
@ eCP_ERR_FIFO_PARAM
Definition: canpie.h:546
CpCoreFifoRead
CpStatus_tv CpCoreFifoRead(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpCanMsg_ts *ptsCanMsgV, uint32_t *pulMsgCntV)
Read a CAN message from FIFO.
eCP_CALLBACK_PROCESSED
@ eCP_CALLBACK_PROCESSED
Definition: canpie.h:618
QCanFilter::type
FilterType_te type(void) const
Definition: qcan_filter.hpp:138
QCanSocket::connectNetwork
bool connectNetwork(const CAN_Channel_e &teChannelR)
eCP_MODE_SLEEP
@ eCP_MODE_SLEEP
Definition: canpie.h:788
QCanNetwork::state
CAN_State_e state(void)
Definition: qcan_network.hpp:397
eCP_BITRATE_1M
@ eCP_BITRATE_1M
Definition: canpie.h:686
eCP_ERR_CHANNEL
@ eCP_ERR_CHANNEL
Definition: canpie.h:563
QCanSocketDialog::QCanSocketDialog
QCanSocketDialog(QWidget *pclParentV, Qt::WindowFlags f)
QCan::eCAN_CHANNEL_5
@ eCAN_CHANNEL_5
Definition: qcan_namespace.hpp:163
eCP_CHANNEL_7
@ eCP_CHANNEL_7
Definition: canpie.h:749
QCan::eCAN_MODE_SLEEP
@ eCAN_MODE_SLEEP
Definition: qcan_namespace.hpp:204
CpTime_s::ulSec1970
uint32_t ulSec1970
Definition: canpie.h:984
CpCanMsg_s::ulMsgUser
uint32_t ulMsgUser
Definition: canpie.h:1079
QCanPlugin::name
virtual QString name(void)=0
QCanInterface::version
virtual QString version(void)
Definition: qcan_interface.hpp:267
QCan::eCAN_CHANNEL_8
@ eCAN_CHANNEL_8
Definition: qcan_namespace.hpp:172
QCanInterface::ConnectionState_e
ConnectionState_e
Definition: qcan_interface.hpp:114
QCanSocketCpFD::CpCoreBufferGetDlc
friend CpStatus_tv CpCoreBufferGetDlc(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubDlcV)
Get DLC of specified buffer.
QCanFilterList::clear
void clear(void)
QCanSocketCpFD::CpCoreBufferSetData
friend CpStatus_tv CpCoreBufferSetData(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubSrcDataV, uint8_t ubStartPosV, uint8_t ubSizeV)
Set data of message buffer.
QCanSocket::uuid
QUuid uuid(void) const
Definition: qcan_socket.hpp:186
QCanInterface::configureDevice
virtual bool configureDevice(void)
Definition: qcan_interface.hpp:139
eCP_BITRATE_800K
@ eCP_BITRATE_800K
Definition: canpie.h:681
QCan::eCAN_BITRATE_AUTO
@ eCAN_BITRATE_AUTO
Definition: qcan_namespace.hpp:130
CpCanMsg_s::aulLong
uint32_t aulLong[CP_DATA_SIZE/4]
Definition: canpie.h:1029
CpCanMsg_s::ulIdentifier
uint32_t ulIdentifier
Definition: canpie.h:1013
QCan::eCAN_BITRATE_NONE
@ eCAN_BITRATE_NONE
Definition: qcan_namespace.hpp:65
eCP_ERR_NONE
@ eCP_ERR_NONE
Definition: canpie.h:482
QCan::eCAN_BITRATE_20K
@ eCAN_BITRATE_20K
Definition: qcan_namespace.hpp:75
QCan::eCAN_STATE_BUS_ACTIVE
@ eCAN_STATE_BUS_ACTIVE
Definition: qcan_namespace.hpp:234
QCanFrame::FrameType_e
FrameType_e
Definition: qcan_frame.hpp:227
eCP_ERR_INIT_MISSING
@ eCP_ERR_INIT_MISSING
Definition: canpie.h:502
QCanFilterList::QCanFilterList
QCanFilterList()
eCP_ERR_TYPE_ACK
@ eCP_ERR_TYPE_ACK
Definition: canpie.h:884
QCanSocketCpFD::CpCoreFifoConfig
friend CpStatus_tv CpCoreFifoConfig(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpFifo_ts *ptsFifoV)
Assign FIFO to message buffer.
QCanSocketCpFD::CpCoreBufferSetDlc
friend CpStatus_tv CpCoreBufferSetDlc(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t ubDlcV)
Set DLC of specified buffer.
CpFifo_s::ulState
uint32_t ulState
Definition: cp_fifo.h:107
CpMsgRpcType
uint32_t CpMsgRpcType(const CpCanMsg_ts *ptsCanMsgV)
Identify Remote Procedure Call.
QCanSocket
CAN socket.
Definition: qcan_socket.hpp:66
QCanTimeStamp::operator>
bool operator>(const QCanTimeStamp &clTimeStampR) const
QCan::CAN_Bitrate_e
CAN_Bitrate_e
Definition: qcan_namespace.hpp:60
CpFifo_s::ulIndexIn
uint32_t ulIndexIn
Definition: cp_fifo.h:93
eCP_BUFFER_1
@ eCP_BUFFER_1
Definition: canpie.h:898
eCP_BITRATE_500K
@ eCP_BITRATE_500K
Definition: canpie.h:676
QCanFilterList::removeFilter
bool removeFilter(const int32_t slPositionR)
QCanTimeStamp::operator==
bool operator==(const QCanTimeStamp &clTimeStampR) const
eCP_ERR_TYPE_STUFF
@ eCP_ERR_TYPE_STUFF
Definition: canpie.h:875
QCan::eCAN_MODE_LISTEN_ONLY
@ eCAN_MODE_LISTEN_ONLY
Definition: qcan_namespace.hpp:200
QCanServer::serverAddress
QHostAddress serverAddress(void)
Definition: qcan_server.hpp:148
CpState_s
CAN state structure.
Definition: canpie.h:1244
eCP_ERR_INIT_READY
@ eCP_ERR_INIT_READY
Definition: canpie.h:498
QCanFrame::eERROR_TYPE_FORM
@ eERROR_TYPE_FORM
Definition: qcan_frame.hpp:190
eCP_BITRATE_NONE
@ eCP_BITRATE_NONE
Definition: canpie.h:641
QCanServer::eERROR_CRASHED
@ eERROR_CRASHED
Definition: qcan_server.hpp:97
QCanTimeStamp::toByteArray
QByteArray toByteArray(void) const
QCan::eCAN_STATE_BUS_PASSIVE
@ eCAN_STATE_BUS_PASSIVE
Definition: qcan_namespace.hpp:245
QCanFrame::eFORMAT_FD_STD
@ eFORMAT_FD_STD
Definition: qcan_frame.hpp:214
QCan::eCAN_BITRATE_MAX
@ eCAN_BITRATE_MAX
Definition: qcan_namespace.hpp:135
QCanSocket::error
QAbstractSocket::SocketError error() const
QCanFrame::FrameFormat_e
FrameFormat_e
Definition: qcan_frame.hpp:205
CpRpc_e
CpRpc_e
Remote Procedure Call definition.
Definition: canpie.h:953
eCP_ERR_HARDWARE
@ eCP_ERR_HARDWARE
Definition: canpie.h:490
CpCanMsg_s::ubMsgDLC
uint8_t ubMsgDLC
Definition: canpie.h:1043
CpMsgRpcGetCanMode
uint8_t CpMsgRpcGetCanMode(const CpCanMsg_ts *ptsCanMsgV)
Get CAN controller mode via RPC.
CpMsgSetOverrun
void CpMsgSetOverrun(CpCanMsg_ts *ptsCanMsgV)
Set Overrun bit.
CpHdi_s::slDatBitRate
int32_t slDatBitRate
Definition: canpie.h:1207
QCanFilterList
Definition: qcan_filter_list.hpp:62
QCanServer::eERROR_ACTIVE
@ eERROR_ACTIVE
Definition: qcan_server.hpp:100
eCP_BITRATE_2M
@ eCP_BITRATE_2M
Definition: canpie.h:691
eCP_MODE_SELF_TEST
@ eCP_MODE_SELF_TEST
Definition: canpie.h:792
CpHdi_s::ubDriverFeatures
uint8_t ubDriverFeatures
Definition: canpie.h:1148
CpFifo_s::ulIndexMax
uint32_t ulIndexMax
Definition: cp_fifo.h:101
QCanNetwork::nominalBitrate
int32_t nominalBitrate(void)
Definition: qcan_network.hpp:150
eCP_RPC_NOOP
@ eCP_RPC_NOOP
Definition: canpie.h:956
QCanTimeStamp::operator>=
bool operator>=(const QCanTimeStamp &clTimeStampR) const
CpErr_e
CpErr_e
CANpie Error codes.
Definition: canpie.h:477
eCP_ERR_CAN_MESSAGE
@ eCP_ERR_CAN_MESSAGE
Definition: canpie.h:518
eCP_ERR_RCV_EMPTY
@ eCP_ERR_RCV_EMPTY
Definition: canpie.h:506
CpMsgRpcSetCanMode
void CpMsgRpcSetCanMode(CpCanMsg_ts *ptsCanMsgV, uint8_t ubModeV)
Set state of CAN controller via RPC.
QCanSocket::disconnectNetwork
void disconnectNetwork(void)
QCanFrame::eERROR_TYPE_CRC
@ eERROR_TYPE_CRC
Definition: qcan_frame.hpp:193
QCan::eCAN_BITRATE_125K
@ eCAN_BITRATE_125K
Definition: qcan_namespace.hpp:90
eCP_ERR_BUS_OFF
@ eCP_ERR_BUS_OFF
Definition: canpie.h:554
QCan::eCAN_CHANNEL_1
@ eCAN_CHANNEL_1
Definition: qcan_namespace.hpp:151
QCanFilter::match
bool match(const QCanFrame &clFrameR) const
CpHdi_s::ubCanFeatures
uint8_t ubCanFeatures
Definition: canpie.h:1132
QCanSocketDialog::peerAddress
QHostAddress peerAddress() const
CpCoreBufferSetData
CpStatus_tv CpCoreBufferSetData(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubSrcDataV, uint8_t ubStartPosV, uint8_t ubSizeV)
Set data of message buffer.
CpTime_s::ulNanoSec
uint32_t ulNanoSec
Definition: canpie.h:989
CpBufferDir_e
CpBufferDir_e
Buffer direction definition.
Definition: canpie.h:933
eCP_BITRATE_10K
@ eCP_BITRATE_10K
Definition: canpie.h:646
eCP_STATE_PHY_L
@ eCP_STATE_PHY_L
Definition: canpie.h:851
QCan::eLOG_LEVEL_INFO
@ eLOG_LEVEL_INFO
Definition: qcan_namespace.hpp:279
eCP_MODE_LISTEN_ONLY
@ eCP_MODE_LISTEN_ONLY
Definition: canpie.h:784
CpHdi_s::ubReserved
uint8_t ubReserved[1]
Definition: canpie.h:1169
eCP_CHANNEL_2
@ eCP_CHANNEL_2
Definition: canpie.h:734
QCan::eCAN_MODE_SELF_TEST
@ eCAN_MODE_SELF_TEST
Definition: qcan_namespace.hpp:208
QCanNetwork::dataBitrate
int32_t dataBitrate(void)
Definition: qcan_network.hpp:176
CpCoreStatistic
CpStatus_tv CpCoreStatistic(CpPort_ts *ptsPortV, CpStatistic_ts *ptsStatsV)
Read CAN controller statistics.
QCanSocketDialog::setChannel
void setChannel(const CAN_Channel_e teChannelV)
QCanTimeStamp
CAN frame time-stamp.
Definition: qcan_timestamp.hpp:96
QCanTimeStamp::seconds
uint32_t seconds(void) const
Definition: qcan_timestamp.hpp:176
CpCoreBufferSend
CpStatus_tv CpCoreBufferSend(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Send message from message buffer.
CpMsgGetTime
CpTime_ts * CpMsgGetTime(CpCanMsg_ts *ptsCanMsgV)
Get time-stamp value.
QCanTimeStamp::operator-
QCanTimeStamp operator-(const QCanTimeStamp &clTimeStampR) const
QCanServer
Definition: qcan_server.hpp:65
QCanTimeStamp::operator<=
bool operator<=(const QCanTimeStamp &clTimeStampR) const
CpState_s::ubCanErrState
uint8_t ubCanErrState
Definition: canpie.h:1250
CpHdi_s::ulCanClock
uint32_t ulCanClock
Definition: canpie.h:1179
QCan::eCAN_STATE_BUS_WARN
@ eCAN_STATE_BUS_WARN
Definition: qcan_namespace.hpp:240
QCanSocket::errorString
QString errorString() const
CpMsgSetBitrateSwitch
void CpMsgSetBitrateSwitch(CpCanMsg_ts *ptsCanMsgV)
Set bit-rate switch.
CpMsgRpcGetDataBitrate
int32_t CpMsgRpcGetDataBitrate(const CpCanMsg_ts *ptsCanMsgV)
Get Data Bit Timing selection via RPC.
QCanInterface::eERROR_NONE
@ eERROR_NONE
Definition: qcan_interface.hpp:89
QCan::eCAN_CHANNEL_4
@ eCAN_CHANNEL_4
Definition: qcan_namespace.hpp:160
CpFifoDataInPtr
CpCanMsg_ts * CpFifoDataInPtr(CpFifo_ts *ptsFifoV)
eCP_ERR_TYPE_BIT1
@ eCP_ERR_TYPE_BIT1
Definition: canpie.h:872
QCan::CAN_Channel_e
CAN_Channel_e
Definition: qcan_namespace.hpp:145
QCan::eLOG_LEVEL_DEBUG
@ eLOG_LEVEL_DEBUG
Definition: qcan_namespace.hpp:282
QCanFrame::setTimeStamp
void setTimeStamp(const QCanTimeStamp &clTimeStampR)
Definition: qcan_frame.hpp:719
QCanFrame::ErrorType_e
ErrorType_e
Definition: qcan_frame.hpp:175
eCP_ERR_RCV_OVERRUN
@ eCP_ERR_RCV_OVERRUN
Definition: canpie.h:510
eCP_ERR_GENERIC
@ eCP_ERR_GENERIC
Definition: canpie.h:486
QCanFrameList::QCanFrameList
QCanFrameList()
QCan::CAN_State_e
CAN_State_e
Definition: qcan_namespace.hpp:218
eCP_ERR_CAN_DLC
@ eCP_ERR_CAN_DLC
Definition: canpie.h:526
CpCoreBufferSetDlc
CpStatus_tv CpCoreBufferSetDlc(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t ubDlcV)
Set DLC of specified buffer.
QCanFrame::eERROR_TYPE_BIT1
@ eERROR_TYPE_BIT1
Definition: qcan_frame.hpp:184
QCanSocket::disconnected
void disconnected(void)
CpMsgGetIdentifier
uint32_t CpMsgGetIdentifier(const CpCanMsg_ts *ptsCanMsgV)
Get Identifier Value.
QCanNetwork
CAN network representation.
Definition: qcan_network.hpp:90
CpCoreBufferGetData
CpStatus_tv CpCoreBufferGetData(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubDestDataV, uint8_t ubStartPosV, uint8_t ubSizeV)
Get data from message buffer.
CpCoreFifoConfig
CpStatus_tv CpCoreFifoConfig(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpFifo_ts *ptsFifoV)
Assign FIFO to message buffer.
QCanInterface::ConnectedState
@ ConnectedState
Definition: qcan_interface.hpp:123
CpBuffer_e
CpBuffer_e
Buffer definition.
Definition: canpie.h:895
CpMsgIsFdFrame
bool_t CpMsgIsFdFrame(const CpCanMsg_ts *ptsCanMsgV)
Check for CAN FD frame.
CpHdi_s::ulBitRateMax
uint32_t ulBitRateMax
Definition: canpie.h:1193
CpCoreBufferRelease
CpStatus_tv CpCoreBufferRelease(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Release message buffer.
QCanServer::network
QCanNetwork * network(uint8_t ubNetworkIndexV)
CpCanMsg_s::tuMsgData
union CpCanMsg_s::@0 tuMsgData
QCanSocket::framesAvailable
int32_t framesAvailable(void) const
QCanFilterList::isEmpty
bool isEmpty(void)
CpMsgIsBitrateSwitchSet
bool_t CpMsgIsBitrateSwitchSet(const CpCanMsg_ts *ptsCanMsgV)
Check for bit-rate.
QCan::eCAN_BITRATE_2M
@ eCAN_BITRATE_2M
Definition: qcan_namespace.hpp:115
QCanServer::QCanServer
QCanServer(QObject *pclParentV=Q_NULLPTR, uint16_t uwPortNumberV=QCAN_WEB_SOCKET_DEFAULT_PORT, uint8_t ubNetworkNumV=QCAN_NETWORK_MAX, bool btClearServerV=false)
QCanFrame::eERROR_TYPE_BIT0
@ eERROR_TYPE_BIT0
Definition: qcan_frame.hpp:181
eCP_ERR_BUS_PASSIVE
@ eCP_ERR_BUS_PASSIVE
Definition: canpie.h:550
QCanServer::eERROR_NONE
@ eERROR_NONE
Definition: qcan_server.hpp:94
CpCoreCanMode
CpStatus_tv CpCoreCanMode(CpPort_ts *ptsPortV, uint8_t ubModeV)
Set state of CAN controller.
CpFifoIsFull
bool_t CpFifoIsFull(CpFifo_ts *ptsFifoV)
QCanTimeStamp::operator+
QCanTimeStamp operator+(const QCanTimeStamp &clTimeStampR) const
QCanServer::setServerAddress
void setServerAddress(const QHostAddress clHostAddressV, const uint16_t uwPortV=QCAN_WEB_SOCKET_DEFAULT_PORT)
eCP_CHANNEL_6
@ eCP_CHANNEL_6
Definition: canpie.h:746
QCAN_NETWORK_MAX
#define QCAN_NETWORK_MAX
Maximum number of networks.
Definition: qcan_defs.hpp:95
CpMsgGetExtId
uint32_t CpMsgGetExtId(const CpCanMsg_ts *ptsCanMsgV)
Get 29 Bit Identifier Value.
QCanSocket::connected
void connected(void)
QCanServerLoggerView::QCanServerLoggerView
QCanServerLoggerView(QCanServer *pclServerV=Q_NULLPTR)
CpMsgSizeToDlc
uint8_t CpMsgSizeToDlc(uint8_t ubSizeV)
Convert CAN payload size to DLC.
CpHdi_s::ubDriverMajor
uint8_t ubDriverMajor
Definition: canpie.h:1159
QCan::eLOG_LEVEL_TRACE
@ eLOG_LEVEL_TRACE
Definition: qcan_namespace.hpp:285
QCanSocket::QCanSocket
QCanSocket(QObject *pclParentV=Q_NULLPTR)
QCan::eCAN_BITRATE_1M
@ eCAN_BITRATE_1M
Definition: qcan_namespace.hpp:110
CpMsgSetExtId
void CpMsgSetExtId(CpCanMsg_ts *ptsCanMsgV, uint32_t ulExtIdV)
Set 29 Bit Identifier Value.
CpHdi_s::ubVersionMajor
uint8_t ubVersionMajor
Definition: canpie.h:1111
eCP_ERR_REGISTER
@ eCP_ERR_REGISTER
Definition: canpie.h:567
QCanServerLoggerView
Definition: qcan_server_logger_view.hpp:55
CpMsgRpcSetBitrate
void CpMsgRpcSetBitrate(CpCanMsg_ts *ptsCanMsgV, int32_t slNomBitRateV, int32_t slDatBitRateV)
Set bit-rate of CAN controller via RPC.
eCP_BUFFER_DIR_RCV
@ eCP_BUFFER_DIR_RCV
Definition: canpie.h:937
eCP_STATE_SLEEPING
@ eCP_STATE_SLEEPING
Definition: canpie.h:816
CpCoreDriverInit
CpStatus_tv CpCoreDriverInit(uint8_t ubPhyIfV, CpPort_ts *ptsPortV, uint8_t ubConfigV)
Initialise the CAN driver.
eCP_CHANNEL_NONE
@ eCP_CHANNEL_NONE
Definition: canpie.h:728
QCanFilter::eFILTER_ACCEPT
@ eFILTER_ACCEPT
Definition: qcan_filter.hpp:73
QCanNetworkSettings
Definition: qcan_network_settings.hpp:58
eCP_ERR_TYPE_BIT0
@ eCP_ERR_TYPE_BIT0
Definition: canpie.h:869
QCanServer::maximumNetwork
uint8_t maximumNetwork(void) const
CpMsgGetDlc
uint8_t CpMsgGetDlc(const CpCanMsg_ts *ptsCanMsgV)
Get Data Length Code.
eCP_CHANNEL_1
@ eCP_CHANNEL_1
Definition: canpie.h:731
CpHdi_s::ubBufferMax
uint8_t ubBufferMax
Definition: canpie.h:1154
QCanFrame::eFORMAT_CAN_EXT
@ eFORMAT_CAN_EXT
Definition: qcan_frame.hpp:211
QCanFrame::timeStamp
QCanTimeStamp timeStamp(void) const
Definition: qcan_frame.hpp:729
QCanTimeStamp::fromMicroSeconds
void fromMicroSeconds(uint32_t ulMicroSecondsV)
QCanFilterList::filter
bool filter(const QCanFrame &clFrameR) const
eCP_MODE_INIT
@ eCP_MODE_INIT
Definition: canpie.h:771
QCanTimeStamp::operator-=
QCanTimeStamp & operator-=(const QCanTimeStamp &clTimeStampR)
eCP_STATE_INIT
@ eCP_STATE_INIT
Definition: canpie.h:809
QCanSocketCpFD::CpCoreBufferRelease
friend CpStatus_tv CpCoreBufferRelease(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Release message buffer.
QCanTimeStamp::operator!=
bool operator!=(const QCanTimeStamp &clTimeStampR) const
QCan::LogLevel_e
LogLevel_e
Definition: qcan_namespace.hpp:261
QCan::eCAN_BITRATE_5M
@ eCAN_BITRATE_5M
Definition: qcan_namespace.hpp:125
QCanPlugin::interfaceCount
virtual uint8_t interfaceCount(void)=0
CpMode_e
CpMode_e
Mode of CAN controller.
Definition: canpie.h:766
CpMsgInit
void CpMsgInit(CpCanMsg_ts *ptsCanMsgV, uint8_t ubFormatV)
Initialise message structure.
eCP_CHANNEL_8
@ eCP_CHANNEL_8
Definition: canpie.h:752
eCP_ERR_TYPE_NONE
@ eCP_ERR_TYPE_NONE
Definition: canpie.h:866
QCanFrameList
Definition: qcan_frame_list.hpp:57
QCan::eLOG_LEVEL_WARN
@ eLOG_LEVEL_WARN
Definition: qcan_namespace.hpp:276
CP_DATA_SIZE
#define CP_DATA_SIZE
Definition: canpie.h:460
QCan::eCAN_BITRATE_4M
@ eCAN_BITRATE_4M
Definition: qcan_namespace.hpp:120
QCanServerLogger
Definition: qcan_server_logger.hpp:60
CpMsgGetStdId
uint16_t CpMsgGetStdId(const CpCanMsg_ts *ptsCanMsgV)
Get 11 Bit Identifier Value.
QCanNetwork::isFlexibleDataEnabled
bool isFlexibleDataEnabled(void)
Definition: qcan_network.hpp:269
canpie.h
CANpie constants, structures and enumerations
QCan::eCAN_BITRATE_10K
@ eCAN_BITRATE_10K
Definition: qcan_namespace.hpp:70
CpStatistic_s::ulTrmMsgCount
uint32_t ulTrmMsgCount
Definition: canpie.h:1227
QCanSocketDialog::setHostAddress
void setHostAddress(const QHostAddress clHostAddressV)
QCan::eCAN_BITRATE_800K
@ eCAN_BITRATE_800K
Definition: qcan_namespace.hpp:105
eCP_BITRATE_4M
@ eCP_BITRATE_4M
Definition: canpie.h:696
CpHdi_s::slNomBitRate
int32_t slNomBitRate
Definition: canpie.h:1200
QCan::eCAN_CHANNEL_3
@ eCAN_CHANNEL_3
Definition: qcan_namespace.hpp:157
CpCallback_e
CpCallback_e
Callback Return Codes.
Definition: canpie.h:612
QCan::eCAN_BITRATE_250K
@ eCAN_BITRATE_250K
Definition: qcan_namespace.hpp:95
QCanSocket::isConnected
bool isConnected(void) const
Definition: qcan_socket.hpp:143
QCanSocketCpFD::CpCoreBitrate
friend CpStatus_tv CpCoreBitrate(CpPort_ts *ptsPortV, int32_t slNomBitRateV, int32_t slDatBitRateV)
Set bit-rate of CAN controller.
CpMsgIsExtended
bool_t CpMsgIsExtended(const CpCanMsg_ts *ptsCanMsgV)
Check for Extended CAN frame.
CpFifo_s
Administration variables of a CAN message FIFO.
Definition: cp_fifo.h:89
CpStatistic_s
CAN statistic structure.
Definition: canpie.h:1218
CpFifoFree
uint32_t CpFifoFree(CpFifo_ts *ptsFifoV)
CpMsgClear
void CpMsgClear(CpCanMsg_ts *ptsCanMsgV)
Clear message structure.
CpCoreCanState
CpStatus_tv CpCoreCanState(CpPort_ts *ptsPortV, CpState_ts *ptsStateV)
Retrieve state of CAN controller.
QCan::eCAN_BITRATE_100K
@ eCAN_BITRATE_100K
Definition: qcan_namespace.hpp:85
QCan::eCAN_BITRATE_50K
@ eCAN_BITRATE_50K
Definition: qcan_namespace.hpp:80
QCanTimeStamp::clear
void clear(void)
CpFifoDataOutPtr
CpCanMsg_ts * CpFifoDataOutPtr(CpFifo_ts *ptsFifoV)
QCanTimeStamp::setNanoSeconds
void setNanoSeconds(uint32_t ulNanoSecondsV)
CpFifoIsEmpty
bool_t CpFifoIsEmpty(CpFifo_ts *ptsFifoV)
CpHdi_s
Hardware description interface.
Definition: canpie.h:1105
QCanSocketCpFD::CpCoreBufferGetData
friend CpStatus_tv CpCoreBufferGetData(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubDestDataV, uint8_t ubStartPosV, uint8_t ubSizeV)
Get data from message buffer.
QCanFrameTrace::QCanFrameTrace
QCanFrameTrace()
eCP_CALLBACK_PUSH_FIFO
@ eCP_CALLBACK_PUSH_FIFO
Definition: canpie.h:623
QCanInterface::eERROR_FIFO_RCV_EMPTY
@ eERROR_FIFO_RCV_EMPTY
Definition: qcan_interface.hpp:103
eCP_ERR_TRM_FULL
@ eCP_ERR_TRM_FULL
Definition: canpie.h:514
CpFifoPending
uint32_t CpFifoPending(CpFifo_ts *ptsFifoV)
CpMsgClrOverrun
void CpMsgClrOverrun(CpCanMsg_ts *ptsCanMsgV)
Clear Overrun bit.
QCanServer::Error_e
Error_e
Definition: qcan_server.hpp:91
CpCoreDriverRelease
CpStatus_tv CpCoreDriverRelease(CpPort_ts *ptsPortV)
Release the CAN driver.
QCan::eCAN_CHANNEL_6
@ eCAN_CHANNEL_6
Definition: qcan_namespace.hpp:166
QCanFrameTrace
Definition: qcan_frame_trace.hpp:57
QCan::eCAN_MODE_INIT
@ eCAN_MODE_INIT
Definition: qcan_namespace.hpp:187
QCanInterface::eERROR_USED
@ eERROR_USED
Definition: qcan_interface.hpp:100
QCanInterface
CAN interface.
Definition: qcan_interface.hpp:58
eCP_ERR_TYPE_FORM
@ eCP_ERR_TYPE_FORM
Definition: canpie.h:878
eCP_ERR_FIFO_FULL
@ eCP_ERR_FIFO_FULL
Definition: canpie.h:538
CpState_s::ubCanErrType
uint8_t ubCanErrType
Definition: canpie.h:1255
QCanSocketCpFD::CpCoreFifoRead
friend CpStatus_tv CpCoreFifoRead(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpCanMsg_ts *ptsCanMsgV, uint32_t *pulMsgCntV)
Read a CAN message from FIFO.
CpBitrate_e
CpBitrate_e
Fixed bit-rates.
Definition: canpie.h:635
CpCanMsg_s
CAN message structure.
Definition: canpie.h:1003
QCanTimeStamp::QCanTimeStamp
QCanTimeStamp(uint32_t ulSecondsV=0, uint32_t ulNanoSecondsV=0)
QCanServer::allowBitrateChange
void allowBitrateChange(bool btEnabledV=true)
eCP_STATE_PHY_H
@ eCP_STATE_PHY_H
Definition: canpie.h:846
eCP_MODE_OPERATION
@ eCP_MODE_OPERATION
Definition: canpie.h:778
QCanSocket::setHostAddress
void setHostAddress(const QHostAddress clHostAddressV, const uint16_t uwPortV=QCAN_WEB_SOCKET_DEFAULT_PORT)
CpStatistic_s::ulRcvMsgCount
uint32_t ulRcvMsgCount
Definition: canpie.h:1223
CpMsgIsRemote
bool_t CpMsgIsRemote(const CpCanMsg_ts *ptsCanMsgV)
Check for remote frame.
eCP_BITRATE_100K
@ eCP_BITRATE_100K
Definition: canpie.h:661
CpMsgIsOverrun
bool_t CpMsgIsOverrun(const CpCanMsg_ts *ptsCanMsgV)
Check for message overrun.
QCanNetwork::isNetworkEnabled
bool isNetworkEnabled(void)
Definition: qcan_network.hpp:290
QCanSocketDialog
CAN socket dialog.
Definition: qcan_socket_dialog.hpp:86
QCanPlugin::icon
virtual QIcon icon(void)=0
eCP_STATE_PHY_FAULT
@ eCP_STATE_PHY_FAULT
Definition: canpie.h:841
QCan::eCAN_MODE_OPERATION
@ eCAN_MODE_OPERATION
Definition: qcan_namespace.hpp:194
eCP_RPC_MODE
@ eCP_RPC_MODE
Definition: canpie.h:959
QCanFilter
Definition: qcan_filter.hpp:57
QCan::eLOG_LEVEL_ALL
@ eLOG_LEVEL_ALL
Definition: qcan_namespace.hpp:288
QCanFilter::eFILTER_REJECT
@ eFILTER_REJECT
Definition: qcan_filter.hpp:76
QCan::eCAN_STATE_SLEEPING
@ eCAN_STATE_SLEEPING
Definition: qcan_namespace.hpp:228
CpHdi_s::ubDriverMinor
uint8_t ubDriverMinor
Definition: canpie.h:1164
QCanTimeStamp::fromMilliSeconds
void fromMilliSeconds(uint32_t ulMilliSecondsV)
QCanTimeStamp::operator+=
QCanTimeStamp & operator+=(const QCanTimeStamp &clTimeStampR)
eCP_ERR_PARAM
@ eCP_ERR_PARAM
Definition: canpie.h:579
QCan::eCAN_STATE_BUS_OFF
@ eCAN_STATE_BUS_OFF
Definition: qcan_namespace.hpp:250
CpErrType_e
CpErrType_e
Error type.
Definition: canpie.h:862
QCanNetwork::frameCountError
uint32_t frameCountError(void)
Definition: qcan_network.hpp:209
eCP_RPC_BITRATE
@ eCP_RPC_BITRATE
Definition: canpie.h:962
CpCoreFifoWrite
CpStatus_tv CpCoreFifoWrite(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, CpCanMsg_ts *ptsCanMsgV, uint32_t *pulMsgCntV)
Transmit a CAN message.
CpMsgSetRemote
void CpMsgSetRemote(CpCanMsg_ts *ptsCanMsgV)
Set RTR bit.
QCan::CAN_Mode_e
CAN_Mode_e
Definition: qcan_namespace.hpp:183
eCP_BITRATE_AUTO
@ eCP_BITRATE_AUTO
Definition: canpie.h:708
QCan::eCAN_STATE_STOPPED
@ eCAN_STATE_STOPPED
Definition: qcan_namespace.hpp:222
CpFifo_s::ptsCanMsg
CpCanMsg_ts * ptsCanMsg
Definition: cp_fifo.h:112
QCanFilterList::appendFilter
int32_t appendFilter(const QCanFilter &clFilterR)
QCan::eLOG_LEVEL_FATAL
@ eLOG_LEVEL_FATAL
Definition: qcan_namespace.hpp:267
eCP_BUFFER_3
@ eCP_BUFFER_3
Definition: canpie.h:904
CpMsgIsRpc
bool_t CpMsgIsRpc(const CpCanMsg_ts *ptsCanMsgV)
Check for Remote Procedure Call.
CpFifoInit
void CpFifoInit(CpFifo_ts *ptsFifoV, CpCanMsg_ts *ptsCanMsgV, uint32_t ulSizeV)
QCan::eCAN_CHANNEL_7
@ eCAN_CHANNEL_7
Definition: qcan_namespace.hpp:169
QCanTimeStamp::nanoSeconds
uint32_t nanoSeconds(void) const
Definition: qcan_timestamp.hpp:155
eCP_BITRATE_20K
@ eCP_BITRATE_20K
Definition: canpie.h:651
eCP_ERR_BUFFER
@ eCP_ERR_BUFFER
Definition: canpie.h:575
CpMsgDlcToSize
uint8_t CpMsgDlcToSize(const uint8_t ubDlcV)
Convert DLC to payload size.
QCanSocket::uuidString
QString uuidString(void) const
Definition: qcan_socket.hpp:195
CpMsgSetDlc
void CpMsgSetDlc(CpCanMsg_ts *ptsCanMsgV, uint8_t ubDlcV)
Set Data Length Code.
QCAN_WEB_SOCKET_DEFAULT_PORT
#define QCAN_WEB_SOCKET_DEFAULT_PORT
Default port for WebSocket server.
Definition: qcan_defs.hpp:64
CP_BUFFER_MAX
#define CP_BUFFER_MAX
Definition: canpie.h:135
eCP_BUFFER_2
@ eCP_BUFFER_2
Definition: canpie.h:901
QCanSocket::readyRead
void readyRead(void)
CpCoreHDI
CpStatus_tv CpCoreHDI(CpPort_ts *ptsPortV, CpHdi_ts *ptsHdiV)
Get hardware description information.
QCanInterface::eERROR_BITRATE
@ eERROR_BITRATE
Definition: qcan_interface.hpp:94
QCanTimeStamp::operator<
bool operator<(const QCanTimeStamp &clTimeStampR) const
eCP_BITRATE_5M
@ eCP_BITRATE_5M
Definition: canpie.h:701
CpTime_s
CAN time structure.
Definition: canpie.h:979
QCanSocket::write
bool write(const QCanFrame &clFrameR)
QCan::eCAN_BITRATE_500K
@ eCAN_BITRATE_500K
Definition: qcan_namespace.hpp:100
QCanNetwork::isErrorFrameEnabled
bool isErrorFrameEnabled(void)
Definition: qcan_network.hpp:258
eCP_BUFFER_DIR_TRM
@ eCP_BUFFER_DIR_TRM
Definition: canpie.h:940
QCanNetwork::isListenOnlyEnabled
bool isListenOnlyEnabled(void)
Definition: qcan_network.hpp:280
CpMsgSetIdentifier
void CpMsgSetIdentifier(CpCanMsg_ts *ptsCanMsgV, uint32_t ulIdentifierV)
Set Identifier Value.
QCanServerSettings
Definition: qcan_server_settings.hpp:81
QCanSocketCpFD::CpCoreCanState
friend CpStatus_tv CpCoreCanState(CpPort_ts *ptsPortV, CpState_ts *ptsStateV)
Retrieve state of CAN controller.
CpCoreFifoRelease
CpStatus_tv CpCoreFifoRelease(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Release FIFO from message buffer.
QCanPlugin
CAN plug-in representation.
Definition: qcan_plugin.hpp:57
QCanInterface::InterfaceError_e
InterfaceError_e
Definition: qcan_interface.hpp:76
eCP_ERR_TYPE_CRC
@ eCP_ERR_TYPE_CRC
Definition: canpie.h:881
CpChannel_e
CpChannel_e
Channel definition.
Definition: canpie.h:724
QCanFrame::eFRAME_TYPE_DATA
@ eFRAME_TYPE_DATA
Definition: qcan_frame.hpp:233
CpFifoIncIn
void CpFifoIncIn(CpFifo_ts *ptsFifoV)
QCanSocketCpFD::CpCoreHDI
friend CpStatus_tv CpCoreHDI(CpPort_ts *ptsPortV, CpHdi_ts *ptsHdiV)
Get hardware description information.
CpState_s::ubCanTrmErrCnt
uint8_t ubCanTrmErrCnt
Definition: canpie.h:1263
QCanInterface::ClosingState
@ ClosingState
Definition: qcan_interface.hpp:126
QCanSocketCpFD::CpCoreBufferSend
friend CpStatus_tv CpCoreBufferSend(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV)
Send message from message buffer.
CpCanMsg_s::auwWord
uint16_t auwWord[CP_DATA_SIZE/2]
Definition: canpie.h:1026
eCP_ERR_BUS_WARNING
@ eCP_ERR_BUS_WARNING
Definition: canpie.h:558
eCP_STATE_BUS_OFF
@ eCP_STATE_BUS_OFF
Definition: canpie.h:836
qcan_defs.hpp
Global QCan definitions.
eCP_CHANNEL_3
@ eCP_CHANNEL_3
Definition: canpie.h:737
CpMsgSetStdId
void CpMsgSetStdId(CpCanMsg_ts *ptsCanMsgV, uint16_t uwStdIdV)
Set 11 Bit Identifier Value.
CpCanMsg_s::aubByte
uint8_t aubByte[CP_DATA_SIZE]
Definition: canpie.h:1023
eCP_BITRATE_250K
@ eCP_BITRATE_250K
Definition: canpie.h:671
QCanFrame::eERROR_TYPE_STUFF
@ eERROR_TYPE_STUFF
Definition: qcan_frame.hpp:187
QCanSocketCpFD::CpCoreDriverRelease
friend CpStatus_tv CpCoreDriverRelease(CpPort_ts *ptsPortV)
Release the CAN driver.
QCanFilter::FilterType_e
FilterType_e
Definition: qcan_filter.hpp:68
QCanSocketCpFD::CpCoreCanMode
friend CpStatus_tv CpCoreCanMode(CpPort_ts *ptsPortV, uint8_t ubModeV)
Set state of CAN controller.
eCP_ERR_FIFO_SIZE
@ eCP_ERR_FIFO_SIZE
Definition: canpie.h:542
CpMsgSetData
void CpMsgSetData(CpCanMsg_ts *ptsCanMsgV, uint8_t ubPosV, uint8_t ubValueV)
Set Data.
QCanTimeStamp::setSeconds
void setSeconds(const uint32_t ulSecondsV)
QCan::eCAN_CHANNEL_NONE
@ eCAN_CHANNEL_NONE
Definition: qcan_namespace.hpp:148
QCanNetwork::frameCount
uint32_t frameCount(void)
Definition: qcan_network.hpp:199
eCP_STATE_BUS_PASSIVE
@ eCP_STATE_BUS_PASSIVE
Definition: canpie.h:831
eCP_CHANNEL_5
@ eCP_CHANNEL_5
Definition: canpie.h:743
eCP_ERR_BITRATE
@ eCP_ERR_BITRATE
Definition: canpie.h:571
CpHdi_s::ulBitRateMin
uint32_t ulBitRateMin
Definition: canpie.h:1186
QCanInterface::ConnectingState
@ ConnectingState
Definition: qcan_interface.hpp:120
CpFifo_s::ulIndexOut
uint32_t ulIndexOut
Definition: cp_fifo.h:97
QCanPlugin::getInterface
virtual QCanInterface * getInterface(uint8_t ubInterfaceV=0)=0
QCanFilter::acceptFrame
bool acceptFrame(const QCanFrame::FrameFormat_e &teFormatR, const uint32_t ulIdentifierLowV, const uint32_t ulIdentifierHighV)
qcan_timestamp.hpp
cp_fifo.h
CANpie FIFO functions.
QCanTimeStamp::isValid
bool isValid(void)
QCan::eLOG_LEVEL_ERROR
@ eLOG_LEVEL_ERROR
Definition: qcan_namespace.hpp:270
CpState_e
CpState_e
State of CAN controller.
Definition: canpie.h:804
eCP_CHANNEL_4
@ eCP_CHANNEL_4
Definition: canpie.h:740
eCP_BUFFER_16
@ eCP_BUFFER_16
Definition: canpie.h:919
QCanServerSettings::State_e
State_e
Definition: qcan_server_settings.hpp:102
CpCoreBufferGetDlc
CpStatus_tv CpCoreBufferGetDlc(CpPort_ts *ptsPortV, uint8_t ubBufferIdxV, uint8_t *pubDlcV)
Get DLC of specified buffer.
CpHdi_s::ubVersionMinor
uint8_t ubVersionMinor
Definition: canpie.h:1116
eCP_ERR_INIT_FAIL
@ eCP_ERR_INIT_FAIL
Definition: canpie.h:494
QCanSocketCpFD
Definition: qcan_socket_canpie_fd.hpp:55
CpCanMsg_s::ubMsgCtrl
uint8_t ubMsgCtrl
Definition: canpie.h:1061
QCanSocketCpFD::CpCoreDriverInit
friend CpStatus_tv CpCoreDriverInit(uint8_t ubPhyIfV, CpPort_ts *ptsPortV, uint8_t ubConfigV)
Initialise the CAN driver.
CpStatistic_s::ulErrMsgCount
uint32_t ulErrMsgCount
Definition: canpie.h:1231