Line data Source code
1 0 : /* 2 : * Copyright (c) 2017 Intel Corporation 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_ 8 : #define ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_ 9 : 10 : #include <zephyr/device.h> 11 : 12 : /* RF settings 13 : * 14 : * First 42 entries are for the 42 first registers from 15 : * address 0x04 to 0x2D included. 16 : * Next, the last 58 entries are for the 58 registers from 17 : * extended address 0x00 to 0x39 included 18 : * 19 : * If CONFIG_IEEE802154_CC1200_RF_PRESET is not used, one will need 20 : * to provide 'cc1200_rf_settings' with proper settings. These can 21 : * be generated through TI's SmartRF application. 22 : * 23 : */ 24 0 : struct cc1200_rf_registers_set { 25 0 : uint32_t chan_center_freq0; 26 : /* to fit in uint16_t, spacing is a multiple of 100 Hz, 27 : * 12.5KHz for instance will be 125. 28 : */ 29 0 : uint16_t channel_spacing; 30 0 : uint8_t registers[100]; 31 : }; 32 : 33 : #ifndef CONFIG_IEEE802154_CC1200_RF_PRESET 34 0 : extern const struct cc1200_rf_registers_set cc1200_rf_settings; 35 : #endif 36 : 37 : #endif /* ZEPHYR_INCLUDE_DRIVERS_IEEE802154_CC1200_H_ */