le_flash_interface.h File Reference

#include "legato.h"
#include "le_flash_common.h"

Go to the source code of this file.

Typedefs

typedef void(* le_flash_DisconnectHandler_t) (void *)
 

Functions

void le_flash_ConnectService (void)
 
le_result_t le_flash_TryConnectService (void)
 
LE_FULL_API void le_flash_SetServerDisconnectHandler (le_flash_DisconnectHandler_t disconnectHandler, void *contextPtr)
 
void le_flash_DisconnectService (void)
 
le_flash_BadImageDetectionHandlerRef_t le_flash_AddBadImageDetectionHandler (le_flash_BadImageDetectionHandlerFunc_t handlerPtr, void *contextPtr)
 
void le_flash_RemoveBadImageDetectionHandler (le_flash_BadImageDetectionHandlerRef_t handlerRef)
 
le_result_t le_flash_RequestAccess (void)
 
le_result_t le_flash_ReleaseAccess (void)
 
le_result_t le_flash_OpenMtd (const char *LE_NONNULL partitionName, le_flash_OpenMode_t mode, le_flash_PartitionRef_t *partitionRefPtr)
 
le_result_t le_flash_OpenUbi (const char *LE_NONNULL partitionName, le_flash_OpenMode_t mode, le_flash_PartitionRef_t *partitionRefPtr)
 
le_result_t le_flash_OpenUbiVolume (le_flash_PartitionRef_t partitionRef, const char *LE_NONNULL volumeName, int32_t volumeSize)
 
le_result_t le_flash_CloseUbiVolume (le_flash_PartitionRef_t partitionRef)
 
le_result_t le_flash_Close (le_flash_PartitionRef_t partitionRef)
 
le_result_t le_flash_EraseBlock (le_flash_PartitionRef_t partitionRef, uint32_t blockIndex)
 
le_result_t le_flash_Read (le_flash_PartitionRef_t partitionRef, uint32_t blockIndex, uint8_t *readDataPtr, size_t *readDataSizePtr)
 
le_result_t le_flash_Write (le_flash_PartitionRef_t partitionRef, uint32_t blockIndex, const uint8_t *writeDataPtr, size_t writeDataSize)
 
le_result_t le_flash_GetBlockInformation (le_flash_PartitionRef_t partitionRef, uint32_t *badBlocksNumberPtr, uint32_t *eraseBlocksNumberPtr, uint32_t *eraseBlockSizePtr, uint32_t *pageSizePtr)
 
le_result_t le_flash_GetUbiVolumeInformation (le_flash_PartitionRef_t partitionRef, uint32_t *freeBlockNumberPtr, uint32_t *allocatedBlockNumberPtr, uint32_t *sizeInBytesPtr)
 
le_result_t le_flash_CreateUbi (const char *LE_NONNULL partitionName, bool isForcedCreate, le_flash_PartitionRef_t *partitionRefPtr)
 
le_result_t le_flash_CreateUbiVolume (le_flash_PartitionRef_t partitionRef, bool isForcedCreate, uint32_t volumeID, le_flash_UbiVolumeType_t volumeType, const char *LE_NONNULL volumeName, int32_t volumeSize)
 
le_result_t le_flash_DeleteUbiVolume (le_flash_PartitionRef_t partitionRef, const char *LE_NONNULL volumeName)
 

Detailed Description

Legato Flash API include file.