Cordio Stack and Cordio Profiles  r2p3-02rel0
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  * ARM Ltd. confidential and proprietary.
9  *
10  * IMPORTANT. Your use of this file is governed by a Software License Agreement
11  * ("Agreement") that must be accepted in order to download or otherwise receive a
12  * copy of this file. You may not use or copy this file for any purpose other than
13  * as described in the Agreement. If you do not agree to all of the terms of the
14  * Agreement do not use this file and delete all copies in your possession or control;
15  * if you do not have a copy of the Agreement, you must contact ARM Ltd. prior
16  * to any use, copying or further distribution of this software.
17  */
18 /*************************************************************************************************/
19 #ifndef L2C_HANDLER_H
20 #define L2C_HANDLER_H
21 
22 #include "wsf_os.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /*! \addtogroup STACK_EVENT
29  * \{ */
30 
31 /** \name L2CAP Event Handling
32  * Message passing interface to L2CAP from other tasks through WSF.
33  */
34 /**@{*/
35 
36 /**************************************************************************************************
37  Function Declarations
38 **************************************************************************************************/
39 
40 /*************************************************************************************************/
41 /*!
42  * \brief Event handler initialization function for L2C when operating as a slave.
43  *
44  * \param handlerId ID for this event handler.
45  *
46  * \return None.
47  */
48 /*************************************************************************************************/
49 void L2cSlaveHandlerInit(wsfHandlerId_t handlerId);
50 
51 /*************************************************************************************************/
52 /*!
53  * \brief The WSF event handler for L2C when operating as a slave.
54  *
55  * \param event Event mask.
56  * \param pMsg Pointer to message.
57  *
58  * \return None.
59  */
60 /*************************************************************************************************/
61 void L2cSlaveHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg);
62 
63 /*************************************************************************************************/
64 /*!
65  * \brief Event handler initialization function for L2C with connection oriented channels.
66  *
67  * \param handlerId ID for this event handler.
68  *
69  * \return None.
70  */
71 /*************************************************************************************************/
72 void L2cCocHandlerInit(wsfHandlerId_t handlerId);
73 
74 /*************************************************************************************************/
75 /*!
76  * \brief The WSF event handler for L2C with connection oriented channels.
77  *
78  * \param event Event mask.
79  * \param pMsg Pointer to message.
80  *
81  * \return None.
82  */
83 /*************************************************************************************************/
84 void L2cCocHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg);
85 
86 /**@}*/
87 
88 /*! \} */ /* STACK_EVENT */
89 
90 #ifdef __cplusplus
91 };
92 #endif
93 
94 #endif /* L2C_HANDLER_H */
uint8_t wsfEventMask_t
Event handler event mask data type.
Definition: wsf_os.h:77
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:74
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:97
void L2cSlaveHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
The WSF event handler for L2C when operating as a slave.