• 大小: 37.68MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-05
  • 语言: 其他
  • 标签: nrf51822  dfu  

资源简介

nrf51822 基于sdk9.0 从机dfu一步一步移植到升级烧入

资源截图

代码片段和文件信息

#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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           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个文件信息

评论

共有 条评论