• 大小: 37.35MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: 其他
  • 标签: NRF52832  

资源简介

nRF5_SDK_12.2.0_f012efa-bootloader是NRF52832的开发包,方便进行开发。

资源截图

代码片段和文件信息

/* 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 “sdk_common.h“
#if NRF_MODULE_ENABLED(ANT_CHANNEL_CONFIG)
#include “nrf_error.h“
#include “ant_channel_config.h“
#include “ant_interface.h“
#include “ant_parameters.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);

    VERIFY_SUCCESS(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);

    VERIFY_SUCCESS(err_code);

    // Set Channel RF frequency.
    err_code = sd_ant_channel_radio_freq_set(p_config->channel_number p_config->rf_freq);
    VERIFY_SUCCESS(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
    VERIFY_SUCCESS(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;
}

#endif // NRF_MODULE_ENABLED(ANT_CHANNEL_CONFIG)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2006  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_channel_config\ant_channel_config.c

     文件       2022  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_channel_config\ant_channel_config.h

     文件        322  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_channel_config\ant_channel_config_dox_config.h

     文件       7365  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_config.c

     文件      10043  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_config.h

     文件        332  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_config_dox_config.h

     文件       5598  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_negotiation_slave.c

     文件       3964  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_negotiation_slave.h

     文件        401  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_encryption\ant_encrypt_negotiation_slave_dox_config.h

     文件      99462  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\antfs.c

     文件      23183  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\antfs.h

     文件       2939  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\ant_fs_dox_config.h

     文件       1717  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\crc.c

     文件       1430  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\crc.h

     文件       2050  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_fs\defines.h

     文件       1298  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_key_manager\ant_key_manager.c

     文件       2010  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_key_manager\ant_key_manager.h

     文件        283  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_key_manager\ant_key_manager_dox_config.h

     文件       1043  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_key_manager\config\ant_key_manager_config.h

     文件      16214  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\ant_bpwr.c

     文件      17492  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\ant_bpwr.h

     文件       5376  2016-11-29 04:26  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\ant_bpwr_dox_config.h

     文件       2015  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\ant_bpwr_local.h

     文件       2444  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_common_data.c

     文件       2110  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_common_data.h

     文件       1319  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_pages.h

     文件       9451  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_1.c

     文件       3970  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_1.h

     文件       3265  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_16.c

     文件       2674  2016-11-29 04:25  nRF5_SDK_12.2.0_f012efa-bootloader\components\ant\ant_profiles\ant_bpwr\pages\ant_bpwr_page_16.h

............此处省略2395个文件信息

评论

共有 条评论