Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
ptu_conn_man.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
20 #ifndef __PTU_CONN_MAN_H__
21 #define __PTU_CONN_MAN_H__
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 #include "ptu_registry.h"
27 #include "ptu.h"
28 
34 uint32_t ptu_cm_init(ptu_sm_handler_t sm_handler);
35 
40 void ptu_cm_remove_device(ptu_reg_item_t * reg_item_p);
41 
47 
50 void ptu_cm_scan_enable(void);
51 
54 void ptu_cm_scan_disable(void);
55 
60 void ptu_cm_on_ble_evt(ble_evt_t * p_ble_evt);
61 
67 void ptu_cm_on_wpt_service_evt(ble_wpts_c_t * p_wpts_c, ble_wpts_c_evt_t * const p_wpts_c_evt);
68 
71 void ptu_cm_disconnect_all(void);
72 
75 void ptu_cm_dynamic_read_all(void);
76 
77 #endif /* __PTU_CONN_MAN_H__ */
78 
Registry item.
Definition: ptu_registry.h:47
WPT Service Client structure. This contains various status information for the service.
Definition: ble_wpts_c.h:57
void(* ptu_sm_handler_t)(ptu_sm_signal_type_t signal)
Definition: ptu.h:30
uint32_t ptu_cm_init(ptu_sm_handler_t sm_handler)
Initialize connection manager.
Definition: ptu_conn_man.c:861
void ptu_cm_disconnect_all(void)
Disconnect all PRUs.
void ptu_cm_on_ble_evt(ble_evt_t *p_ble_evt)
BLE event handler.
Definition: ptu_conn_man.c:894
void ptu_cm_scan_disable(void)
Disable scanning.
void ptu_cm_scan_enable(void)
Enable scanning.
WPT Service Client event.
Definition: ble_wpts_c.h:44
void ptu_cm_dynamic_read_all(void)
Issue read request for the PRU dynamic characteristic to all registerred PRUs.
void ptu_cm_remove_device(ptu_reg_item_t *reg_item_p)
Disconnect and/or unregister any device.
Definition: ptu_conn_man.c:836
bool ptu_cm_mode_trans_in_progress(void)
Get mode transition status.
Definition: ptu_conn_man.c:855
void ptu_cm_on_wpt_service_evt(ble_wpts_c_t *p_wpts_c, ble_wpts_c_evt_t *const p_wpts_c_evt)
Handle service events.
Definition: ptu_conn_man.c:952