資源簡(jiǎn)介
nrf51822 基于sdk9.0 從機(jī)dfu一步一步移植到升級(jí)燒入
代碼片段和文件信息
#include?“ant_channel_config.h“
#include?“ant_interface.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.
????err_code?=?sd_ant_channel_period_set(p_config->channel_number?p_config->channel_period);
????return?err_code;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-16?16:53??SDK9_DFU\
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_channel_config\
?????文件????????1254??2015-07-10?06:21??SDK9_DFU\components\ant\ant_channel_config\ant_channel_config.c
?????文件????????1500??2015-07-10?06:21??SDK9_DFU\components\ant\ant_channel_config\ant_channel_config.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_profiles\
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_profiles\ant_hrm\
?????文件????????8376??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\ant_hrm.c
?????文件????????8943??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\ant_hrm.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\
?????文件?????????448??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_pages.h
?????文件????????2374??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_0.c
?????文件????????1362??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_0.h
?????文件????????2001??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_1.c
?????文件????????1184??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_1.h
?????文件????????1642??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_2.c
?????文件????????1281??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_2.h
?????文件????????1604??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_3.c
?????文件????????1378??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_3.h
?????文件????????1653??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_4.c
?????文件????????1292??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\ant_hrm_page_4.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\logger\
?????文件????????1042??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\pages\logger\ant_hrm_page_logger.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_profiles\ant_hrm\utils\
?????文件????????2413??2015-07-10?06:21??SDK9_DFU\components\ant\ant_profiles\ant_hrm\utils\ant_hrm_utils.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_pulse_simulator\
?????文件????????5342??2015-07-10?06:21??SDK9_DFU\components\ant\ant_pulse_simulator\ant_pulse_simulator.c
?????文件????????2293??2015-07-10?06:21??SDK9_DFU\components\ant\ant_pulse_simulator\ant_pulse_simulator.h
?????目錄???????????0??2017-05-16?16:52??SDK9_DFU\components\ant\ant_stack_config\
?????文件????????1548??2015-07-10?06:21??SDK9_DFU\components\ant\ant_stack_config\ant_stack_config.c
............此處省略2836個(gè)文件信息
評(píng)論
共有 條評(píng)論