Hi,
which driver do you mean, SDK driver? If yes then for RX operation using FLEXCAN_DRV_ConfigRxMb you prepare MB for reception of given ID and with FLEXCAN_DRV_Receive you start reception into this MB. For sending message you can simply use FLEXCAN_DRV_Send with defined ID to be send.
BR, Petr