dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_flash.h File Reference
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  pios_flash_partition_labels {
  FLASH_PARTITION_LABEL_BL, FLASH_PARTITION_LABEL_FW, FLASH_PARTITION_LABEL_EE, FLASH_PARTITION_LABEL_SETTINGS,
  FLASH_PARTITION_LABEL_AUTOTUNE, FLASH_PARTITION_LABEL_LOG, FLASH_PARTITION_LABEL_LOADABLE_EXTENSION, FLASH_PARTITION_NUM_LABELS
}
 

Functions

int32_t PIOS_FLASH_find_partition_id (enum pios_flash_partition_labels label, uintptr_t *partition_id)
 
uint16_t PIOS_FLASH_get_num_partitions (void)
 
int32_t PIOS_FLASH_get_partition_size (uintptr_t partition_id, uint32_t *partition_size)
 
int32_t PIOS_FLASH_start_transaction (uintptr_t partition_id)
 
int32_t PIOS_FLASH_end_transaction (uintptr_t partition_id)
 
int32_t PIOS_FLASH_erase_partition (uintptr_t partition_id)
 
int32_t PIOS_FLASH_erase_range (uintptr_t partition_id, uint32_t start_offset, uint32_t size)
 
int32_t PIOS_FLASH_write_data (uintptr_t partition_id, uint32_t offset, const uint8_t *data, uint16_t len)
 
int32_t PIOS_FLASH_read_data (uintptr_t partition_id, uint32_t offset, uint8_t *data, uint16_t len)
 
void * PIOS_FLASH_get_address (uintptr_t partition_id, uint32_t *partition_size)
 

Detailed Description

Author
Tau Labs, http://taulabs.org, Copyright (C) 2012-2013

Definition in file pios_flash.h.