|
| LE_MEM_DEFINE_STATIC_POOL (taf_flash_ClientThreadData, LE_CDATA_COMPONENT_COUNT, sizeof(_ClientThreadData_t)) |
|
static le_result_t | InitClientForThread (bool isBlocking) |
|
static _ClientThreadData_t * | GetClientThreadDataPtr (void) |
|
| __attribute__ ((unused)) |
|
static void | ClientThreadDestructor (void *objPtr) |
|
static void | InitCommonData (void) |
|
static le_result_t | DoConnectService (bool isBlocking) |
|
void | taf_flash_ConnectService (void) |
|
le_result_t | taf_flash_TryConnectService (void) |
|
static void | SessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr) |
|
void | taf_flash_SetServerDisconnectHandler (taf_flash_DisconnectHandler_t disconnectHandler, void *contextPtr) |
|
static void | NonExitSessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr) |
|
void | taf_flash_SetNonExitServerDisconnectHandler (taf_flash_DisconnectHandler_t disconnectHandler, void *contextPtr) |
|
void | taf_flash_DisconnectService (void) |
|
void | taf_flash_Init (void) |
|
le_result_t | taf_flash_MtdOpen (const char *LE_NONNULL partitionName, taf_flash_OpenMode_t mode, taf_flash_PartitionRef_t *partitionRefPtr) |
|
le_result_t | taf_flash_MtdClose (taf_flash_PartitionRef_t partitionRef) |
|
le_result_t | taf_flash_MtdInformation (taf_flash_PartitionRef_t partitionRef, uint32_t *blocksNumberPtr, uint32_t *badBlocksNumberPtr, uint32_t *blockSizePtr, uint32_t *pageSizePtr) |
|
le_result_t | taf_flash_MtdEraseBlock (taf_flash_PartitionRef_t partitionRef, uint32_t blockIndex) |
|
le_result_t | taf_flash_MtdReadPage (taf_flash_PartitionRef_t partitionRef, uint32_t pageIndex, uint8_t *readDataPtr, size_t *readDataSizePtr) |
|
le_result_t | taf_flash_MtdWritePage (taf_flash_PartitionRef_t partitionRef, uint32_t pageIndex, const uint8_t *writeDataPtr, size_t writeDataSize) |
|
le_result_t | taf_flash_MtdRead (taf_flash_PartitionRef_t partitionRef, uint32_t offset, uint8_t *readDataPtr, size_t *readDataSizePtr) |
|
le_result_t | taf_flash_MtdWrite (taf_flash_PartitionRef_t partitionRef, uint32_t offset, const uint8_t *writeDataPtr, size_t writeDataSize) |
|
le_result_t | taf_flash_MtdErase (taf_flash_PartitionRef_t partitionRef) |
|
bool | taf_flash_MtdIsBlockGood (taf_flash_PartitionRef_t partitionRef, uint32_t blockIndex) |
|
le_result_t | taf_flash_UbiOpen (const char *LE_NONNULL volumeName, taf_flash_OpenMode_t mode, taf_flash_VolumeRef_t *volumeRefPtr) |
|
le_result_t | taf_flash_UbiClose (taf_flash_VolumeRef_t volumeRef) |
|
le_result_t | taf_flash_UbiInformation (taf_flash_VolumeRef_t volumeRef, uint32_t *lebNumberPtr, uint32_t *freeLebNumberPtr, uint32_t *volumeSizePtr) |
|
le_result_t | taf_flash_UbiRead (taf_flash_VolumeRef_t volumeRef, uint32_t offset, uint8_t *readDataPtr, size_t *readDataSizePtr) |
|
le_result_t | taf_flash_UbiInitWrite (taf_flash_VolumeRef_t volumeRef, int64_t writeBytes) |
|
le_result_t | taf_flash_UbiWrite (taf_flash_VolumeRef_t volumeRef, const uint8_t *writeDataPtr, size_t writeDataSize) |
|
void taf_flash_ConnectService |
( |
void |
| ) |
|
Connect the current client thread to the service providing this API. Block until the service is available.
For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.
This function is created automatically.
Try to connect the current client thread to the service providing this API. Return with an error if the service is not available.
For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.
This function is created automatically.
- Returns
- LE_OK if the client connected successfully to the service.
- LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.
- LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
- LE_COMM_ERROR if the Service Directory cannot be reached.
void taf_flash_DisconnectService |
( |
void |
| ) |
|
Disconnect the current client thread from the service providing this API.
Normally, this function doesn't need to be called. After this function is called, there's no longer a connection to the service, and the functions in this API can't be used. For details, see apiFilesC_client.
This function is created automatically.