| STM32L - BlueNRG-1 BLE stack APIs, Events and Constants

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

hci.h
Go to the documentation of this file.
1
21 #ifndef __HCI_H_
22 #define __HCI_H_
23
24 #include "hal_types.h"
25 #include "link_layer.h"
26 #include <list.h>
27
28
29 #define HCI_READ_PACKET_SIZE 128 //71
30
35 #define HCI_MAX_PAYLOAD_SIZE 128
36
37 /*** Data types ***/
38
39 /* structure used to read received data */
40 typedef struct _tHciDataPacket
41 {
42 tListNode currentNode;
43 uint8_t dataBuff[HCI_READ_PACKET_SIZE];
44 uint8_t data_len;
45 }tHciDataPacket;
46
47 struct hci_request {
48 uint16_t ogf;
49 uint16_t ocf;
50 int event;
51 void *cparam;
52 int clen;
53 void *rparam;
54 int rlen;
55 };
56
61 uint8_t BlueNRG_Stack_Initialization(void);
62
69 extern void HCI_Event_CB(void *pckt);
70
76 void BTLE_StackTick(void);
77
78
85 BOOL HCI_Queue_Empty(void);
86
92 void HCI_Isr(void);
93
94 int hci_send_req(struct hci_request *r, BOOL async);
95
96 extern tListNode hciReadPktPool;
97 extern tListNode hciReadPktRxQueue;
98
99 #endif /* __HCI_H_ */
tHciDataPacket
struct _tHciDataPacket tHciDataPacket
hci_request::rlen
int rlen
Definition: hci.h:54
hci_request::clen
int clen
Definition: hci.h:52
_tHciDataPacket::currentNode
tListNode currentNode
Definition: hci.h:42
hci_request::rparam
void * rparam
Definition: hci.h:53
HCI_READ_PACKET_SIZE
#define HCI_READ_PACKET_SIZE
Definition: hci.h:29
hci_request::ocf
uint16_t ocf
Definition: hci.h:49
link_layer.h
Header file for BlueNRG-1's link layer constants.
_tHciDataPacket
Definition: hci.h:40
hci_send_req
int hci_send_req(struct hci_request *r, BOOL async)
HCI_Queue_Empty
BOOL HCI_Queue_Empty(void)
Check if queue of HCI event is empty or not.
HCI_Isr
void HCI_Isr(void)
hciReadPktPool
tListNode hciReadPktPool
hci_request::event
int event
Definition: hci.h:50
BTLE_StackTick
void BTLE_StackTick(void)
hciReadPktRxQueue
tListNode hciReadPktRxQueue
hci_request::ogf
uint16_t ogf
Definition: hci.h:48
HCI_Event_CB
void HCI_Event_CB(void *pckt)
BlueNRG_Stack_Initialization
uint8_t BlueNRG_Stack_Initialization(void)
_tHciDataPacket::data_len
uint8_t data_len
Definition: hci.h:44
_tHciDataPacket::dataBuff
uint8_t dataBuff[HCI_READ_PACKET_SIZE]
Definition: hci.h:43
hci_request
Definition: hci.h:47
hci_request::cparam
void * cparam
Definition: hci.h:51