Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
ptu_power_sharing.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_POWER_SHARING_H__
21 #define PTU_POWER_SHARING_H__
22 
23 #include <stdbool.h>
24 #include "ble_wpts_c.h"
25 #include "ptu.h"
26 
32 uint32_t ptu_power_sharing_init(ptu_sm_handler_t sm_handler);
33 
39 void ptu_power_sharing_on_wpt_service_evt(ble_wpts_c_t * p_wpts_c, ble_wpts_c_evt_t * const p_wpts_c_evt);
40 
48 
49 #endif /* PTU_POWER_SHARING_H__ */
50 
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
void ptu_power_sharing_temperature_warning_set(bool warning)
Inform power control module that PTU is having a high temperature warning. When this occurs the power...
WPT Service Client event.
Definition: ble_wpts_c.h:44
void ptu_power_sharing_on_wpt_service_evt(ble_wpts_c_t *p_wpts_c, ble_wpts_c_evt_t *const p_wpts_c_evt)
Handle service events.
uint32_t ptu_power_sharing_init(ptu_sm_handler_t sm_handler)
Initialize power sharing module.