| lt_ret_t lt_l2_transfer | ( | lt_l2_state_t * | s2 | ) |
This function combines lt_l2_send and lt_l2_receive with additional handling of retrying the transfer: resending outgoing frames on LT_L2_CRC_ERR errors and sending Resend_Req on LT_L2_IN_CRC_ERR errors when an invalid incoming CRC is detected.
| s2 | Structure holding l2 state |
| LT_OK | Function executed successfully |
| other | Function did not execute successfully |