Hi,
yes, you are right.
Can_Write checks TX MB if it is free to send data, if yes fills TX MB with data and transmit is initiated.
Can_MainFunction_Write performs the polling of TX confirmation when CAN_TX_PROCESSING is set to POLLING. It checks MB flag if message was transmitted successfully or not, if yes updates driver variable and calls TXconfirmation.
BR, Petr