TsctlCANTxDesc

From embeddedTS Manuals

Queues A CAN message for transmission with the specified flags, id, and data.

This function will block until the message is queued. For direct access there typically is only room for a single message to be queued at once, and as a result if a message is already waiting to be sent, this function will use all available CPU to poll waiting for the transmit buffer to be empty. Therefore, this function is not recommended to be used in direct mode in cases where this would be a problem.

Returns a negative value on error or a positive value on success.