WICED Resource API's The Resource Management functions reads resource from a resource location and returns the number of bytes from an offset in an caller filled buffer. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | memory_resource_handle_t |
Memory handle. More... | |
struct | filesystem_resource_handle_t |
Filesystem handle. More... | |
struct | resource_hnd_t |
Resource handle structure. More... | |
Macros | |
#define | RESOURCE_RESULT_LIST(prefix) |
Failed to read resource file. More... | |
Enumerations |
Functions | |
resource_result_t | resource_read (const resource_hnd_t *resource, uint32_t offset, uint32_t maxsize, uint32_t *size, void *buffer) |
Read resource using the handle specified. More... | |
resource_result_t | resource_get_readonly_buffer (const resource_hnd_t *resource, uint32_t offset, uint32_t maxsize, uint32_t *size_out, const void **buffer) |
Retrieve a read only resource buffer using the handle specified. More... | |
resource_result_t | resource_free_readonly_buffer (const resource_hnd_t *handle, const void *buffer) |
Free a read only resource buffer using the handle specified. More... | |
WICED Resource API's The Resource Management functions reads resource from a resource location and returns the number of bytes from an offset in an caller filled buffer.
Functions to get the resource size and resource data
The Resource could be one of the three locations
Definition in file wiced_resource.h.
#define RESOURCE_RESULT_LIST | ( | prefix | ) |
Failed to read resource file.
Definition at line 83 of file wiced_resource.h.
enum resource_location_t |
Enumerator | |
---|---|
RESOURCE_IN_MEMORY |
resource location in memory |
RESOURCE_IN_FILESYSTEM |
resource location in filesystem |
RESOURCE_IN_EXTERNAL_STORAGE |
resource location in external storage |
Definition at line 146 of file wiced_resource.h.
enum resource_result_t |
Result type for WICED Resource function.
Definition at line 112 of file wiced_resource.h.