I searched some registers but found nothing useful，I'm not sure if there is such a register, can you describe the requirements of your function clearly, maybe I can help you in this regard.
such as when CANL and CANH short circuit together，start send a can message，it will send fail，but it will automatic retransmit ceaselessly，untill CANL and CANH not short circuit no longer, then the message send out successful.
Now, I want to the message be sended once whether successful or not.
The recovery of bus-off is somewhat different from the requirement you mentioned. I don’t think it can be achieved. What you can do is to judge whether the data you send is sent ok or not.
because of automatic retransmission，it will enter bus-off soon.but if then message be sended once, the TEC counter will not add too much to be the condition of bus-off.