BLE_API  v2.1.3

Functions

void setBLE_FlashPartitionsBA (uint8_t u8ShowMsg)
 
void setBLE_FlashProgram (uint32_t u32Addr, uint32_t u32Data)
 
int32_t setBLE_FlashErase (uint32_t u32Addr)
 

Detailed Description

Here shows the BLE MCU flash program and erase functions.

Function Documentation

◆ setBLE_FlashErase()

int32_t setBLE_FlashErase ( uint32_t  u32Addr)

This function is used to flash erase for BLE.

Parameters
[in]u32Addr: Address of the flash page to be erased..
Returns
Page erase success or not.
Return values
0Success
-1Erase failed

◆ setBLE_FlashPartitionsBA()

void setBLE_FlashPartitionsBA ( uint8_t  u8ShowMsg)

This function is used to set the base address of flash partitions. Must call this function when enable FOTA or Data Flash feature.

Parameters
[in]u8ShowMsg: Show the partition information or not.
Returns
none

◆ setBLE_FlashProgram()

void setBLE_FlashProgram ( uint32_t  u32Addr,
uint32_t  u32Data 
)

This function is used to flash program for BLE.

Parameters
[in]u32Addr: Address of the flash location to be programmed.
[in]u32Data: The data to be programmed.
Returns
none