2.4.9 CAN_TP_MaxFrameLengthSet()

bool CAN_TP_MaxFrameLengthSet (uint8_t newMax)

Sets the maximum CAN frame allowed.

Default will be the CAN_TP_TRANSMISSION_DATA_LENGTH_MAX configuration option if specified.  

It will be 8 otherwise.  

Valid options are 8 for CAN Classic and 12, 16,20, 24, 32, 48 or 64 for CAN-FD.

Precondition:

CAN_TP_Initialize function should have been called before calling this function.

Parameters:
in newMax

Desired maximum CAN frame length allowed.

Returns:

bool - if the requested max is set.