|
InPlay API
|
BLE Alert Notification Service. More...
Data Structures | |
| struct | ble_anp_prf_t |
| Category ID Field Keys. More... | |
| struct | ble_anps_cfg_t |
| Parameters of the ANPS_ENABLE_REQ message. More... | |
Macros | |
| #define | BLE_ANS_NEW_ALERT_STRING_INFO_MAX_LEN (18) |
| New Alert Characteristic Value - Text String Information Max Length. | |
Enumerations | |
| enum | ble_anp_ntf_category_id_bits |
| Alert Category ID Bit Mask 0 Masks. | |
| enum | ble_anp_alert_type { BLE_ANP_NEW_ALERT = 0 } |
| Alert codes. More... | |
| enum | ble_anp_evt |
| Events defines for ANP Services. | |
| enum | ble_pasp_ringer_setting { BLE_PASP_RINGER_SILENT = (0) } |
| Ringer setting. More... | |
| enum | ble_pasp_alert_status { BLE_PASP_RINGER_ACTIVE = (0x01) } |
| Alert status. More... | |
| enum | ble_pasp_cmd { BLE_PASP_SILENT_MODE_CMD = (1) } |
| Command. More... | |
| enum | ble_pasp_evt |
| Events defines for ANP Services. | |
Functions | |
| int | in_ble_anps_add (void *hdl, ble_anp_prf_t *p_prf, comp_cb callback) |
| Add ANP Server Service. More... | |
| int | in_ble_anps_enable (void *hdl, int conidx, struct anps_enable_rsp *p_rsp, comp_cb callback) |
| Enable ANP service. More... | |
| int | in_ble_anps_notify_alert (void *hdl, int conidx, enum ble_anp_alert_type alert_type, ble_anp_notify_alert_value value, struct anps_cmp_evt *p_rsp, comp_cb callback) |
| Send new alert notification or indication to peer device. More... | |
| int | in_ble_anpc_add (void *hdl, ble_anp_prf_t *p_prf, comp_cb callback) |
| Add ANP Client Service. More... | |
| int | in_ble_anpc_enable (void *hdl, int conidx, struct anpc_enable_rsp *p_rsp, comp_cb callback) |
| Enable ANP client. More... | |
| int | in_ble_anpc_get_ntf_supp_categroy (void *hdl, int conidx, enum ble_anp_alert_type alert_type, enum ble_anp_ntf_category_id_bits *p_supp_cat, comp_cb callback) |
| Get ANP server supported category. More... | |
| int | in_ble_anpc_get_ntf_status (void *hdl, int conidx, enum ble_anp_alert_type alert_type, enum ble_ntf_cfg *p_alert_ntf_cfg, comp_cb callback) |
| Get ANP server notification status. More... | |
| int | in_ble_anpc_set_ntf_status (void *hdl, int conidx, enum ble_anp_alert_type alert_type, enum ble_ntf_cfg alert_ntf_cfg, comp_cb callback) |
| Get ANP server notification status. More... | |
| int | in_ble_anpc_set_ntf_cat_status (void *hdl, int conidx, enum ble_anp_alert_type alert_type, enum ble_anp_ntf_category_id_bits cat_id, enum ble_ntf_cfg ntf_cfg, comp_cb callback) |
| Set ANP server notification status for individual category. More... | |
| int | in_ble_anpc_req_ntf_immediately (void *hdl, int conidx, enum ble_anp_alert_type alert_type, enum ble_anp_ntf_category_id_bits cat_id, comp_cb callback) |
| Ask ANP server to send notification immediately for individual category. More... | |
| int | in_ble_pasps_add (void *hdl, ble_pasp_prf_t *p_prf, comp_cb callback) |
| Add PASP service. It's the first function called. More... | |
| int | in_ble_pasps_enable (void *hdl, int conidx, comp_cb callback) |
| Enable PASP service. More... | |
| int | in_ble_pasps_update_alert_status (void *hdl, int conidx, enum ble_pasp_alert_status alert_status, comp_cb callback) |
| Update phone alert status in PASP service. More... | |
| int | in_ble_pasps_update_ringer_setting (void *hdl, int conidx, enum ble_pasp_ringer_setting ringer_setting, comp_cb callback) |
| Update phone ringer setting in PASP service. More... | |
| int | in_ble_paspc_add (void *hdl, ble_pasp_prf_t *p_prf, comp_cb callback) |
| Add PASP client. It's the first function called. More... | |
| int | in_ble_paspc_enable (void *hdl, int conidx, struct paspc_enable_rsp *p_rsp, comp_cb callback) |
| Enable PASP client. More... | |
| int | in_ble_paspc_get_alert_status (void *hdl, int conidx, enum ble_pasp_alert_status *pAlertStatus, comp_cb callback) |
| Get PASP server's Alert Status value. More... | |
| int | in_ble_paspc_get_ringer_setting (void *hdl, int conidx, enum ble_pasp_ringer_setting *pRingerSetting, comp_cb callback) |
| Get PASP server's Ringer Settting value. More... | |
| int | in_ble_paspc_get_alert_status_ntf_cfg (void *hdl, int conidx, enum ble_ntf_cfg *pCfg, comp_cb callback) |
| Get PASP server's Alert Status notification config, Started or Stopped. More... | |
| int | in_ble_paspc_set_alert_status_ntf_cfg (void *hdl, int conidx, enum ble_ntf_cfg cfg, comp_cb callback) |
| Set PASP server's Alert Status notification config, Start or Stop. More... | |
| int | in_ble_paspc_get_ringer_setting_ntf_cfg (void *hdl, int conidx, enum ble_ntf_cfg *pCfg, comp_cb callback) |
| Get PASP server's Ringer Setting notification config, Started or Stopped. More... | |
| int | in_ble_paspc_set_ringer_setting_ntf_cfg (void *hdl, int conidx, enum ble_ntf_cfg cfg, comp_cb callback) |
| Set PASP server's Ringer Setting notification config, Start or Stop. More... | |
| int | in_ble_paspc_ringer_control (void *hdl, int conidx, enum ble_pasp_cmd ctrlCmd, comp_cb callback) |
| Set PASP server's Ringer Setting notification config, Start or Stop. More... | |
BLE Alert Notification Service.
| enum ble_anp_alert_type |
| enum ble_pasp_cmd |
| int in_ble_anpc_add | ( | void * | hdl, |
| ble_anp_prf_t * | p_prf, | ||
| comp_cb | callback | ||
| ) |
Add ANP Client Service.
| [in] | p_prf | Pointer to profile attributes, |
| int in_ble_anpc_enable | ( | void * | hdl, |
| int | conidx, | ||
| struct anpc_enable_rsp * | p_rsp, | ||
| comp_cb | callback | ||
| ) |
Enable ANP client.
| [in] | conidx | connection index |
| int in_ble_anpc_get_ntf_status | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| enum ble_ntf_cfg * | p_alert_ntf_cfg, | ||
| comp_cb | callback | ||
| ) |
Get ANP server notification status.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | p_alert_ntf_cfg | butter to receive |
| int in_ble_anpc_get_ntf_supp_categroy | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| enum ble_anp_ntf_category_id_bits * | p_supp_cat, | ||
| comp_cb | callback | ||
| ) |
Get ANP server supported category.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | p_supp_cat | butter to receive |
| int in_ble_anpc_req_ntf_immediately | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| enum ble_anp_ntf_category_id_bits | cat_id, | ||
| comp_cb | callback | ||
| ) |
Ask ANP server to send notification immediately for individual category.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | cat_id | content to send |
| int in_ble_anpc_set_ntf_cat_status | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| enum ble_anp_ntf_category_id_bits | cat_id, | ||
| enum ble_ntf_cfg | ntf_cfg, | ||
| comp_cb | callback | ||
| ) |
Set ANP server notification status for individual category.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | cat_id | |
| [in] | ntf_cfg | content to send |
| int in_ble_anpc_set_ntf_status | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| enum ble_ntf_cfg | alert_ntf_cfg, | ||
| comp_cb | callback | ||
| ) |
Get ANP server notification status.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | alert_ntf_cfg | content to send |
| int in_ble_anps_add | ( | void * | hdl, |
| ble_anp_prf_t * | p_prf, | ||
| comp_cb | callback | ||
| ) |
Add ANP Server Service.
| [in] | p_prf | Pointer to profile attributes, |
| int in_ble_anps_enable | ( | void * | hdl, |
| int | conidx, | ||
| struct anps_enable_rsp * | p_rsp, | ||
| comp_cb | callback | ||
| ) |
Enable ANP service.
| [in] | conidx | connection index |
| int in_ble_anps_notify_alert | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_anp_alert_type | alert_type, | ||
| ble_anp_notify_alert_value | value, | ||
| struct anps_cmp_evt * | p_rsp, | ||
| comp_cb | callback | ||
| ) |
Send new alert notification or indication to peer device.
| [in] | conidx | connection index |
| [in] | alert_type | alert type |
| [in] | value | new alert or unread alert content |
| int in_ble_paspc_add | ( | void * | hdl, |
| ble_pasp_prf_t * | p_prf, | ||
| comp_cb | callback | ||
| ) |
Add PASP client. It's the first function called.
| [in] | p_prf | Pointer to profile attributes, |
| int in_ble_paspc_enable | ( | void * | hdl, |
| int | conidx, | ||
| struct paspc_enable_rsp * | p_rsp, | ||
| comp_cb | callback | ||
| ) |
Enable PASP client.
| [in] | conidx | connection index |
| int in_ble_paspc_get_alert_status | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_pasp_alert_status * | pAlertStatus, | ||
| comp_cb | callback | ||
| ) |
Get PASP server's Alert Status value.
| [in] | conidx | connection index |
| [in] | pAlertStatus | butter to receive |
| int in_ble_paspc_get_alert_status_ntf_cfg | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_ntf_cfg * | pCfg, | ||
| comp_cb | callback | ||
| ) |
Get PASP server's Alert Status notification config, Started or Stopped.
| [in] | conidx | connection index |
| [in] | pCfg | butter to receive |
| int in_ble_paspc_get_ringer_setting | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_pasp_ringer_setting * | pRingerSetting, | ||
| comp_cb | callback | ||
| ) |
Get PASP server's Ringer Settting value.
| [in] | conidx | connection index |
| [in] | pRingerSetting | butter to receive |
| int in_ble_paspc_get_ringer_setting_ntf_cfg | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_ntf_cfg * | pCfg, | ||
| comp_cb | callback | ||
| ) |
Get PASP server's Ringer Setting notification config, Started or Stopped.
| [in] | conidx | connection index |
| [in] | pCfg | butter to receive |
| int in_ble_paspc_ringer_control | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_pasp_cmd | ctrlCmd, | ||
| comp_cb | callback | ||
| ) |
Set PASP server's Ringer Setting notification config, Start or Stop.
| [in] | conidx | connection index |
| [in] | ctrlCmd | Ringer Control Point command |
| int in_ble_paspc_set_alert_status_ntf_cfg | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_ntf_cfg | cfg, | ||
| comp_cb | callback | ||
| ) |
Set PASP server's Alert Status notification config, Start or Stop.
| [in] | conidx | connection index |
| [in] | cfg | Start or Stop notification |
| int in_ble_paspc_set_ringer_setting_ntf_cfg | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_ntf_cfg | cfg, | ||
| comp_cb | callback | ||
| ) |
Set PASP server's Ringer Setting notification config, Start or Stop.
| [in] | conidx | connection index |
| [in] | cfg | Start or Stop notification |
| int in_ble_pasps_add | ( | void * | hdl, |
| ble_pasp_prf_t * | p_prf, | ||
| comp_cb | callback | ||
| ) |
Add PASP service. It's the first function called.
| [in] | p_prf | Pointer to profile attributes, |
| int in_ble_pasps_enable | ( | void * | hdl, |
| int | conidx, | ||
| comp_cb | callback | ||
| ) |
Enable PASP service.
| [in] | conidx | connection index |
| int in_ble_pasps_update_alert_status | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_pasp_alert_status | alert_status, | ||
| comp_cb | callback | ||
| ) |
Update phone alert status in PASP service.
| [in] | conidx | connection index |
| [in] | alert_status | new phone alert status to update |
| int in_ble_pasps_update_ringer_setting | ( | void * | hdl, |
| int | conidx, | ||
| enum ble_pasp_ringer_setting | ringer_setting, | ||
| comp_cb | callback | ||
| ) |
Update phone ringer setting in PASP service.
| [in] | conidx | connection index |
| [in] | ringer_setting | new ringer setting to update |