Location and Navigation Service Control Point module. More...
Data Structures | |
union | ble_lncp_mask_t |
A mask can be used to temporarily enable and disable features of the Location and Speed characteristic. More... | |
struct | ble_lncp_evt_t |
struct | ble_lncp_rsp_t |
Information included in a control point write response indication. More... | |
struct | ble_lncp_init_t |
struct | ble_lncp_s |
Macros | |
#define | BLE_LNS_MAX_ROUTE_NAME_LEN BLE_GATT_ATT_MTU_DEFAULT - 5 |
#define | MAX_CTRL_POINT_RESP_PARAM_LEN BLE_LNS_MAX_ROUTE_NAME_LEN + 3 |
#define | LNCP_NAV_CMD_MAX 0x05 |
#define | LNCP_NAV_CMD_LEN (OPCODE_LENGTH + 1) |
Typedefs | |
typedef struct ble_lncp_s | ble_lncp_t |
typedef ble_lncp_rsp_code_t(* | ble_lncp_evt_handler_t )(ble_lncp_t const *p_lncp, ble_lncp_evt_t const *p_evt) |
Functions | |
void | ble_lncp_on_ble_evt (ble_lncp_t *p_lncp, ble_evt_t const *p_ble_evt) |
uint32_t | ble_lncp_total_distance_get (ble_lncp_t const *p_lncp) |
uint32_t | ble_lncp_elevation_get (ble_lncp_t const *p_lncp) |
ble_lncp_mask_t | ble_lncp_mask_get (ble_lncp_t const *p_lncp) |
bool | ble_lncp_is_navigation_running (ble_lncp_t const *p_lncp) |
ret_code_t | ble_lncp_init (ble_lncp_t *p_lncp, ble_lncp_init_t const *p_lncp_init) |
Location and Navigation Service Control Point module.
This module implements the Location and Navigation Service Control Point behavior.
#define BLE_LNS_MAX_ROUTE_NAME_LEN BLE_GATT_ATT_MTU_DEFAULT - 5 |
The maximum length of length of a route name.
#define MAX_CTRL_POINT_RESP_PARAM_LEN BLE_LNS_MAX_ROUTE_NAME_LEN + 3 |
Maximum length of a control point response.
enum ble_lncp_evt_type_t |
Location and Navigation event type. This list defines the possible events types from the Location and Navigation Service.
enum ble_lncp_nav_cmd_t |
Navigation commands. These commands can be sent to the control point and returned by an event callback.
Enumerator | |
---|---|
LNCP_CMD_NAV_STOP |
When received, is_navigation_running in ble_lns_s will be set to false. |
LNCP_CMD_NAV_START |
When received, is_navigation_running in ble_lns_s will be set to true. |
LNCP_CMD_NAV_PAUSE |
When received, is_navigation_running in ble_lns_s will be set to false. |
LNCP_CMD_NAV_CONTINUE |
When received, is_navigation_running in ble_lns_s will be set to true. |
LNCP_CMD_NAV_SKIP_WAYPOINT |
When received, is_navigation_running in ble_lns_s will not be affected. |
LNCP_CMD_NAV_NEAREST |
When received, is_navigation_running in ble_lns_s will be set to true. |
enum ble_lncp_op_code_t |
enum ble_lncp_rsp_code_t |