CANopenNode
CO_CANmodule_t Struct Reference

Complete CAN module object. More...

#include <CO_driver.h>

Data Fields

void * CANptr
 From CO_CANmodule_init()
 
CO_CANrx_trxArray
 From CO_CANmodule_init()
 
uint16_t rxSize
 From CO_CANmodule_init()
 
CO_CANtx_ttxArray
 From CO_CANmodule_init()
 
uint16_t txSize
 From CO_CANmodule_init()
 
uint16_t CANerrorStatus
 CAN error status bitfield, see CO_CAN_ERR_status_t.
 
volatile bool_t CANnormal
 CAN module is in normal mode.
 
volatile bool_t useCANrxFilters
 Value different than zero indicates, that CAN module hardware filters are used for CAN reception. More...
 
volatile bool_t bufferInhibitFlag
 If flag is true, then message in transmit buffer is synchronous PDO message, which will be aborted, if CO_clearPendingSyncPDOs() function will be called by application. More...
 
volatile bool_t firstCANtxMessage
 Equal to 1, when the first transmitted message (bootup message) is in CAN TX buffers.
 
volatile uint16_t CANtxCount
 Number of messages in transmit buffer, which are waiting to be copied to the CAN module.
 
uint32_t errOld
 Previous state of CAN errors.
 
int32_t errinfo
 For use with CO_errinfo()
 

Detailed Description

Complete CAN module object.

Must be defined in the CO_driver_target.h file.

Usually it has the following data fields, but they may differ for different microcontrollers.

Field Documentation

◆ useCANrxFilters

volatile bool_t CO_CANmodule_t::useCANrxFilters

Value different than zero indicates, that CAN module hardware filters are used for CAN reception.

If there is not enough hardware filters, they won't be used. In this case will be all received CAN messages processed by software.

◆ bufferInhibitFlag

volatile bool_t CO_CANmodule_t::bufferInhibitFlag

If flag is true, then message in transmit buffer is synchronous PDO message, which will be aborted, if CO_clearPendingSyncPDOs() function will be called by application.

This may be necessary if Synchronous window time was expired.


The documentation for this struct was generated from the following file: