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

Go to the source code of this file.

Data Structures

struct  ble_wpts_c_evt_t
 WPT Service Client event. More...
 
struct  ble_wpts_c_t
 WPT Service Client structure. This contains various status information for the service. More...
 
struct  ble_wpts_c_init_t
 WPT Service Client init structure. This contains all options and data needed for initialization of the service. More...
 

Typedefs

typedef void(* ble_wpts_c_evt_handler_t) (ble_wpts_c_t *p_wpts_c, ble_wpts_c_evt_t *p_evt)
 WPT Service Client event handler type.
 

Enumerations

enum  ble_wpts_c_evt_type_t {
  BLE_WPTS_C_EVT_DISCOVERY_OK, BLE_WPTS_C_EVT_DISCOVERY_FAILED, BLE_WPTS_C_EVT_PRU_CONTROL_WRITE_RESP, BLE_WPTS_C_EVT_PTU_STATIC_WRITE_RESP,
  BLE_WPTS_C_EVT_PRU_STATIC_READ_RESP, BLE_WPTS_C_EVT_PRU_DYNAMIC_READ_RESP, BLE_WPTS_C_EVT_PRU_ALERT_ENABLE_WRITE_RESP, BLE_WPTS_C_EVT_PRU_ALERT
}
 WPT Service Client event type. More...
 

Functions

uint32_t ble_wpts_c_init (const ble_wpts_c_init_t *p_wpts_c_init)
 Initialize the WPT Service Client. More...
 
void ble_wpts_c_on_ble_evt (ble_wpts_c_t *p_wpts_c, ble_evt_t *p_ble_evt)
 WPT Service Client BLE stack event handler. More...
 
uint32_t ble_wpts_c_send_pru_control (ble_wpts_c_t *p_wpts_c, pru_control_t *p_wpts_pru_control)
 Send a PRU Control message to the PRU server. More...
 
uint32_t ble_wpts_c_enable_pru_alert_notification (ble_wpts_c_t *p_wpts_c)
 Enable alert notifications to be sent from PRU. More...
 
uint32_t ble_wpts_c_read_pru_static (ble_wpts_c_t *p_wpts_c)
 Read the PRU Static Parameter characterisic value from the PRU server. More...
 
uint32_t ble_wpts_c_read_pru_dynamic (ble_wpts_c_t *p_wpts_c)
 Read the PRU Dynamic characterisic value from the PRU server. More...
 
uint32_t ble_wpts_c_write_ptu_static (ble_wpts_c_t *p_wpts_c, ptu_static_t *p_wpts_ptu_static)
 Write the PTU Static characteristic to the PRU server. More...
 
uint32_t ble_wpts_service_data_read (ble_gap_evt_adv_report_t *p_adv_report, ble_wpts_service_data_t *p_service_data)
 
void ble_wpts_char_handles_update (uint16_t prim_service_handle, ble_wpts_c_t *p_wpts_c)