RTC auf true

Committer:
kevman
Date:
Wed Mar 13 11:03:24 2019 +0000
Revision:
2:7aab896b1a3b
2019-03-13

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kevman 2:7aab896b1a3b 1 /*
kevman 2:7aab896b1a3b 2 * Copyright (c) 2018 ARM Limited. All rights reserved.
kevman 2:7aab896b1a3b 3 * SPDX-License-Identifier: Apache-2.0
kevman 2:7aab896b1a3b 4 * Licensed under the Apache License, Version 2.0 (the License); you may
kevman 2:7aab896b1a3b 5 * not use this file except in compliance with the License.
kevman 2:7aab896b1a3b 6 * You may obtain a copy of the License at
kevman 2:7aab896b1a3b 7 *
kevman 2:7aab896b1a3b 8 * http://www.apache.org/licenses/LICENSE-2.0
kevman 2:7aab896b1a3b 9 *
kevman 2:7aab896b1a3b 10 * Unless required by applicable law or agreed to in writing, software
kevman 2:7aab896b1a3b 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
kevman 2:7aab896b1a3b 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
kevman 2:7aab896b1a3b 13 * See the License for the specific language governing permissions and
kevman 2:7aab896b1a3b 14 * limitations under the License.
kevman 2:7aab896b1a3b 15 */
kevman 2:7aab896b1a3b 16
kevman 2:7aab896b1a3b 17 #ifndef RF_CONF_H_
kevman 2:7aab896b1a3b 18 #define RF_CONF_H_
kevman 2:7aab896b1a3b 19 #ifdef __cplusplus
kevman 2:7aab896b1a3b 20 extern "C" {
kevman 2:7aab896b1a3b 21 #endif
kevman 2:7aab896b1a3b 22
kevman 2:7aab896b1a3b 23 #define RSSI_OFFSET 146
kevman 2:7aab896b1a3b 24
kevman 2:7aab896b1a3b 25 void rf_conf_calculate_datarate_registers(uint32_t datarate, uint16_t *datarate_mantissa, uint8_t *datarate_exponent);
kevman 2:7aab896b1a3b 26 void rf_conf_calculate_base_frequency_registers(uint32_t frequency, uint8_t *synt3, uint8_t *synt2, uint8_t *synt1, uint8_t *synt0);
kevman 2:7aab896b1a3b 27 void rf_conf_calculate_deviation_registers(uint32_t deviation, uint8_t *fdev_m, uint8_t *fdev_e);
kevman 2:7aab896b1a3b 28 int rf_conf_calculate_channel_spacing_registers(uint32_t channel_spacing, uint8_t *ch_space);
kevman 2:7aab896b1a3b 29 void rf_conf_calculate_rx_filter_bandwidth_registers(uint32_t rx_bandwidth, uint8_t *chflt_m, uint8_t *chflt_e);
kevman 2:7aab896b1a3b 30 void rf_conf_calculate_rssi_threshold_registers(int16_t rssi_threshold, uint8_t *rssi_th);
kevman 2:7aab896b1a3b 31
kevman 2:7aab896b1a3b 32 #ifdef __cplusplus
kevman 2:7aab896b1a3b 33 }
kevman 2:7aab896b1a3b 34 #endif
kevman 2:7aab896b1a3b 35
kevman 2:7aab896b1a3b 36 #endif /* RF_CONF_H_ */