资源简介
该资源中包含了使用nrf51822创建多个自定义服务和特征值的实验文档,内附实验代码(基于SDK10.0)
代码片段和文件信息
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
#include “ant_channel_config.h“
#include “ant_interface.h“
#include “ant_parameters.h“
#include “nrf_error.h“
uint32_t ant_channel_init(ant_channel_config_t const * p_config)
{
uint32_t err_code;
// Set Channel Number.
err_code = sd_ant_channel_assign(p_config->channel_number
p_config->channel_type
p_config->network_number
p_config->ext_assign);
if (err_code != NRF_SUCCESS)
{
return err_code;
}
// Set Channel ID.
err_code = sd_ant_channel_id_set(p_config->channel_number
p_config->device_number
p_config->device_type
p_config->transmission_type);
if (err_code != NRF_SUCCESS)
{
return err_code;
}
// Set Channel RF frequency.
err_code = sd_ant_channel_radio_freq_set(p_config->channel_number p_config->rf_freq);
if (err_code != NRF_SUCCESS)
{
return err_code;
}
// Set Channel period.
if (!(p_config->ext_assign & EXT_PARAM_ALWAYS_SEARCH))
{
err_code = sd_ant_channel_period_set(p_config->channel_number p_config->channel_period);
}
#if ANT_CONFIG_ENCRYPTED_CHANNELS > 0
if (err_code != NRF_SUCCESS)
{
return err_code;
}
err_code = ant_channel_encrypt_config(p_config->channel_type p_config->channel_number p_config->p_crypto_settings);
#endif
return err_code;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5165056 2017-06-13 09:34 nRF51_SDK_10.0.0\cc_\cc_test1.IAB
文件 50768 2017-06-13 09:34 nRF51_SDK_10.0.0\cc_\cc_test1.IAD
文件 1245184 2017-06-13 09:34 nRF51_SDK_10.0.0\cc_\cc_test1.IMB
文件 12488 2017-06-13 09:34 nRF51_SDK_10.0.0\cc_\cc_test1.IMD
文件 6008 2017-07-10 22:01 nRF51_SDK_10.0.0\cc_\cc_test1.PFI
文件 776 2017-07-10 22:01 nRF51_SDK_10.0.0\cc_\cc_test1.PO
文件 469136 2017-07-10 16:39 nRF51_SDK_10.0.0\cc_\cc_test1.PR
文件 3040560 2017-07-10 16:39 nRF51_SDK_10.0.0\cc_\cc_test1.PRI
文件 8088812 2017-07-10 17:18 nRF51_SDK_10.0.0\cc_\cc_test1.PS
文件 1353 2017-07-10 14:40 nRF51_SDK_10.0.0\cc_\cc_test1.SearchResults
文件 27333 2017-07-10 22:02 nRF51_SDK_10.0.0\cc_\cc_test1.WK3
文件 2080 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_channel_config\ant_channel_config.c
文件 1972 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_channel_config\ant_channel_config.h
文件 7487 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_encryption\ant_encrypt_config.c
文件 9923 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_encryption\ant_encrypt_config.h
文件 5652 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_encryption\ant_encrypt_negotiation_slave.c
文件 3920 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_encryption\ant_encrypt_negotiation_slave.h
文件 1181 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_key_manager\ant_key_manager.c
文件 1931 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_key_manager\ant_key_manager.h
文件 966 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_key_manager\config\ant_key_manager_config.h
文件 15953 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\ant_bpwr.c
文件 17426 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\ant_bpwr.h
文件 1949 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\ant_bpwr_local.h
文件 2069 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_common_data.c
文件 2029 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_common_data.h
文件 1254 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_pages.h
文件 9112 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_1.c
文件 3891 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_1.h
文件 2903 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_16.c
文件 2595 2015-11-09 18:33 nRF51_SDK_10.0.0\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_16.h
............此处省略1982个文件信息
- 上一篇:videoInput.rar
- 下一篇:cfv3246_10385571.zip
相关资源
- BLE手机做从机nrf51822做主机通信实验
- nrf51822蓝牙原理图PCB文件
- NRF51822_SDK9.0 DFU移植笔记
- NRF51822SDK+S110协议栈
- NRF51822_青风电子教程
- 《青风带你学蓝牙》nrf51822电子书pd
- nrf51822蓝牙连接APP安卓源码
- nRF51822开发工具包 SDK包 协议栈 全
- NRF51822 SDK
- nrf51822 spi
- nRF51822低功耗睡眠函数应用
- nrf51822 ADC
- 基于nrf51822 MPU9250 SPI驱动
- nrf_51822_mpu6050_DMP移植
- nrf51822 手环 原理图
- Nrf51822程序错误快速定位方法
- nrf51822 flash初始化,分区块,循环读写
- mapboxgl对接wms自定义服务
- NRF52832概述
- micro_ecc_lib_nrf51.lib
- nrf51822 sdk12.2空中升级笔记
- 按键蓝牙通知(NRF51822)
评论
共有 条评论