Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_ANCS_SDAPI_IRC
Fork of nRF51822 by
Utility internal functions.
Functions | |
| static void | cmd_queue_init_element (uint32_t index) |
| Initializes command queue element. | |
| static void | cmd_queue_init (void) |
| Initializes command queue. | |
| static uint32_t | cmd_queue_enqueue (uint8_t opcode, pstorage_handle_t *p_storage_addr, uint8_t *p_data_addr, pstorage_size_t size, pstorage_size_t offset) |
| Routine to enqueue a flash access operation. | |
| static uint32_t | cmd_queue_dequeue (void) |
| Dequeues a command element. | |
| static void | app_notify (uint32_t result) |
| Routine to notify application of any errors. | |
| void | pstorage_sys_event_handler (uint32_t sys_evt) |
| Handles Flash Access Result Events. | |
| static uint32_t | process_cmd (void) |
| Routine called to actually issue the flash access request to the SoftDevice. | |
Detailed Description
Utility functions needed for interfacing with flash through SoC APIs. SoC APIs are non blocking and provide the result of flash access through an event.
- Note:
- Only one flash access operation is permitted at a time by SoC. Hence a queue is maintained by this module.
Function Documentation
| static void app_notify | ( | uint32_t | reason ) | [static] |
Routine to notify application of any errors.
Definition at line 364 of file pstorage.cpp.
| static uint32_t cmd_queue_dequeue | ( | void | ) | [static] |
Dequeues a command element.
Definition at line 316 of file pstorage.cpp.
| static uint32_t cmd_queue_enqueue | ( | uint8_t | opcode, |
| pstorage_handle_t * | p_storage_addr, | ||
| uint8_t * | p_data_addr, | ||
| pstorage_size_t | size, | ||
| pstorage_size_t | offset | ||
| ) | [static] |
Routine to enqueue a flash access operation.
Definition at line 265 of file pstorage.cpp.
| static void cmd_queue_init | ( | void | ) | [static] |
Initializes command queue.
Definition at line 246 of file pstorage.cpp.
| static void cmd_queue_init_element | ( | uint32_t | index ) | [static] |
Initializes command queue element.
Definition at line 231 of file pstorage.cpp.
| static uint32_t process_cmd | ( | void | ) | [static] |
Routine called to actually issue the flash access request to the SoftDevice.
Definition at line 437 of file pstorage.cpp.
| void pstorage_sys_event_handler | ( | uint32_t | sys_evt ) |
Handles Flash Access Result Events.
Definition at line 394 of file pstorage.cpp.
Generated on Tue Jul 12 2022 16:36:22 by
1.7.2
