Functions | |
| void | dfu_init (dfu_func_t *p_app_dfu_func, uint8_t *p_dfu_buffer, dfu_pro_callback_t *p_dfu_callback) |
| Function for initializing the DFU Used and Program State Callback. More... | |
| void | dfu_cmd_parse_state_reset (void) |
| Function for reset the DFU cmd parse state. More... | |
| void | dfu_ble_set_mtu_size (uint16_t mtu_size) |
| Function for setting the BLE MTU size. More... | |
| void | dfu_ble_send_data_cmpl_process (void) |
| This function should be called when BLE stack sends data completely. More... | |
| void | dfu_ble_receive_data_process (uint8_t *p_data, uint16_t length) |
| This function should be called when BLE receives data. More... | |
| void | dfu_uart_receive_data_process (uint8_t *p_data, uint16_t length) |
| This function should be called when UART receives data. More... | |
| void | dfu_schedule (void) |
| Function for checking DFU cmd. More... | |
| void | dfu_start_jump (uint32_t start_addr) |
| Function for jumping to address to run. More... | |
| void | dfu_start_address (boot_info_t *p_boot_info) |
| Function for changing the boot info and reseting device. More... | |
| void | dfu_start_default (dfu_uart_info_t *p_dfu_uart_info, dfu_adv_name_info_t *p_dfu_adv_name_info, dfu_nvds_info_t *p_dfu_nvds_info) |
| Function for starting the default DFU bootloader(Only available for GR5515_D Chip). More... | |
| void | dfu_start_set (dfu_uart_info_t *p_dfu_uart_info, dfu_adv_name_info_t *p_dfu_adv_name_info, dfu_nvds_info_t *p_dfu_nvds_info) |
| Function for set the default DFU bootloader informatica(Only available for GR5515_D Chip). More... | |
| void | dfu_set_disable_cmd (uint16_t disable_cmd_bit_map) |
| Function for set DFU disable cmd. More... | |
| void | dfu_spi_flash_func_config (dfu_spi_flash_func_t *spi_flash_func) |
| Function for initializing the DFU SPI Flash Callback. More... | |
| void dfu_ble_receive_data_process | ( | uint8_t * | p_data, |
| uint16_t | length | ||
| ) |
This function should be called when BLE receives data.
| [in] | p_data | The received data from BLE. |
| [in] | length | The length of data. |
| void dfu_ble_send_data_cmpl_process | ( | void | ) |
This function should be called when BLE stack sends data completely.
| void |
| void dfu_ble_set_mtu_size | ( | uint16_t | mtu_size | ) |
Function for setting the BLE MTU size.
| [in] | mtu_size | The BLE MTU size. |
| void dfu_cmd_parse_state_reset | ( | void | ) |
Function for reset the DFU cmd parse state.
| void dfu_init | ( | dfu_func_t * | p_app_dfu_func, |
| uint8_t * | p_dfu_buffer, | ||
| dfu_pro_callback_t * | p_dfu_callback | ||
| ) |
Function for initializing the DFU Used and Program State Callback.
| [in] | p_app_dfu_func | DFU used functions. |
| [in] | p_dfu_buffer | DFU data receiving buffer. |
| [in] | p_dfu_callback | DFU program state callback functions. |
| void dfu_schedule | ( | void | ) |
Function for checking DFU cmd.
| void dfu_set_disable_cmd | ( | uint16_t | disable_cmd_bit_map | ) |
Function for set DFU disable cmd.
| [in] | disable_cmd_bit_map | The bitmask of DFU disable cmd See DFU cmd disable option (bitmask). |
| void dfu_spi_flash_func_config | ( | dfu_spi_flash_func_t * | spi_flash_func | ) |
Function for initializing the DFU SPI Flash Callback.
| [in] | spi_flash_func | DFU operationally external flash used functions. |
| void dfu_start_address | ( | boot_info_t * | p_boot_info | ) |
Function for changing the boot info and reseting device.
| [in] | p_boot_info | The boot info of the APP you want to run. |
| void dfu_start_default | ( | dfu_uart_info_t * | p_dfu_uart_info, |
| dfu_adv_name_info_t * | p_dfu_adv_name_info, | ||
| dfu_nvds_info_t * | p_dfu_nvds_info | ||
| ) |
Function for starting the default DFU bootloader(Only available for GR5515_D Chip).
| [in] | p_dfu_uart_info | Default DFU bootloader UART info, NULL–the UART DFU feature is closed. |
| [in] | p_dfu_adv_name_info | Default DFU bootloader adv name, NULL–the adv name is ble_dfu. |
| [in] | p_dfu_nvds_info | NVDS init info, NULL–Not init NVDS. |
| void dfu_start_jump | ( | uint32_t | start_addr | ) |
Function for jumping to address to run.
| [in] | start_addr | The jumped address. |
| void dfu_start_set | ( | dfu_uart_info_t * | p_dfu_uart_info, |
| dfu_adv_name_info_t * | p_dfu_adv_name_info, | ||
| dfu_nvds_info_t * | p_dfu_nvds_info | ||
| ) |
Function for set the default DFU bootloader informatica(Only available for GR5515_D Chip).
| [in] | p_dfu_uart_info | Default DFU bootloader UART info, NULL–the UART DFU feature is closed. |
| [in] | p_dfu_adv_name_info | Default DFU bootloader adv name, NULL–the adv name is ble_dfu. |
| [in] | p_dfu_nvds_info | NVDS init info, NULL–Not init NVDS. |
| void dfu_uart_receive_data_process | ( | uint8_t * | p_data, |
| uint16_t | length | ||
| ) |
This function should be called when UART receives data.
| [in] | p_data | The received data from UART |
| [in] | length | The length of data |