nRF5 IoT SDK v0.9.0
Macros | Functions
IoT file port for direct flash access.

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

Macros

#define IOT_FILE_PSTORAGE_RAW_INIT(p_iot_file, p_file_name, start_address, size, callback)
 This macro function configures passed file as a direct flash access file. More...
 

Functions

void iot_file_pstorage_raw_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_PSTORAGE_RAW_INIT (   p_iot_file,
  p_file_name,
  start_address,
  size,
  callback 
)
Value:
do { \
(p_iot_file)->p_filename = p_file_name; \
(p_iot_file)->cursor = IOT_FILE_INVALID_CURSOR; \
(p_iot_file)->p_arg = (void *)start_address; \
(p_iot_file)->buffer_size = size; \
(p_iot_file)->p_buffer = NULL; \
(p_iot_file)->file_size = 0; \
(p_iot_file)->p_callback = callback; \
iot_file_pstorage_raw_assign(p_iot_file); \
} while(0)

This macro function configures passed file as a direct flash access 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.