2017-07-05 22:56:49 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_
|
|
|
|
#define ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_
|
2017-07-05 22:56:49 +08:00
|
|
|
|
|
|
|
#include <device.h>
|
|
|
|
|
|
|
|
/* RF settings
|
|
|
|
*
|
|
|
|
* First 42 entries are for the 42 first registers from
|
|
|
|
* address 0x04 to 0x2D included.
|
|
|
|
* Next, the last 58 entries are for the 58 registers from
|
|
|
|
* extended address 0x00 to 0x39 included
|
|
|
|
*
|
|
|
|
* If CONFIG_IEEE802154_CC1200_RF_PRESET is not used, one will need
|
2020-01-27 22:29:13 +08:00
|
|
|
* to provide 'cc1200_rf_settings' with proper settings. These can
|
2017-07-05 22:56:49 +08:00
|
|
|
* be generated through TI's SmartRF application.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
struct cc1200_rf_registers_set {
|
|
|
|
u32_t chan_center_freq0;
|
|
|
|
u16_t channel_limit;
|
|
|
|
/* to fit in u16_t, spacing is a multiple of 100 Hz,
|
|
|
|
* 12.5KHz for instance will be 125.
|
|
|
|
*/
|
|
|
|
u16_t channel_spacing;
|
|
|
|
u8_t registers[100];
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifndef CONFIG_IEEE802154_CC1200_RF_PRESET
|
|
|
|
extern const struct cc1200_rf_registers_set cc1200_rf_settings;
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_ */
|