Antonio Vilei / X_NUCLEO_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST Expansion SW Team

Embed: (wiki syntax)

« Back to documentation index

btle.cpp File Reference

btle.cpp File Reference

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.

Author:
STMicroelectronics

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 )

Get BlueNRG HW updater version.

Parameters:
versionThis parameter returns the updater HW version.
Return values:
Statusof the call

Definition at line 134 of file btle.cpp.

void btleInitHW ( void   )

Prepare communication between the host and the BTLE HW device.

Returns:
void

Definition at line 95 of file btle.cpp.

void btleStart ( bool  isSetAddress,
uint8_t  role 
)

Start the BTLE stack with the specified role.

Parameters:
isSetAddressboolean if address has been set
roleThe device role
Returns:
void

Definition at line 152 of file btle.cpp.

int btleUpdateFirmware ( const uint8_t *  fw_image,
uint32_t  fw_size 
)

Flash a new firmware using internal bootloader.

Parameters:
fw_imagePointer to the firmware image (raw binary data, little-endian).
fw_sizeSize of the firmware image. The firmware image size shall be multiple of 4 bytes.
Return values:
intIt returns 0 if successful, or a number not equal to 0 in case of error (ACI_ERROR, UNSUPPORTED_VERSION, WRONG_IMAGE_SIZE, CRC_ERROR)

Definition at line 120 of file btle.cpp.

void HCI_Event_CB ( void *  pckt )

Handle HCI Stack Event.

Callback used to pass events to application.

Parameters:
[in]pcktEvent Packet sent by the stack to be decoded
Returns:

Definition at line 439 of file btle.cpp.

void SPI_Poll ( void   )

Not Used.

Parameters:
[in]void
Returns:

Definition at line 332 of file btle.cpp.


Variable Documentation

mbedOS

Parameters:
[in]void
Returns:

Definition at line 274 of file btle.cpp.