/* Allows specifying size of transmit event block (in term of allocated events and block base address within CAN message RAM. Note, that there are no limitations nor checking on address provided.  */
void fdcan_init_tx_event_ram(uint32_t canport, uint32_t tesa, uint8_t tes)
/* Allows specifying size of transmit event block (in term of allocated events and block base address within CAN message RAM. Note, that there are no limitations nor checking on address provided.  */
void fdcan_init_tx_event_ram(uint32_t canport, uint32_t tesa, uint8_t tes)
{
	FDCAN_TXEFC(canport) = (FDCAN_TXEFC(canport)
		& ~(
			(FDCAN_TXEFC_EFS_MASK << FDCAN_TXEFC_EFS_SHIFT)
			| (FDCAN_TXEFC_EFSA_MASK << FDCAN_TXEFC_EFSA_SHIFT)
			))
		| (tes << FDCAN_TXEFC_EFS_SHIFT)
		| (tesa & (FDCAN_TXEFC_EFSA_MASK << FDCAN_TXEFC_EFSA_SHIFT));
}