How to send data via CAN Interface in STM32 using freertos?

I am working on a project created using CubeMX on Atollic TrueStudio. How am I supposed to send and receive data via CAN Interface. In HALCANTransmit() function doesn’t contain the data to be sent. It has only the Handler for CAN interface. Where can I give the data to be sent?? Thanks in Advance…

How to send data via CAN Interface in STM32 using freertos?

You are asking questions about functions provided by ST, not us, so suggest asking on ST’s forum (or reading the docs, or looking for examples to use as a reference).