Partial implementation of BlueGiga's BGAPI for use with the BLE112/3 modules over UART.

Embed: (wiki syntax)

« Back to documentation index

callbacks.h File Reference

callbacks.h File Reference

Definitions of function callbacks that BGLib will invoke. More...

Go to the source code of this file.

Typedefs

typedef void(* hello_callback_t )()
 Function pointer for Hello response handler.
typedef void(* get_info_callback_t )(ble_msg_system_get_info_rsp_t)
 Function pointer for Get Info response handler.
typedef void(* boot_callback_t )(ble_msg_system_boot_evt_t)
 Function pointer for System Boot event handler.
typedef void(* timestamp_callback_t )()
 Function pointer for timestamping.
typedef void(* discover_callback_t )(ble_msg_gap_discover_rsp_t)
 Function pointer for Discover response handler.
typedef void(* scan_result_callback_t )(ble_msg_gap_scan_result_evt_t)
 Function pointer for Scan Result event handler.

Detailed Description

Definitions of function callbacks that BGLib will invoke.

In order to take advantage of these callbacks, use the corresponding setter in the BGLib API.

Definition in file callbacks.h.


Typedef Documentation

Function pointer for System Boot event handler.

Parameters:
ble_msg_system_boot_evt_tA data structure containing the data from the System Boot event.

Definition at line 23 of file callbacks.h.

Function pointer for Discover response handler.

Parameters:
ble_msg_gap_discover_rsp_tA data structure containing the response.

Definition at line 32 of file callbacks.h.

Function pointer for Get Info response handler.

Parameters:
ble_msg_system_get_info_rsp_tA data structure containing the response.

Definition at line 18 of file callbacks.h.

typedef void(* hello_callback_t)()

Function pointer for Hello response handler.

This is a pointer to a callback for the Hello response. It should point to a function that takes no arguments.

Definition at line 13 of file callbacks.h.

Function pointer for Scan Result event handler.

Parameters:
ble_msg_gap_scan_result_evt_tA data structure containing the data from a Scan Result event.

Definition at line 37 of file callbacks.h.

typedef void(* timestamp_callback_t)()

Function pointer for timestamping.

This is a function that is intended to run whenever there is any data available on the UART.

Definition at line 27 of file callbacks.h.