Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
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. | |
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) |
WPT Service Client event type.
Definition at line 31 of file ble_wpts_c.h.
uint32_t ble_wpts_c_init | ( | const ble_wpts_c_init_t * | p_wpts_c_init | ) |
Initialize the WPT Service Client.
[in] | p_wpts_c_init | Information needed to initialize the service. |
Definition at line 354 of file ble_wpts_c.c.
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.
Handles all events from the BLE stack of interest to the WPT Service Client.
[in] | p_wpts_c | WPT Service Client structure. |
[in] | p_ble_evt | Event received from the BLE stack. |
Definition at line 311 of file ble_wpts_c.c.
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.
The application calls this function to send a PRU Control message to the PRU server.
[in] | p_wpts_c | WPT Service Client structure. |
[in] | p_wpts_pru_control | PRU control value. |
Definition at line 366 of file ble_wpts_c.c.
uint32_t ble_wpts_c_enable_pru_alert_notification | ( | ble_wpts_c_t * | p_wpts_c | ) |
Enable alert notifications to be sent from PRU.
[in] | p_wpts_c | WPT Service Client structure. |
Definition at line 465 of file ble_wpts_c.c.
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.
The application calls this function to read the PRU Static Parameter characterisic value from the PRU server.
[in] | p_wpts_c | WPT Service Client structure. |
Definition at line 403 of file ble_wpts_c.c.
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.
The application calls this function to read the PRU Dynamic Parameter characterisic value from the PRU server.
[in] | p_wpts_c | WPT Service Client structure. |
Definition at line 408 of file ble_wpts_c.c.
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.
The application calls this function to write the PTU Static Parameter characteristic to the PRU server.
[in] | p_wpts_c | WPT Service Client structure. |
[in] | p_wpts_ptu_static | PTU Static characteristic value. |
Definition at line 413 of file ble_wpts_c.c.
uint32_t ble_wpts_service_data_read | ( | ble_gap_evt_adv_report_t * | p_adv_report, |
ble_wpts_service_data_t * | p_service_data | ||
) |
Read advertising packet, search for Service Data AD Type and return contents
[in] | p_adv_report | Advertising report to parse. |
[out] | p_service_data | Struct in which to return service data contents. |
Definition at line 483 of file ble_wpts_c.c.
void ble_wpts_char_handles_update | ( | uint16_t | prim_service_handle, |
ble_wpts_c_t * | p_wpts_c | ||
) |
Derive and update characteristic handles from WPT primary service handle.
[in] | prim_service_handle | Primary service handle from which to derive characteristic handles. |
[out] | p_wpts_c | Struct holding handles to be updated. Only the characteristic handles in this struct will be updated. |
Definition at line 529 of file ble_wpts_c.c.