tset

Fork of X_NUCLEO_IDB0XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

ble_hci.c File Reference

ble_hci.c File Reference

Function for managing HCI interface. More...

Go to the source code of this file.

Functions

void HCI_Init (void)
 Initialization function.
int HCI_verify (const tHciDataPacket *hciReadPacket)
 Verify if HCI packet is correctly formatted.
void HCI_Process (void)
 Processing function that must be called after an event is received from HCI interface.
BOOL HCI_Queue_Empty (void)
 Check if queue of HCI event is empty or not.

Detailed Description

Function for managing HCI interface.

Author:
AMS/HESA Application Team 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 ble_hci.c.


Function Documentation

void HCI_Init ( void   )

Initialization function.

Must be done before any data can be received from BLE controller.

Definition at line 65 of file ble_hci.c.

void HCI_Process ( void   )

Processing function that must be called after an event is received from HCI interface.

Must be called outside ISR. It will call HCI_Event_CB if necessary.

Definition at line 117 of file ble_hci.c.

BOOL HCI_Queue_Empty ( void   )

Check if queue of HCI event is empty or not.

Note:
This funtion can be used to check if the event queue from BlueNRG is empty. This is useful when checking if it is safe to go to sleep.
Returns:
TRUE if event queue is empty. FALSE otherwhise.

Definition at line 155 of file ble_hci.c.

int HCI_verify ( const tHciDataPacket *  hciReadPacket )

Verify if HCI packet is correctly formatted.

Parameters:
[in]hciReadPacketThe packet that is received from HCI interface.
Returns:
0 if HCI packet is as expected

Definition at line 104 of file ble_hci.c.