Maxim Integrated / MaximBLE

Dependents:   BLE_Thermometer MAXWSNENV_demo

Embed: (wiki syntax)

« Back to documentation index

l2c_api.h File Reference

l2c_api.h File Reference

L2CAP subsystem API. More...

Go to the source code of this file.

Typedefs

typedef void(* l2cDataCback_t )(uint16_t handle, uint16_t len, uint8_t *pPacket)
 This callback function sends a received L2CAP packet to the client.
typedef void(* l2cCtrlCback_t )(wsfMsgHdr_t *pMsg)
 This callback function sends control messages to the client.

Functions

void L2cInit (void)
 Initialize L2C subsystem.
void L2cMasterInit (void)
 Initialize L2C for operation as a Bluetooth LE master.
void L2cSlaveInit (void)
 Initialize L2C for operation as a Bluetooth LE slave.

Detailed Description

L2CAP subsystem API.

Date:
2012-03-07 22:32:20 -0800 (Wed, 07 Mar 2012)
Revision:
268

Copyright (c) 2009-2016 ARM Limited. All rights reserved.

SPDX-License-Identifier: LicenseRef-PBL

Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.mbed.com/licenses/PBL-1.0

See the License for the specific language governing permissions and limitations under the License.

Definition in file l2c_api.h.


Typedef Documentation

This callback function sends control messages to the client.

Parameters:
pMsgPointer to message structure.
Returns:
None.

Definition at line 70 of file l2c_api.h.

This callback function sends a received L2CAP packet to the client.

Parameters:
handleThe connection handle.
lenThe length of the L2CAP payload data in pPacket.
pPacketA buffer containing the packet.
Returns:
None.

Definition at line 57 of file l2c_api.h.


Function Documentation

L2cInit ( void   )

Initialize L2C subsystem.

Returns:
None.
L2cMasterInit ( void   )

Initialize L2C for operation as a Bluetooth LE master.

Returns:
None.
L2cSlaveInit ( void   )

Initialize L2C for operation as a Bluetooth LE slave.

Returns:
None.