RAFW Flexible Software Package Documentation  Release v2.0.1

 

Functions

ble_status_t R_BLE_EATT_Enable (uint16_t conn_hdl)
 Enable EATT bearers. More...
 
ble_status_t R_BLE_EATT_GetState (uint16_t conn_hdl, uint8_t *p_state)
 Check if EATT is enabled for the connection. More...
 

Detailed Description

Data Structures

struct  st_ble_eatt_enabled_evt_t
 This structure notifies that the EATT Channel has been enabled. More...
 
struct  st_ble_eatt_disabled_evt_t
 This structure notifies that the EATT Channel has been disabled. More...
 

Macros

#define BLE_EATT_NUM_ECB_BEARERS_MAX
 Maximum number of supported EATT Channel.
 
#define BLE_EATT_ENABLED
 EATT Channel Opened.
 
#define BLE_EATT_DISABLED
 EATT Channel Closed.
 

Enumerations

enum  e_r_ble_eatt_evt_t
 EATT Event Identifier. More...
 

Data Structure Documentation

◆ st_ble_eatt_enabled_evt_t

struct st_ble_eatt_enabled_evt_t

This structure notifies that the EATT Channel has been enabled.

Data Fields
uint16_t channel_num Number of opened eatt channel.
uint16_t mtu[BLE_EATT_NUM_ECB_BEARERS_MAX] MTU for each eatt channel.

◆ st_ble_eatt_disabled_evt_t

struct st_ble_eatt_disabled_evt_t

This structure notifies that the EATT Channel has been disabled.

Data Fields
uint16_t cid disabled eatt channel cid.

Enumeration Type Documentation

◆ e_r_ble_eatt_evt_t

EATT Event Identifier.

Enumerator
BLE_EATT_EVENT_ENABLED 

EATT Channel Enabled.

This event notifies the application layer that a EATT Channel is opened.

Event Code: 0x9001

Event Data:

st_ble_eatt_enabled_evt_tBLE_EATT_EVENT_ENABLED

BLE_EATT_EVENT_DISABLED 

EATT Channel Disabled.

This event notifies the application layer that a EATT Channel is closed.

Event Code: 0x9002

Event Data:

st_ble_eatt_disabled_evt_tBLE_EATT_EVENT_DISABLED

Function Documentation

◆ R_BLE_EATT_Enable()

ble_status_t R_BLE_EATT_Enable ( uint16_t  conn_hdl)

Enable EATT bearers.

When this API is called, to request L2CAP channel Enhanced Credit Based Flow Control Mode.

Parameters
[in]conn_hdlConnection handle identifying the remote device.
Return values
BLE_SUCCESS(0x0000)Success
BLE_ERR_INVALID_STATE(0x0008)R_BLE_EATT_Enable has been called.
BLE_ERR_INVALID_HDL(0x000E)The remote device specified by conn_hdl was not found.

◆ R_BLE_EATT_GetState()

ble_status_t R_BLE_EATT_GetState ( uint16_t  conn_hdl,
uint8_t *  p_state 
)

Check if EATT is enabled for the connection.

Check if EATT is enabled for the connection.

Parameters
[in]conn_hdlConnection handle identifying the remote device.
[out]p_statewheather EATT is enabled for the connection.
macro description
BLE_EATT_DISABLED(0x00) EATT channel has not been enabled.
BLE_EATT_ENABLED (0x01) EATT channel has been enabled.
Return values
BLE_SUCCESS(0x0000)Success
BLE_ERR_INVALID_PTR(0x0001)The p_state parameter is NULL.
BLE_ERR_INVALID_HDL(0x000E)The remote device specified by conn_hdl was not found.