nRF5 IoT SDK v0.9.0
Macros | Functions
IoT file port for static buffers

Macro function which simplifies file setup process and file type assigning function. More...

Macros

#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...
 

Functions

void iot_file_static_assign (iot_file_t *p_file)
 This function is used to assign correct callbacks and file type to passed IoT File instance.
 

Detailed Description

Macro function which simplifies file setup process and file type assigning function.

Macro Definition Documentation

#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.


This document was last updated on Tue Dec 1 2015.
Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone.