f3s_socket_option()

int f3s_socket_option (f3s_socket_t *socket)

Parse the driver command-line options that apply to the socket services.

Currently the following options are defined:

-s baseaddress,windowsize, arrayoffset, arraysize, unitsize, buswidth, interleave

where:

baseaddress
Base address of the socket/window.
windowsize
Size of the socket/window.
arrayoffset
Offset of window from base of devices in bytes.
arraysize
Size of array in bytes, 0 indicates unknown.
buswidth
Memory bus attached to the flash chips.
interleave
Number of physical chips interleaved to form a larger logical chip (e.g. two 16-bit chips interleaved to form a 32-bit logical chip).