RSeries astromech firmware
gap_api.h File Reference
+ Include dependency graph for gap_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GAP_EVT_CONN_OPENED   0x0100
 
#define GAP_EVT_CONN_CLOSED   0x0101
 
#define GAP_EVT_CONN_DATA_AVAIL   0x0102
 
#define GAP_EVT_CONN_CONGESTED   0x0103
 
#define GAP_EVT_CONN_UNCONGESTED   0x01043
 
#define GAP_INVALID_HANDLE   0xFFFF
 

Typedefs

typedef void() tGAP_CONN_CALLBACK(UINT16 gap_handle, UINT16 event)
 

Functions

UINT16 GAP_ConnOpen (const char *p_serv_name, UINT8 service_id, BOOLEAN is_server, BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, tL2CAP_ERTM_INFO *ertm_info, UINT16 security, UINT8 chan_mode_mask, tGAP_CONN_CALLBACK *p_cb)
 
UINT16 GAP_ConnClose (UINT16 gap_handle)
 
UINT16 GAP_ConnBTRead (UINT16 gap_handle, BT_HDR **pp_buf)
 
UINT16 GAP_ConnBTWrite (UINT16 gap_handle, BT_HDR *p_buf)
 
UINT16 GAP_ConnGetL2CAPCid (UINT16 gap_handle)
 

Macro Definition Documentation

◆ GAP_EVT_CONN_CLOSED

#define GAP_EVT_CONN_CLOSED   0x0101

◆ GAP_EVT_CONN_CONGESTED

#define GAP_EVT_CONN_CONGESTED   0x0103

◆ GAP_EVT_CONN_DATA_AVAIL

#define GAP_EVT_CONN_DATA_AVAIL   0x0102

◆ GAP_EVT_CONN_OPENED

#define GAP_EVT_CONN_OPENED   0x0100

◆ GAP_EVT_CONN_UNCONGESTED

#define GAP_EVT_CONN_UNCONGESTED   0x01043

◆ GAP_INVALID_HANDLE

#define GAP_INVALID_HANDLE   0xFFFF

Typedef Documentation

◆ tGAP_CONN_CALLBACK

typedef void() tGAP_CONN_CALLBACK(UINT16 gap_handle, UINT16 event)

Function Documentation

◆ GAP_ConnBTRead()

UINT16 GAP_ConnBTRead ( UINT16  gap_handle,
BT_HDR **  pp_buf 
)

◆ GAP_ConnBTWrite()

UINT16 GAP_ConnBTWrite ( UINT16  gap_handle,
BT_HDR *  p_buf 
)

◆ GAP_ConnClose()

UINT16 GAP_ConnClose ( UINT16  gap_handle)

◆ GAP_ConnGetL2CAPCid()

UINT16 GAP_ConnGetL2CAPCid ( UINT16  gap_handle)

◆ GAP_ConnOpen()

UINT16 GAP_ConnOpen ( const char *  p_serv_name,
UINT8  service_id,
BOOLEAN  is_server,
BD_ADDR  p_rem_bda,
UINT16  psm,
tL2CAP_CFG_INFO *  p_cfg,
tL2CAP_ERTM_INFO *  ertm_info,
UINT16  security,
UINT8  chan_mode_mask,
tGAP_CONN_CALLBACK p_cb 
)