mbed HRM11017を使ってkonashi.jsでナイトライダー

Dependencies:   BLE_API_Native_IRC mbed

Fork of BLE_RCBController by Junichi Katsu

Embed: (wiki syntax)

« Back to documentation index

Utility internal functions.

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.