+oal_status_t adapter_get_energy_info(uint32_t *tx_time, uint32_t *rx_time,
+ uint32_t *idle_time, uint32_t *energy_used)
+{
+ int ret;
+
+ CHECK_OAL_INITIALIZED();
+
+ OAL_CHECK_PARAMETER(tx_time, return);
+ OAL_CHECK_PARAMETER(rx_time, return);
+ OAL_CHECK_PARAMETER(idle_time, return);
+ OAL_CHECK_PARAMETER(energy_used, return);
+
+ BT_DBG("Get Adapter Energy Info");
+
+#ifdef TIZEN_BT_HAL
+ ret = blued_api->get_adapter_energy_info(tx_time, rx_time, idle_time, energy_used);
+ if (ret != BT_STATUS_SUCCESS) {
+ BT_ERR("get_adapter_energy_info failed: [%s]", status2string(ret));
+ return convert_to_oal_status(ret);
+ }
+#else
+ BT_INFO("Not Supported");
+ ret = OAL_STATUS_NOT_SUPPORT;
+#endif
+ return ret;
+}
+