Macro function which simplifies file setup process and file type assigning function.
More...
|
#define | IOT_FILE_STATIC_INIT(p_iot_file, p_file_name, p_mem, size) |
| This macro function configures passed file as a static buffer file. More...
|
|
Macro function which simplifies file setup process and file type assigning function.
#define IOT_FILE_STATIC_INIT |
( |
|
p_iot_file, |
|
|
|
p_file_name, |
|
|
|
p_mem, |
|
|
|
size |
|
) |
| |
Value:do { \
(p_iot_file)->p_filename = p_file_name; \
(p_iot_file)->cursor = IOT_FILE_INVALID_CURSOR; \
(p_iot_file)->p_buffer = p_mem; \
(p_iot_file)->buffer_size = size; \
(p_iot_file)->file_size = 0; \
(p_iot_file)->p_callback = NULL; \
iot_file_static_assign(p_iot_file); \
} while (0)
This macro function configures passed file as a static buffer file.