Get the total amount of contiguous flash
#include <sys/dcmd_f3s.h> #define DCMD_F3S_ARRAYINFO __DIOTF(_DCMD_F3S, F3S_ARRAYINFO, f3s_arrayinfo_t)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_F3S_ARRAYINFO |
dev_data_ptr | A pointer to a f3s_arrayinfo_t structure (see below) |
n_bytes | sizeof(f3s_arrayinfo_t) |
dev_info_ptr | NULL |
This command gets the total amount of contiguous flash on the entire chip or contiguous chips.
None.
A pointer to a f3s_arrayinfo_t structure, filled in by the driver:
typedef struct f3s_arrayinfo_s { uint32_t status; /* info status */ uint32_t total_size; /* total size of array expressed in bytes */ uint32_t unit_size; /* size of a chip expressed in bytes */ uint32_t chip_size; /* size of a unit expressed in bytes */ } f3s_arrayinfo_t;
devctl() in the QNX Neutrino C Library Reference