Mistake on this page?
Report an issue in GitHub or email us
l2c_handler.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief L2CAP handler interface.
6  *
7  * Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved.
8  *
9  * Copyright (c) 2019 Packetcraft, Inc.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  */
23 /*************************************************************************************************/
24 #ifndef L2C_HANDLER_H
25 #define L2C_HANDLER_H
26 
27 #include "wsf_os.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /*! \addtogroup STACK_EVENT
34  * \{ */
35 
36 /** \name L2CAP Event Handling
37  * Message passing interface to L2CAP from other tasks through WSF.
38  */
39 /**@{*/
40 
41 /**************************************************************************************************
42  Function Declarations
43 **************************************************************************************************/
44 
45 /*************************************************************************************************/
46 /*!
47  * \brief Event handler initialization function for L2C when operating as a slave.
48  *
49  * \param handlerId ID for this event handler.
50  *
51  * \return None.
52  */
53 /*************************************************************************************************/
54 void L2cSlaveHandlerInit(wsfHandlerId_t handlerId);
55 
56 /*************************************************************************************************/
57 /*!
58  * \brief The WSF event handler for L2C when operating as a slave.
59  *
60  * \param event Event mask.
61  * \param pMsg Pointer to message.
62  *
63  * \return None.
64  */
65 /*************************************************************************************************/
66 void L2cSlaveHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg);
67 
68 /*************************************************************************************************/
69 /*!
70  * \brief Event handler initialization function for L2C with connection oriented channels.
71  *
72  * \param handlerId ID for this event handler.
73  *
74  * \return None.
75  */
76 /*************************************************************************************************/
77 void L2cCocHandlerInit(wsfHandlerId_t handlerId);
78 
79 /*************************************************************************************************/
80 /*!
81  * \brief The WSF event handler for L2C with connection oriented channels.
82  *
83  * \param event Event mask.
84  * \param pMsg Pointer to message.
85  *
86  * \return None.
87  */
88 /*************************************************************************************************/
89 void L2cCocHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg);
90 
91 /**@}*/
92 
93 /*! \} */ /* STACK_EVENT */
94 
95 #ifdef __cplusplus
96 };
97 #endif
98 
99 #endif /* L2C_HANDLER_H */
uint16_t wsfEventMask_t
Event handler event mask data type.
Definition: wsf_os.h:83
void L2cCocHandlerInit(wsfHandlerId_t handlerId)
Event handler initialization function for L2C with connection oriented channels.
void L2cCocHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
The WSF event handler for L2C with connection oriented channels.
uint8_t wsfHandlerId_t
Event handler ID data type.
Definition: wsf_os.h:80
void L2cSlaveHandlerInit(wsfHandlerId_t handlerId)
Event handler initialization function for L2C when operating as a slave.
Software foundation OS API.
Common message structure passed to event handler.
Definition: wsf_os.h:106
void L2cSlaveHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
The WSF event handler for L2C when operating as a slave.
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.