4.6.2 Functions

  • static void DeviceResetCheck (void)

    Checks and performs a reset when required.

  • static void ParserDataReset (void)

    Resets parser data use for command reception.

  • static bool SequenceNumberValidate (void)

    Validates the sequence number of the incoming command.

  • static void ClientInfoResponseSet (void)

    Sets the Get Client Info data in the response buffer.

  • static bl_result_t OperationalBlockExecute (void)

    Processes and executes the FTP command data received by the host.

  • static void ResponseSet (uint8_t *buffer, uint8_t *responsePayload, ftp_response_status_t responseStatus, uint8_t sequenceByte, uint16_t responsePayloadLength)

    Sets the response in the FTP process frame.

  • static uint8_t TLVAppend (uint8_t *dataBufferStart, ftp_tlv_t *tlvData)

    Appends a TLV (Type-Length-Value) structure to a data buffer.

  • static ftp_abort_code_t AbortCodeGet (bl_result_t targetStatus)

    Converts the given result codes into MDFU protocol defined data values.

  • bl_result_t FTP_Task (void)

    Acts as the main task runner of the FTP process. This function will be called in a loop to receive commands from the host and make calls to the responsible software layers to facilitate the device firmware update.

  • bl_result_t FTP_Initialize (void)

    Performs the initialization actions required to set up the FTP and dependent layers.