|
isCANTx_Idle |
Top Next |
|
isCANTx_Idle Is CAN bus transmission Channel in Idle? Since R2019b
Library: embeddedCreatorLib ( Dafulai Electronics) / Embedded CAN Bus / isCANTx_Idle
Description
Judge whether embedded CAN Bus transmission Channel is in "Idle" State. One CAN bus peripheral has 3 Channels ( Channel A, B, C ) for transmitting. Every channels has as many as 31 Sequences (Seq0 to Seq30). Seq0 has higher priority than Seq30. Sequences run step by step from Seq0 to Seq30. 3 Channels can transmit at the same time. Usually we assign different channel into different sample time. So we can transmit 3 groups of CAN Packets in different periods.
We do any "CAN BusTransmit " in One Channel must be under condition : Transmission Channel is in "Idle" State. When embedded CAN bus transmission channel is in "Idle" state, You can set up all sequences of transmission operations, and then this transmission channel will exit "Idle" state and operate in sequences automatically. We provide block to check if all sequences finish. In order to start new transmission operations, you must set transmission channel into "Idle" state when all sequences done.
Notes: You 'd better set up 3 CAN bus transmitting buffers if you use 3 transmission Channels in MCU Configuration software such as MPLABX IDE MCC for Microchip technology MCUs. Of cause, if you only use one or two Channels, you can setup only one or two CAN bus transmitting buffers.
Parameters
Please double click this block to open parameters dialog below:
Let us explain parameters.
Ports
Input
None
Outport
|