Mistake on this page?
Report an issue in GitHub or email us
maclib_task.h
1 /* Copyright (c) 2019 Unisoc Communications Inc.
2  * SPDX-License-Identifier: Apache-2.0
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /******************************************************************************
18  * @file : maclib_task.h
19  * @brief : WiFi MACLib task header file
20  * @version: V1.0
21  * @date : 6. May 2017
22  *
23  * @note :
24  *
25  ******************************************************************************/
26 
27 #ifndef _MACLIB_TASK_H_
28 #define _MACLIB_TASK_H_
29 
30 #define MAC_LIB_MAX_FLEN 1536
31 
32 /**
33  * Enums
34  */
35 typedef enum {
36  MACLIB_MSG_EVNT_HNDL,
37  MACLIB_MSG_WLAND_XMIT_PKT,
38  MACLIB_MSG_LWIP_XMIT_PKT
39 } MACLIB_MSG_TYPE_T;
40 
41 /**
42  * Structures
43  */
44 typedef struct {
45  MACLIB_MSG_TYPE_T type;
46  void *msg;
47  int is_free;
48 } maclib_msg_t;
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 /**
55  * @brief : MACLib main task [MACLib api]
56  * @param[in] : pvParameters(pointer to enet data)
57  * @param[out]:
58  * @return :
59  */
60 extern void maclib_task(void *pvParameters);
61 extern void mbed_event_handle_cb(unsigned int event);
62 extern void mbed_mltask_sleep_cb(void);
63 extern void mbed_mltask_wakeup_cb(void);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* _MACLIB_TASK_H_ */
Structures.
Definition: maclib_task.h:44
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.