BT 5.0: Add APIs to support set/read PHYs
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / include / oal-event.h
index 16b3c0f..7fd4742 100644 (file)
@@ -165,6 +165,10 @@ extern "C" {
        EVENT(OAL_EVENT_GATTS_IND_CONFIRM)                  /* gatts Indiction confirmation from remote client */\
        EVENT(OAL_EVENT_GATTS_NOTIFICATION)                 /* gatts Notification from remote client */\
        EVENT(OAL_EVENT_GATTS_MTU_CHANGED)                  /* gatts MTU changed */\
+       EVENT(OAL_EVENT_GATTS_PHY_UPDATED)                      /* gatts PHY UPDATED event */\
+       EVENT(OAL_EVENT_GATTS_PHY_READ)                         /* gatts PHY READ event */\
+       EVENT(OAL_EVENT_GATTC_PHY_UPDATED)                      /* gattc PHY UPDATED event */\
+       EVENT(OAL_EVENT_GATTC_PHY_READ)                         /* gattc PHY READ event */\
        EVENT(OAL_EVENT_GATTC_REGISTRATION)     /* gattc Registration Confirmed */\
        EVENT(OAL_EVENT_GATTC_CONNECTION_COMPLETED)     /* gattc connection completed */\
        EVENT(OAL_EVENT_GATTC_DISCONNECTION_COMPLETED)  /* gattc disconnection */\
@@ -361,6 +365,34 @@ typedef struct {
        int mtu_size;
 } event_gatts_mtu_changed_t;
 
+typedef struct{
+       int conn_id;
+       int tx_phy;
+       int rx_phy;
+       int status;
+} event_gatts_phy_updated_t;
+
+typedef struct{
+       int conn_id;
+       int tx_phy;
+       int rx_phy;
+       int status;
+} event_gatts_phy_read_t;
+
+typedef struct{
+       int conn_id;
+       int tx_phy;
+       int rx_phy;
+       int status;
+} event_gattc_phy_updated_t;
+
+typedef struct{
+       int conn_id;
+       int tx_phy;
+       int rx_phy;
+       int status;
+} event_gattc_phy_read_t;
+
 typedef struct {
        int server_inst;
 } event_ble_adv_status;