BTA_JvSetPmProfile() function
* Function BTA_JVSetPmProfile * Description This function set or free power mode profile for different JV application * Parameters: handle, JV handle from RFCOMM or L2CAP * app_id: app specific pm ID, can be BTA_JV_PM_ALL, see bta_dm_cfg.c for details * BTA_JV_PM_ID_CLEAR: removes pm management on the handle. init_st is ignored and * BTA_JV_CONN_CLOSE is called implicitly * init_st: state after calling this API. typically it should be BTA_JV_CONN_OPEN * Returns BTA_JV_SUCCESS, if the request is being processed. * BTA_JV_FAILURE, otherwise. * NOTE: BTA_JV_PM_ID_CLEAR: In general no need to be called as jv pm calls automatically * BTA_JV_CONN_CLOSE to remove in case of connection close!
![]()
tBTA_JV_STATUS BTA_JvSetPmProfile(UINT32 handle, tBTA_JV_PM_ID app_id, tBTA_JV_CONN_STATE init_st)![]()
extern tBTA_JV_STATUS BTA_JvSetPmProfile(UINT32 handle, tBTA_JV_PM_ID app_id, tBTA_JV_CONN_STATE init_st);![]()
BTA_JvSetPmProfile(p_data->l2c_open.handle, BTA_JV_PM_ID_1, BTA_JV_CONN_OPEN);![]()
BTA_JvSetPmProfile(p_data->rfc_srv_open.handle, BTA_JV_PM_ALL, BTA_JV_CONN_OPEN);![]()
BTA_JvSetPmProfile(p_data->rfc_open.handle, BTA_JV_PM_ID_1, BTA_JV_CONN_OPEN);
BTA_JvSetPmProfile() is called by 2 functions and calls 4 functions:
![]()
BTA_JvSetPmProfile()
BTA_JvSetPmProfile() reads 4 variables and writes 4 variables:
![]()
BTA_JvSetPmProfile()