RSeries astromech firmware
l2c_api.h File Reference
#include <stdbool.h>
#include "bt/private/stack/l2cdefs.h"
#include "bt/private/stack/hcidefs.h"
+ Include dependency graph for l2c_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define L2CAP_MIN_OFFSET   13 /* plus control(2), SDU length(2) */
 
#define L2CAP_DW_FAILED   false
 
#define L2CAP_DW_SUCCESS   true
 
#define L2CAP_DW_CONGESTED   2
 
#define L2CAP_FCR_BASIC_MODE   0x00
 
#define L2CAP_FCR_ERTM_MODE   0x03
 
#define L2CAP_FCR_STREAM_MODE   0x04
 
#define L2CA_REGISTER(a, b, c)   L2CA_Register(a,(tL2CAP_APPL_INFO *)b)
 
#define L2CA_DEREGISTER(a)   L2CA_Deregister(a)
 
#define L2CA_CONNECT_REQ(a, b, c, d)   L2CA_ErtmConnectReq(a,b,c)
 
#define L2CA_CONNECT_RSP(a, b, c, d, e, f, g)   L2CA_ErtmConnectRsp(a,b,c,d,e,f)
 
#define L2CA_CONFIG_REQ(a, b)   L2CA_ConfigReq(a,b)
 
#define L2CA_CONFIG_RSP(a, b)   L2CA_ConfigRsp(a,b)
 
#define L2CA_DISCONNECT_REQ(a)   L2CA_DisconnectReq(a)
 
#define L2CA_DISCONNECT_RSP(a)   L2CA_DisconnectRsp(a)
 
#define L2CA_DATA_WRITE(a, b)   L2CA_DataWrite(a, b)
 

Typedefs

typedef void() tL2CA_CONNECT_IND_CB(BD_ADDR, UINT16, UINT16, UINT8)
 
typedef void() tL2CA_CONNECT_CFM_CB(UINT16, UINT16)
 
typedef void() tL2CA_CONNECT_PND_CB(UINT16)
 
typedef void() tL2CA_CONFIG_IND_CB(UINT16, tL2CAP_CFG_INFO *)
 
typedef void() tL2CA_CONFIG_CFM_CB(UINT16, tL2CAP_CFG_INFO *)
 
typedef void() tL2CA_DISCONNECT_IND_CB(UINT16, BOOLEAN)
 
typedef void() tL2CA_DISCONNECT_CFM_CB(UINT16, UINT16)
 
typedef void() tL2CA_QOS_VIOLATION_IND_CB(BD_ADDR)
 
typedef void() tL2CA_DATA_IND_CB(UINT16, BT_HDR *)
 
typedef void() tL2CA_CONGESTION_STATUS_CB(UINT16, BOOLEAN)
 
typedef void() tL2CA_TX_COMPLETE_CB(UINT16, UINT16)
 

Functions

UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info)
 
void L2CA_Deregister (UINT16 psm)
 
UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr, tL2CAP_ERTM_INFO *p_ertm_info)
 
BOOLEAN L2CA_ErtmConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result, UINT16 status, tL2CAP_ERTM_INFO *p_ertm_info)
 
BOOLEAN L2CA_ConfigReq (UINT16 cid, tL2CAP_CFG_INFO *p_cfg)
 
BOOLEAN L2CA_ConfigRsp (UINT16 cid, tL2CAP_CFG_INFO *p_cfg)
 
BOOLEAN L2CA_DisconnectReq (UINT16 cid)
 
BOOLEAN L2CA_DisconnectRsp (UINT16 cid)
 
UINT8 L2CA_DataWrite (UINT16 cid, BT_HDR *p_data)
 

Macro Definition Documentation

◆ L2CA_CONFIG_REQ

#define L2CA_CONFIG_REQ (   a,
 
)    L2CA_ConfigReq(a,b)

◆ L2CA_CONFIG_RSP

#define L2CA_CONFIG_RSP (   a,
 
)    L2CA_ConfigRsp(a,b)

◆ L2CA_CONNECT_REQ

#define L2CA_CONNECT_REQ (   a,
  b,
  c,
 
)    L2CA_ErtmConnectReq(a,b,c)

◆ L2CA_CONNECT_RSP

#define L2CA_CONNECT_RSP (   a,
  b,
  c,
  d,
  e,
  f,
 
)    L2CA_ErtmConnectRsp(a,b,c,d,e,f)

◆ L2CA_DATA_WRITE

#define L2CA_DATA_WRITE (   a,
 
)    L2CA_DataWrite(a, b)

◆ L2CA_DEREGISTER

#define L2CA_DEREGISTER (   a)    L2CA_Deregister(a)

◆ L2CA_DISCONNECT_REQ

#define L2CA_DISCONNECT_REQ (   a)    L2CA_DisconnectReq(a)

◆ L2CA_DISCONNECT_RSP

#define L2CA_DISCONNECT_RSP (   a)    L2CA_DisconnectRsp(a)

◆ L2CA_REGISTER

#define L2CA_REGISTER (   a,
  b,
 
)    L2CA_Register(a,(tL2CAP_APPL_INFO *)b)

◆ L2CAP_DW_CONGESTED

#define L2CAP_DW_CONGESTED   2

◆ L2CAP_DW_FAILED

#define L2CAP_DW_FAILED   false

◆ L2CAP_DW_SUCCESS

#define L2CAP_DW_SUCCESS   true

◆ L2CAP_FCR_BASIC_MODE

#define L2CAP_FCR_BASIC_MODE   0x00

◆ L2CAP_FCR_ERTM_MODE

#define L2CAP_FCR_ERTM_MODE   0x03

◆ L2CAP_FCR_STREAM_MODE

#define L2CAP_FCR_STREAM_MODE   0x04

◆ L2CAP_MIN_OFFSET

#define L2CAP_MIN_OFFSET   13 /* plus control(2), SDU length(2) */

Typedef Documentation

◆ tL2CA_CONFIG_CFM_CB

typedef void() tL2CA_CONFIG_CFM_CB(UINT16, tL2CAP_CFG_INFO *)

◆ tL2CA_CONFIG_IND_CB

typedef void() tL2CA_CONFIG_IND_CB(UINT16, tL2CAP_CFG_INFO *)

◆ tL2CA_CONGESTION_STATUS_CB

typedef void() tL2CA_CONGESTION_STATUS_CB(UINT16, BOOLEAN)

◆ tL2CA_CONNECT_CFM_CB

typedef void() tL2CA_CONNECT_CFM_CB(UINT16, UINT16)

◆ tL2CA_CONNECT_IND_CB

typedef void() tL2CA_CONNECT_IND_CB(BD_ADDR, UINT16, UINT16, UINT8)

◆ tL2CA_CONNECT_PND_CB

typedef void() tL2CA_CONNECT_PND_CB(UINT16)

◆ tL2CA_DATA_IND_CB

typedef void() tL2CA_DATA_IND_CB(UINT16, BT_HDR *)

◆ tL2CA_DISCONNECT_CFM_CB

typedef void() tL2CA_DISCONNECT_CFM_CB(UINT16, UINT16)

◆ tL2CA_DISCONNECT_IND_CB

typedef void() tL2CA_DISCONNECT_IND_CB(UINT16, BOOLEAN)

◆ tL2CA_QOS_VIOLATION_IND_CB

typedef void() tL2CA_QOS_VIOLATION_IND_CB(BD_ADDR)

◆ tL2CA_TX_COMPLETE_CB

typedef void() tL2CA_TX_COMPLETE_CB(UINT16, UINT16)

Function Documentation

◆ L2CA_ConfigReq()

BOOLEAN L2CA_ConfigReq ( UINT16  cid,
tL2CAP_CFG_INFO *  p_cfg 
)

◆ L2CA_ConfigRsp()

BOOLEAN L2CA_ConfigRsp ( UINT16  cid,
tL2CAP_CFG_INFO *  p_cfg 
)

◆ L2CA_DataWrite()

UINT8 L2CA_DataWrite ( UINT16  cid,
BT_HDR *  p_data 
)

◆ L2CA_Deregister()

void L2CA_Deregister ( UINT16  psm)

◆ L2CA_DisconnectReq()

BOOLEAN L2CA_DisconnectReq ( UINT16  cid)

◆ L2CA_DisconnectRsp()

BOOLEAN L2CA_DisconnectRsp ( UINT16  cid)

◆ L2CA_ErtmConnectReq()

UINT16 L2CA_ErtmConnectReq ( UINT16  psm,
BD_ADDR  p_bd_addr,
tL2CAP_ERTM_INFO *  p_ertm_info 
)

◆ L2CA_ErtmConnectRsp()

BOOLEAN L2CA_ErtmConnectRsp ( BD_ADDR  p_bd_addr,
UINT8  id,
UINT16  lcid,
UINT16  result,
UINT16  status,
tL2CAP_ERTM_INFO *  p_ertm_info 
)

◆ L2CA_Register()

UINT16 L2CA_Register ( UINT16  psm,
tL2CAP_APPL_INFO *  p_cb_info 
)