Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
ble_wpts.h File Reference
#include <stdint.h>
#include "ble.h"
#include "ble_srv_common.h"
#include "wpt.h"

Go to the source code of this file.

Data Structures

struct  ble_wpts_evt_t
 WPT Service event. More...
 
struct  ble_wpts_init_t
 WPT Service init structure. More...
 
struct  ble_wpts_s
 WPT Service status structure. More...
 

Typedefs

typedef struct ble_wpts_s ble_wpts_t
 WPT Service status structure.
 
typedef void(* ble_wpts_evt_handler_t) (ble_wpts_t *p_wpts, ble_wpts_evt_t *p_evt)
 WPT Service event handler type. More...
 

Enumerations

enum  ble_wpts_evt_type_t {
  BLE_WPTS_EVT_ALERT_ENABLED, BLE_WPTS_EVT_ALERT_DISABLED, BLE_WPTS_EVT_ALERT_INDICATION_CONFIRMED, BLE_WPTS_EVT_PRU_CONTROL_COMMAND,
  BLE_WPTS_EVT_PTU_STATIC_PARAMETER, BLE_WPTS_EVT_PRU_DYNAMIC_READ
}
 

Functions

uint32_t ble_wpts_init (ble_wpts_t *p_wpts, const ble_wpts_init_t *p_wpts_init)
 Initialize the WPT Service. More...
 
void ble_wpts_on_ble_evt (ble_wpts_t *p_wpts, ble_evt_t *p_ble_evt)
 WPT Service BLE stack event handler. More...
 
uint32_t ble_wpts_alert_send (ble_wpts_t *p_wpts, pru_alert_t *p_alert)
 Sends PRU alert if notification has been enabled. More...
 
uint32_t ble_wpts_pru_static_set (ble_wpts_t *p_wpts, pru_static_t *p_pru_static)
 Sets value of the PRU Static Parameter characteristic. More...
 
uint32_t ble_wpts_pru_dynamic_set (ble_wpts_t *p_wpts, pru_dynamic_t *p_pru_dynamic)
 Sets value of the PRU Dynamic Parameter characteristic. More...