Bluetooth Low Energy Host Stack  Rev. 4
API Reference Manual
l2ca_cb_interface.h File Reference
#include "ble_general.h"
#include "l2ca_types.h"

Data Structures

struct  l2caLeCbConnectionRequest_t
 
struct  l2caLeCbConnectionComplete_t
 
struct  l2caLeCbDisconnection_t
 
struct  l2caLeCbNoPeerCredits_t
 
struct  l2caLeCbLocalCreditsNotification_t
 

Typedefs

typedef l2caControlCallback_t l2caLeCbControlCallback_t
 
typedef void(* l2caLeCbDataCallback_t) (deviceId_t deviceId, uint16_t channelId, uint8_t *pPacket, uint16_t packetLength)
 

Enumerations

enum  l2caLeCbConnectionRequestResult_t {
  gSuccessful_c, gLePsmNotSupported_c, gNoResourcesAvailable_c, gInsufficientAuthentication_c,
  gInsufficientAuthorization_c, gInsufficientEncryptionKeySize_c, gInsufficientEncryption_c, gInvalidSourceCid_c,
  gSourceCidAreadyAllocated_c, gCommandRejected_c, gResponseTimeout_c
}
 

Functions

bleResult_t L2ca_RegisterLeCbCallbacks (l2caLeCbDataCallback_t pCallback, l2caLeCbControlCallback_t pCtrlCallback)
 
bleResult_t L2ca_RegisterLePsm (uint16_t lePsm, uint16_t lePsmMtu)
 
bleResult_t L2ca_DeregisterLePsm (uint16_t lePsm)
 
bleResult_t L2ca_ConnectLePsm (uint16_t lePsm, deviceId_t deviceId, uint16_t initialCredits)
 
bleResult_t L2ca_DisconnectLeCbChannel (deviceId_t deviceId, uint16_t channelId)
 
bleResult_t L2ca_CancelConnection (uint16_t lePsm, deviceId_t deviceId, l2caLeCbConnectionRequestResult_t refuseReason)
 
bleResult_t L2ca_SendLeCbData (deviceId_t deviceId, uint16_t channelId, uint8_t *pPacket, uint16_t packetLength)
 
bleResult_t L2ca_SendLeCredit (deviceId_t deviceId, uint16_t channelId, uint16_t credits)
 

Detailed Description

Copyright (c) 2014, Freescale Semiconductor, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

o Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

o Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

o Neither the name of Freescale Semiconductor, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.