| 
Classes | |
| struct | tstrDataAccessInitParamsApp | 
| This structure contains parameters for initializing a local data access (read or write).  More... | |
| struct | tstrDataAccessParamsApp | 
| This structure contains data for local data access (read or write).  More... | |
| struct | tstrFlashState | 
| This structure contains information about an attempted transfer.  More... | |
Typedefs | |
| typedef sint8(* | tpfDataAccessFn) (tenuFlashDataFnCtl enuCtl, void *pvStr) | 
| A function of this type is used for local data access. It can be implemented to handle simple RAM access with pointer/length, or it can be implemented to handle access to external memory. Functions of this type are provided to the module via various function APIs.  More... | |
Enumerations | |
| enum | tenuDataFnRW { FLASH_DATA_FN_READ, FLASH_DATA_FN_WRITE } | 
| Indicates whether data is to be read or written.  More... | |
| enum | tenuFlashDataFnCtl { FLASH_DATA_FN_INITIALIZE, FLASH_DATA_FN_DATA, FLASH_DATA_FN_TERMINATE, FLASH_DATA_FN_COMPLETE } | 
| Control parameter for tpfDataAccessFn.  More... | |
| enum | tenuImageId { FLASH_IMAGE_INACTIVE, FLASH_IMAGE_ACTIVE } | 
| Indicates which image to access in WINC flash.  More... | |
| tpfDataAccessFn | 
A function of this type is used for local data access. It can be implemented to handle simple RAM access with pointer/length, or it can be implemented to handle access to external memory. Functions of this type are provided to the module via various function APIs.
| [in] | enuCtl | Control parameter. | 
| [in] | pvStr | Generic pointer to structure. The structure type depends on enuCtl:
  | 
This example illustrates an implementation of a function of type tpfDataAccessFn. 
This example assumes the application's data buffer is in RAM, so we can use memcpy. Alternatively memcpy can be replaced by dedicated functions which read/write the application buffer.
gpu8DataLocation is a pointer to the data buffer in RAM, set by the application. 
gu32DataSize is the size of the data buffer, set by the application.
Definition at line 229 of file m2m_flash.h.
| enum tenuDataFnRW | 
Indicates whether data is to be read or written.
| Enumerator | |
|---|---|
| FLASH_DATA_FN_READ | Read data from application memory.  | 
| FLASH_DATA_FN_WRITE | Write data to application memory.  | 
Definition at line 111 of file m2m_flash.h.
| enum tenuFlashDataFnCtl | 
Control parameter for tpfDataAccessFn.
Definition at line 94 of file m2m_flash.h.
| enum tenuImageId | 
Indicates which image to access in WINC flash.
| Enumerator | |
|---|---|
| FLASH_IMAGE_INACTIVE | Access the image in the inactive partition.  | 
| FLASH_IMAGE_ACTIVE | Access the image in the active partition.  | 
Definition at line 123 of file m2m_flash.h.