Mistake on this page?
Report an issue in GitHub or email us
mx_wifi_hci.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file mx_wifi_hci.h
4  * @author MCD Application Team
5  * @brief Header for mx_wifi_hci.c module
6  ******************************************************************************
7  * @attention
8  *
9  * Copyright (c) 2021 STMicroelectronics.
10  * All rights reserved.
11  *
12  * This software is licensed under terms that can be found in the LICENSE file
13  * in the root directory of this software component.
14  * If no LICENSE file comes with this software, it is provided AS-IS.
15  *
16  ******************************************************************************
17  */
18 
19 /* Define to prevent recursive inclusion -------------------------------------*/
20 #ifndef MX_WIFI_HCI_H
21 #define MX_WIFI_HCI_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
26 
27 /* Includes ------------------------------------------------------------------*/
28 /*cstat -MISRAC2012-* */
29 #include "stdint.h"
30 #include "string.h"
31 #include "stdbool.h"
32 #include "stdio.h"
33 /*cstat +MISRAC2012-* */
34 
35 #include "mx_wifi_ipc.h"
36 
37 /**
38  * @brief CONFIGURATIONS
39  */
40 /* #define MX_WIFI_HCI_DEBUG */
41 
42 /**
43  * @brief HCI PACKET
44  */
45 #define MX_WIFI_HCI_DATA_SIZE (MIPC_PKT_MAX_SIZE)
46 
47 /**
48  * @brief PROTOTYPES
49  */
50 typedef struct _hci_pkt_s
51 {
52  uint16_t len;
53  uint8_t *data;
54 } hci_pkt_t;
55 
56 typedef uint16_t (*hci_send_func_t)(uint8_t *data, uint16_t size);
57 
58 /**
59  * @brief API
60  */
61 int32_t mx_wifi_hci_init(hci_send_func_t low_level_send);
62 int32_t mx_wifi_hci_send(uint8_t *payload, uint16_t len);
63 mx_buf_t *mx_wifi_hci_recv(uint32_t timeout);
64 void mx_wifi_hci_free(mx_buf_t *nbuf);
65 int32_t mx_wifi_hci_deinit(void);
66 
67 /**
68  * @brief LOW LEVEL INTERFACE
69  */
70 void mx_wifi_hci_input(mx_buf_t *netbuf);
71 
72 
73 #ifdef __cplusplus
74 }
75 #endif /* __cplusplus */
76 
77 #endif /* MX_WIFI_HCI_H */
Header for mx_wifi_ipc.c module.
struct _hci_pkt_s hci_pkt_t
PROTOTYPES.
void mx_wifi_hci_input(mx_buf_t *netbuf)
LOW LEVEL INTERFACE.
int32_t mx_wifi_hci_init(hci_send_func_t low_level_send)
API.
PROTOTYPES.
Definition: mx_wifi_hci.h:50
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.