資源簡介
計(jì)步算法參考githhub上找的android手機(jī)Java版的算法,移植過來,準(zhǔn)確率還不錯(cuò)。

代碼片段和文件信息
/**
?*?Copyright?(c)?2015?-?2017?Nordic?Semiconductor?ASA
?*?
?*?All?rights?reserved.
?*?
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
?*?are?permitted?provided?that?the?following?conditions?are?met:
?*?
?*?1.?Redistributions?of?source?code?must?retain?the?above?copyright?notice?this
?*????list?of?conditions?and?the?following?disclaimer.
?*?
?*?2.?Redistributions?in?binary?form?except?as?embedded?into?a?Nordic
?*????Semiconductor?ASA?integrated?circuit?in?a?product?or?a?software?update?for
?*????such?product?must?reproduce?the?above?copyright?notice?this?list?of
?*????conditions?and?the?following?disclaimer?in?the?documentation?and/or?other
?*????materials?provided?with?the?distribution.
?*?
?*?3.?Neither?the?name?of?Nordic?Semiconductor?ASA?nor?the?names?of?its
?*????contributors?may?be?used?to?endorse?or?promote?products?derived?from?this
?*????software?without?specific?prior?written?permission.
?*?
?*?4.?This?software?with?or?without?modification?must?only?be?used?with?a
?*????Nordic?Semiconductor?ASA?integrated?circuit.
?*?
?*?5.?Any?software?provided?in?binary?form?under?this?license?must?not?be?reverse
?*????engineered?decompiled?modified?and/or?disassembled.
?*?
?*?THIS?SOFTWARE?IS?PROVIDED?BY?NORDIC?SEMICONDUCTOR?ASA?“AS?IS“?AND?ANY?EXPRESS
?*?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE?IMPLIED?WARRANTIES
?*?OF?MERCHANTABILITY?NONINFRINGEMENT?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
?*?DISCLAIMED.?IN?NO?EVENT?SHALL?NORDIC?SEMICONDUCTOR?ASA?OR?CONTRIBUTORS?BE
?*?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR
?*?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE
?*?GOODS?OR?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)
?*?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT
?*?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT
?*?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
?*?
?*/
#include??“sdk_common.h“
#if?NRF_MODULE_ENABLED(BLE_ADVERTISING)
#include?“ble_advdata.h“
#include?“ble_advertising.h“
#include?“nrf_soc.h“
#include?“nrf_log.h“
#include?“nrf_fstorage.h“
#include?“sdk_errors.h“
#include?“nrf_sdh_ble.h“
#include?“nrf_sdh_soc.h“
#define?BLE_ADV_MODES?(5)?/**
#if?(NRF_SD_BLE_API_VERSION?<=?2)
????static?bool?whitelist_has_entries(ble_advertising_t?*?const?p_advertising)
????{
????????return?((p_advertising->whitelist.addr_count?!=?0)?||?(p_advertising->whitelist.irk_count?!=?0));
????}
#else
????static?bool?whitelist_has_entries(ble_advertising_t?*?const?p_advertising)
????{
????????return?p_advertising->whitelist_in_use;
????}
#endif
/**@brief?Function?for?checking?if?an?address?is?valid.
?*/
static?bool?addr_is_valid(uint8_t?const?*?const?addr)
{
????for?(uint32_t?i?=?0;?i?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????23889??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_advertising\ble_advertising.c
?????文件??????19306??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_advertising\ble_advertising.h
?????文件??????40068??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_db_discovery\ble_db_discovery.c
?????文件??????12694??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_db_discovery\ble_db_discovery.h
?????文件??????40419??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_dtm\ble_dtm.c
?????文件??????13898??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_dtm\ble_dtm.h
?????文件???????4019??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_dtm\ble_dtm_hw.h
?????文件???????4639??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_dtm\ble_dtm_hw_nrf51.c
?????文件???????4631??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_dtm\ble_dtm_hw_nrf52.c
?????文件???????3219??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_racp\ble_racp.c
?????文件???????7656??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_racp\ble_racp.h
?????文件???????3446??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_radio_notification\ble_radio_notification.c
?????文件???????3446??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_radio_notification\ble_radio_notification.h
?????文件??????16207??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.c
?????文件???????2934??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.h
?????文件??????15628??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.c
?????文件???????3792??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.h
?????文件???????5144??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_tx_buffer.c
?????文件???????4128??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\ancs_tx_buffer.h
?????文件??????25147??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\nrf_ble_ancs_c.c
?????文件??????35634??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ancs_c\nrf_ble_ancs_c.h
?????文件??????22413??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ans_c\ble_ans_c.c
?????文件??????22607??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_ans_c\ble_ans_c.h
?????文件??????11618??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bas\ble_bas.c
?????文件???????9154??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bas\ble_bas.h
?????文件??????15205??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bas_c\ble_bas_c.c
?????文件??????11122??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bas_c\ble_bas_c.h
?????文件??????16575??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bps\ble_bps.c
?????文件??????11509??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_bps\ble_bps.h
?????文件??????17504??2017-11-15?05:13??nRF5_SDK_14.2.0_17b948a(LIS3DH計(jì)步算法實(shí)驗(yàn)成功-20180226)\components\ble\ble_services\ble_cscs\ble_cscs.c
............此處省略1600個(gè)文件信息
評論
共有 條評論