CANopen FD Master Library
Making your systems precise, reliable and high-quality - 5.10.01
|
The QCoEvent class provides a simple way to send a Qt signal when an event handler is called by the CANopen FD Master library. The QCoEvent class has only one single instance, the QCoEvent object is available from instance().
The following code snippet defines a class MyCoMaster, defining slots for handling of EMCY and LSS events.
The signals of the QCoEvent instance are connected to thier corresponding slots by the connectEvents() method.
Inherits QObject.
Signals | |
void | comEmcyConsEventReceive (uint8_t ubNetV, uint8_t ubNodeIdV) |
void | comLssEventReceive (uint8_t ubNetV, uint8_t ubLssProtocolV) |
void | comMgrEventBus (uint8_t ubNetV, CpState_ts *ptsBusStateV) |
void | comNmtEventActiveMaster (uint8_t ubNetV, uint8_t ubPriorityV, uint8_t ubNodeIdV) |
void | comNmtEventHeartbeat (uint8_t ubNetV, uint8_t ubNodeIdV) |
void | comNmtEventIdCollision (uint8_t ubNetV) |
void | comNmtEventMasterDetection (uint8_t ubNetV, uint8_t ubResultV) |
void | comNmtEventStateChange (uint8_t ubNetV, uint8_t ubNodeIdV, uint8_t ubNmtEventV) |
void | comPdoEventReceive (uint8_t ubNetV, uint16_t uwPdoNumV) |
void | comPdoEventTimeout (uint8_t ubNetV, uint16_t uwPdoNumV) |
void | comSdoEventObjectReady (uint8_t ubNetV, uint8_t ubNodeIdV, CoObject_ts *ptsCoObjV, uint32_t *pulAbortV) |
void | comSdoEventProgress (uint8_t ubNetV, uint8_t ubNodeIdV, uint16_t uwIndexV, uint8_t ubSubIndexV, uint32_t ulByteCntV) |
void | comSdoEventTimeout (uint8_t ubNetV, uint8_t ubNodeIdV, uint16_t uwIndexV, uint8_t ubSubIndexV) |
Static Public Member Functions | |
static QCoEvent * | instance () |
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
This signal is emitted upon reception of an EMCY message.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubLssProtocolV | - LSS protocol |
This signal is emitted upon an LSS response message issued by a LSS slave device.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ptsBusStateV | - pointer to CpState_ts value of CAN bus |
This signal is emitted upon a CAN-bus state change.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubPriorityV | - LSS protocol |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
This signal is emitted to indicate a NMT active master device.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
This signal is emitted to indicate a NMT heartbeat event.
|
signal |
[in] | ubNetV | - CANopen Network channel |
This signal is emitted to indicate an identifier collision.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubResultV | - Result of NMT master detection |
This signal is emitted to indicate the result on a NMT master detection procedure.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
[in] | ubNmtEventV | - New NMT state |
This signal is emitted to indicate a NMT state change of a CANopen slave device.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | uwPdoNumV | - PDO number |
This signal is emitted after reception of a PDO.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | uwPdoNumV | - PDO number |
This signal is emitted in case of a time-out condition for a Receive PDO.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
[in] | ptsCoObjV | - Pointer to object structure |
[in] | pulAbortV | - Pointer to SDO abort code |
This signal is emitted to indicate the end of a SDO transfer.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
[in] | uwIndexV | - Object index value |
[in] | ubSubIndexV | - Object sub-index value |
[in] | ulByteCntV | - Byte counter value |
This signal is emitted to indicate the progress of a SDO block upload or download process.
|
signal |
[in] | ubNetV | - CANopen Network channel |
[in] | ubNodeIdV | - Node-ID value of CANopen device |
[in] | uwIndexV | - Object index value |
[in] | ubSubIndexV | - Object sub-index value |
This signal is emitted to indicate a time-out condition for a SDO transfer.