R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

fs_config_t Struct Reference

fs_config_t Struct Reference
[FStorage]

Flash storage config variable. More...

#include <fstorage.h>

Data Fields

const fs_cb_t cb
 Callback to run when flash operation has completed.
const uint8_t num_pages
 The number of pages to reserve for flash storage.
const uint8_t page_order
 The order used to allocate pages.
uint32_t * p_start_addr
 Pointer to the start address of the allocated flash storage.
uint32_t * p_end_addr
 Pointer to the end address of the allcoated flash storage.

Detailed Description

Flash storage config variable.

The fstorage module will update the start_addr and end_address according to ordering rules and the number of pages requested by the fstorage module user.

Definition at line 99 of file fstorage.h.


Field Documentation

const fs_cb_t cb

Callback to run when flash operation has completed.

Definition at line 101 of file fstorage.h.

const uint8_t num_pages

The number of pages to reserve for flash storage.

Definition at line 102 of file fstorage.h.

uint32_t* p_end_addr

Pointer to the end address of the allcoated flash storage.

Set by running fs_init.

Definition at line 105 of file fstorage.h.

uint32_t* p_start_addr

Pointer to the start address of the allocated flash storage.

Set by running fs_init.

Definition at line 104 of file fstorage.h.

const uint8_t page_order

The order used to allocate pages.

Definition at line 103 of file fstorage.h.