DlnBootWrite() Function

The DlnBootWrite() function writes new firmware into the device internal memory. This function is only available, when the device functions in the Bootloader mode. This function is defined in the dln_boot.h file.

Syntax
C/C++
DLN_RESULT DlnBootWrite(
    HDLN handle,
    uint32_t memory,
    uint32_t address,
    uint16_t size,
    uint8_t* buffer
 );
Parameters
handle

A handle to the DLN-series adapter.

memory

Memory type value. Available only DLN_BOOT_MEM_FLASH value.

address

The address to start writing from.

size

The size of the firmware.

buffer

Buffer with the firmware data.

Return Value
DLN_RES_SUCCESS

The number of flash panes was successfully retrieved.