Maxim Integrated / MaximBLE

Dependents:   BLE_Thermometer MAXWSNENV_demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers l2c_handler.h Source File

l2c_handler.h

Go to the documentation of this file.
00001 /*************************************************************************************************/
00002 /*!
00003  *  \file   l2c_handler.h
00004  *        
00005  *  \brief  L2CAP handler interface.
00006  *
00007  *          $Date $
00008  *          $Revision $
00009  *  
00010  *  Copyright (c) 2009-2016 ARM Limited. All rights reserved.
00011  *
00012  *  SPDX-License-Identifier: LicenseRef-PBL
00013  *
00014  *  Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use
00015  *  this file except in compliance with the License.  You may obtain a copy of the License at
00016  *
00017  *  https://www.mbed.com/licenses/PBL-1.0
00018  *
00019  *  See the License for the specific language governing permissions and limitations under the License.
00020  */
00021 /*************************************************************************************************/
00022 #ifndef L2C_HANDLER_H
00023 #define L2C_HANDLER_H
00024 
00025 #include "wsf_os.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 /**************************************************************************************************
00032   Function Declarations
00033 **************************************************************************************************/
00034 
00035 /*************************************************************************************************/
00036 /*!
00037  *  \fn     L2cSlaveHandlerInit
00038  *        
00039  *  \brief  Event handler initialization function for L2C when operating as a slave.
00040  *
00041  *  \param  handlerId  ID for this event handler.
00042  *
00043  *  \return None.
00044  */
00045 /*************************************************************************************************/
00046 void L2cSlaveHandlerInit(wsfHandlerId_t handlerId);
00047 
00048 /*************************************************************************************************/
00049 /*!
00050  *  \fn     L2cSlaveHandler
00051  *        
00052  *  \brief  The WSF event handler for L2C when operating as a slave.
00053  *
00054  *  \param  event   Event mask.
00055  *  \param  pMsg    Pointer to message.
00056  *
00057  *  \return None.
00058  */
00059 /*************************************************************************************************/
00060 void L2cSlaveHandler(wsfEventMask_t event, wsfMsgHdr_t  *pMsg);
00061 
00062 #ifdef __cplusplus
00063 };
00064 #endif
00065 
00066 #endif /* L2C_HANDLER_H */