2.2.3.2 FTP_Task()

bl_result_t FTP_Task (void )

Acts as the main task runner of the codebase. This function will be called in a loop to receive bytes from the host and make calls to the responsible software layers.

Parameters:
None.
Returns:

BL_PASS - FTP process cycle finished successfully

BL_FAIL - FTP process cycle failed unexpectedly

BL_ERROR_COMMUNICATION_FAIL - FTP process cycle failed to communicate with the host

BL_ERROR_FRAME_VALIDATION_FAIL - FTP process cycle failed at the frame check stage

BL_ERROR_BUFFER_OVERLOAD - FTP process cycle failed due to a buffer overflow

BL_ERROR_UNKNOWN_COMMAND - FTP process cycle encountered an unknown command

BL_ERROR_VERIFICATION_FAIL - FTP process cycle failed to verify the application image

BL_ERROR_COMMAND_PROCESSING - FTP process cycle failed due to a data or processing related issue

BL_ERROR_ADDRESS_OUT_OF_RANGE - FTP process cycle failed due to an incorrect address