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
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.
© 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] hciReadPacket The 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.
Generated on Tue Jul 12 2022 19:31:15 by
1.7.2
