ISM1_868MHzGFSK100kbps.c 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /****************************************************************************
  2. * drivers/wireless/ISM1_868MHzGFSK100kbps.c
  3. *
  4. * Licensed to the Apache Software Foundation (ASF) under one or more
  5. * contributor license agreements. See the NOTICE file distributed with
  6. * this work for additional information regarding copyright ownership. The
  7. * ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance with the
  9. * License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. * License for the specific language governing permissions and limitations
  17. * under the License.
  18. *
  19. ****************************************************************************/
  20. /****************************************************************************
  21. * Included Files
  22. ****************************************************************************/
  23. #include <nuttx/wireless/cc1101.h>
  24. /****************************************************************************
  25. * Public Data
  26. ****************************************************************************/
  27. /* Settings for 868 MHz, GFSK at 100kbps
  28. *
  29. * ISM Region 1 (Europe) only, Band 868–870 MHz
  30. *
  31. * Frequency ERP Duty Cycle Bandwidth Remarks
  32. * 868 – 868.6 MHz +14 dBm < 1% No limits
  33. * 868.7 – 869.2 MHz +14 dBm < 0.1% No limits
  34. * 869.3 – 869.4 MHz +10 dBm No limits < 25 kHz Appropriate access
  35. * protocol required
  36. * 869.4 – 869.65 MHz +27 dBm < 10% < 25 kHz Channels may be
  37. * combined to one
  38. * high speed channel
  39. * 869.7 -870 MHz +7 dBm No limits No limits
  40. *
  41. * Deviation = 46.142578
  42. * Base frequency = 867.999985
  43. * Carrier frequency = 867.999985
  44. * Channel number = 0
  45. * Carrier frequency = 867.999985
  46. * Modulated = true
  47. * Modulation format = GFSK
  48. * Manchester enable = false
  49. * Sync word qualifier mode = 30/32 sync word bits detected
  50. * Preamble count = 4
  51. * Channel spacing = 199.813843
  52. * Carrier frequency = 867.999985
  53. * Data rate = 99.9069
  54. * RX filter BW = 210.937500
  55. * Data format = Normal mode
  56. * Length config = Fixed packet length mode.
  57. * Length configured in PKTLEN register
  58. * CRC enable = true
  59. * Packet length = 62
  60. * Device address = 00
  61. * Address config = NO Address check, no broadcast
  62. * CRC autoflush = true
  63. * PA ramping = false
  64. * TX power = 0
  65. */
  66. const struct c1101_rfsettings_s cc1101_rfsettings_ISM1_868MHzGFSK100kbps =
  67. {
  68. .FSCTRL1 = 0x08, /* FSCTRL1 Frequency Synthesizer Control */
  69. .FSCTRL0 = 0x00, /* FSCTRL0 Frequency Synthesizer Control */
  70. .FREQ2 = 0x20, /* FREQ2 Frequency Control Word, High Byte */
  71. .FREQ1 = 0x25, /* FREQ1 Frequency Control Word, Middle Byte */
  72. .FREQ0 = 0xed, /* FREQ0 Frequency Control Word, Low Byte */
  73. .MDMCFG4 = 0x8b, /* MDMCFG4 Modem Configuration */
  74. .MDMCFG3 = 0xe5, /* MDMCFG3 Modem Configuration */
  75. .MDMCFG2 = 0x13, /* MDMCFG2 Modem Configuration */
  76. .MDMCFG1 = 0x22, /* MDMCFG1 Modem Configuration */
  77. .MDMCFG0 = 0xe5, /* MDMCFG0 Modem Configuration */
  78. .DEVIATN = 0x46, /* DEVIATN Modem Deviation Setting */
  79. .FOCCFG = 0x1d, /* FOCCFG Frequency Offset Compensation Configuration */
  80. .BSCFG = 0x1c, /* BSCFG Bit Synchronization Configuration */
  81. .AGCCTRL2 = 0xc7, /* AGCCTRL2 AGC Control */
  82. .AGCCTRL1 = 0x00, /* AGCCTRL1 AGC Control */
  83. .AGCCTRL0 = 0xb2, /* AGCCTRL0 AGC Control */
  84. .FREND1 = 0xb6, /* FREND1 Front End RX Configuration */
  85. .FREND0 = 0x10, /* FREND0 Front End TX Configuration */
  86. .FSCAL3 = 0xea, /* FSCAL3 Frequency Synthesizer Calibration */
  87. .FSCAL2 = 0x2a, /* FSCAL2 Frequency Synthesizer Calibration */
  88. .FSCAL1 = 0x00, /* FSCAL1 Frequency Synthesizer Calibration */
  89. .FSCAL0 = 0x1f, /* FSCAL0 Frequency Synthesizer Calibration */
  90. .CHMIN = 0, /* Fix at 9th channel: 869.80 MHz +- 100 kHz RF Bandwidth */
  91. .CHMAX = 9, /* single channel */
  92. .PAMAX = 8, /* 0 means power OFF, 8 represents PA[7] */
  93. .PA =
  94. {
  95. 0x03, 0x0f, 0x1e, 0x27, 0x67, 0x50, 0x81, 0xc2
  96. }
  97. };
  98. /****************************************************************************
  99. * Public Functions
  100. ****************************************************************************/