BLE shield

Fork of X_NUCLEO_IDB0XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

hci_dma_lp.c File Reference

hci_dma_lp.c File Reference

Function for managing HCI interface. More...

Go to the source code of this file.

Functions

void HCI_Init (void)
 Initialization function.
void HCI_Input (tHciDataPacket *hciReadPacket)
 This function must be used to pass the packet received from the HCI interface to the BLE Stack HCI state machine.
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.
void HCI_Isr (uint8_t *buffer, uint8_t event_payload_len)
 Iterrupt service routine that must be called when the BlueNRG reports a packet received or an event to the host through the BlueNRG interrupt line.
int hci_send_req (struct hci_request *r, BOOL async)
 FIXME: Param async is unused, it has been introduced to align the interface to DK 1.6.0 HCI stack.

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 hci_dma_lp.c.


Function Documentation

void HCI_Init ( void   )

Initialization function.

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

Definition at line 71 of file hci_dma_lp.c.

void HCI_Input ( tHciDataPacket *  hciReadPacket )

This function must be used to pass the packet received from the HCI interface to the BLE Stack HCI state machine.

Parameters:
[in]hciReadPacketThe packet that is received from HCI interface.

Definition at line 105 of file hci_dma_lp.c.

void HCI_Isr ( uint8_t *  buffer,
uint8_t  event_payload_len 
)

Iterrupt service routine that must be called when the BlueNRG reports a packet received or an event to the host through the BlueNRG interrupt line.

Definition at line 217 of file hci_dma_lp.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 195 of file hci_dma_lp.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 212 of file hci_dma_lp.c.

int hci_send_req ( struct hci_request *  r,
BOOL  async 
)

FIXME: Param async is unused, it has been introduced to align the interface to DK 1.6.0 HCI stack.

Definition at line 279 of file hci_dma_lp.c.