12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef BLE_LNS_COMMON_H__
- #define BLE_LNS_COMMON_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define BLE_LNS_INVALID_ROUTE 0xFFFF
- #define BLE_LNS_NO_FIX 0xFF
- #define BLE_LNS_MAX_NUM_ROUTES 10
- #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 BLE_LNS_FEATURE_INSTANT_SPEED_SUPPORTED (0x01 << 0)
- #define BLE_LNS_FEATURE_TOTAL_DISTANCE_SUPPORTED (0x01 << 1)
- #define BLE_LNS_FEATURE_LOCATION_SUPPORTED (0x01 << 2)
- #define BLE_LNS_FEATURE_ELEVATION_SUPPORTED (0x01 << 3)
- #define BLE_LNS_FEATURE_HEADING_SUPPORTED (0x01 << 4)
- #define BLE_LNS_FEATURE_ROLLING_TIME_SUPPORTED (0x01 << 5)
- #define BLE_LNS_FEATURE_UTC_TIME_SUPPORTED (0x01 << 6)
- #define BLE_LNS_FEATURE_REMAINING_DISTANCE_SUPPORTED (0x01 << 7)
- #define BLE_LNS_FEATURE_REMAINING_VERT_DISTANCE_SUPPORTED (0x01 << 8)
- #define BLE_LNS_FEATURE_EST_TIME_OF_ARRIVAL_SUPPORTED (0x01 << 9)
- #define BLE_LNS_FEATURE_NUM_SATS_IN_SOLUTION_SUPPORTED (0x01 << 10)
- #define BLE_LNS_FEATURE_NUM_SATS_IN_VIEW_SUPPORTED (0x01 << 11)
- #define BLE_LNS_FEATURE_TIME_TO_FIRST_FIX_SUPPORTED (0x01 << 12)
- #define BLE_LNS_FEATURE_EST_HORZ_POS_ERROR_SUPPORTED (0x01 << 13)
- #define BLE_LNS_FEATURE_EST_VERT_POS_ERROR_SUPPORTED (0x01 << 14)
- #define BLE_LNS_FEATURE_HORZ_DILUTION_OF_PRECISION_SUPPORTED (0x01 << 15)
- #define BLE_LNS_FEATURE_VERT_DILUTION_OF_PRECISION_SUPPORTED (0x01 << 16)
- #define BLE_LNS_FEATURE_LOC_AND_SPEED_CONTENT_MASKING_SUPPORTED (0x01 << 17)
- #define BLE_LNS_FEATURE_FIX_RATE_SETTING_SUPPORTED (0x01 << 18)
- #define BLE_LNS_FEATURE_ELEVATION_SETTING_SUPPORTED (0x01 << 19)
- #define BLE_LNS_FEATURE_POSITION_STATUS_SUPPORTED (0x01 << 20)
- #ifdef __cplusplus
- }
- #endif
- #endif
|