Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IDB0XA1 by
Implementation BlueNRG Init and helper functions. More...
Go to the source code of this file.
Functions | |
| void | btleInitHW (void) |
| Prepare communication between the host and the BTLE HW device. | |
| int | btleUpdateFirmware (const uint8_t *fw_image, uint32_t fw_size) |
| Flash a new firmware using internal bootloader. | |
| uint8_t | btleGetUpdaterHWVersion (uint8_t *upd_hw_version) |
| Get BlueNRG HW updater version. | |
| void | btleStart (bool isSetAddress, uint8_t role) |
| Start the BTLE stack with the specified role. | |
| void | SPI_Poll (void) |
| Not Used. | |
| void | HCI_Event_CB (void *pckt) |
| Handle HCI Stack Event. | |
Variables | |
| int | btle_handler_pending = 0 |
| mbedOS | |
Detailed Description
Implementation BlueNRG Init and helper functions.
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2013 STMicroelectronics
Definition in file btle.cpp.
Function Documentation
| uint8_t btleGetUpdaterHWVersion | ( | uint8_t * | upd_hw_version ) |
| void btleInitHW | ( | void | ) |
| void btleStart | ( | bool | isSetAddress, |
| uint8_t | role | ||
| ) |
| int btleUpdateFirmware | ( | const uint8_t * | fw_image, |
| uint32_t | fw_size | ||
| ) |
Flash a new firmware using internal bootloader.
- Parameters:
-
fw_image Pointer to the firmware image (raw binary data, little-endian). fw_size Size of the firmware image. The firmware image size shall be multiple of 4 bytes.
- Return values:
-
int It returns 0 if successful, or a number not equal to 0 in case of error (ACI_ERROR, UNSUPPORTED_VERSION, WRONG_IMAGE_SIZE, CRC_ERROR)
| void HCI_Event_CB | ( | void * | pckt ) |
| void SPI_Poll | ( | void | ) |
Variable Documentation
| int btle_handler_pending = 0 |
Generated on Tue Jul 12 2022 16:31:46 by
1.7.2
