DlnBootRead() Function

The DlnBootRead() function reads data on the DLN-series adapter current firmware.

This function is defined in the dln_boot.h file.

This function is only available, when the device operates in Bootloader mode.
Syntax
C/C++
DLN_RESULT DlnBootReadFlash(
    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

Address to start reading from.

size

Size of the data to read.

buffer

A pointer to an unsigned 8 bit integer. This integer will be filled with the firmware data after the function execution.

Return Value
DLN_RES_SUCCESS

The number of flash panes was successfully retrieved.