ISM2_433MHzMSK500kbps.c 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /****************************************************************************
  2. * drivers/wireless/ISM2_433MHzMSK500kbps.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 905 MHz, GFSK at 250kbps
  28. *
  29. * ISM Region 2 (America) only, Band 902–928 MHz
  30. *
  31. * Cordless phones 1 W
  32. * Microwave ovens 750 W
  33. * Industrial heaters 100 kW
  34. * Military radar 1000 kW
  35. *
  36. * Deviation = 126.953125
  37. * Base frequency = 901.999969
  38. * Carrier frequency = 905.998993
  39. * Channel number = 20
  40. * Carrier frequency = 905.998993
  41. * Modulated = true
  42. * Modulation format = GFSK
  43. * Manchester enable = false
  44. * Sync word qualifier mode = 30/32 sync word bits detected
  45. * Preamble count = 4
  46. * Channel spacing = 199.951172
  47. * Carrier frequency = 905.998993
  48. * Data rate = 249.939
  49. * RX filter BW = 541.666667
  50. * Data format = Normal mode
  51. * Length config = Variable packet length mode. Packet length configured
  52. * by the first byte after sync word
  53. * CRC enable = true
  54. * Packet length = 61
  55. * Device address = 0
  56. * Address config = No address check
  57. * CRC autoflush = false
  58. * PA ramping = false
  59. * TX power = 0
  60. */
  61. const struct c1101_rfsettings_s cc1101_rfsettings_ISM2_433MHzMSK500kbps =
  62. {
  63. .FIFOTHR = 0x07, /* FIFOTHR */
  64. .SYNC1 = 0x9b, /* SYNC1 */
  65. .SYNC0 = 0xad, /* SYNC0 */
  66. .PKTLEN = 0xff, /* PKTLEN */
  67. .PKTCTRL1 = 0x04, /* Packet Automation Control */
  68. .PKTCTRL0 = 0x05, /* Packet Automation Control */
  69. .ADDR = 0xff, /* ADDR */
  70. .CHANNR = 0x00, /* CHANNR */
  71. .FSCTRL1 = 0x0f, /* FSCTRL1 Frequency Synthesizer Control */
  72. .FSCTRL0 = 0x00, /* FSCTRL0 Frequency Synthesizer Control */
  73. .FREQ2 = 0x10, /* FREQ2 Frequency Control Word, High Byte */
  74. .FREQ1 = 0xa7, /* FREQ1 Frequency Control Word, Middle Byte */
  75. .FREQ0 = 0x62, /* FREQ0 Frequency Control Word, Low Byte */
  76. .MDMCFG4 = 0x1e, /* MDMCFG4 Modem Configuration */
  77. .MDMCFG3 = 0x3b, /* MDMCFG3 Modem Configuration */
  78. .MDMCFG2 = 0x73, /* MDMCFG2 Modem Configuration */
  79. .MDMCFG1 = 0x42, /* MDMCFG1 Modem Configuration */
  80. .MDMCFG0 = 0xf8, /* MDMCFG0 Modem Configuration */
  81. .DEVIATN = 0x44, /* DEVIATN Modem Deviation Setting */
  82. .FOCCFG = 0x16, /* FOCCFG Frequency Offset Compensation Configuration */
  83. .BSCFG = 0x6c, /* BSCFG Bit Synchronization Configuration */
  84. .AGCCTRL2 = 0x45, /* AGCCTRL2 AGC Control */
  85. .AGCCTRL1 = 0x40, /* AGCCTRL1 AGC Control */
  86. .AGCCTRL0 = 0x91, /* AGCCTRL0 AGC Control */
  87. .FREND1 = 0x56, /* FREND1 Front End RX Configuration */
  88. .FREND0 = 0x10, /* FREND0 Front End TX Configuration */
  89. .FSCAL3 = 0xea, /* FSCAL3 Frequency Synthesizer Calibration */
  90. .FSCAL2 = 0x2a, /* FSCAL2 Frequency Synthesizer Calibration */
  91. .FSCAL1 = 0x00, /* FSCAL1 Frequency Synthesizer Calibration */
  92. .FSCAL0 = 0x1f, /* FSCAL0 Frequency Synthesizer Calibration */
  93. .CHMIN = 0, /* VERIFY REGULATIONS! */
  94. .CHMAX = 0xff,
  95. .PAMAX = 8, /* 0 means power OFF, 8 represents PA[7] */
  96. .PA =
  97. {
  98. 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  99. }
  100. };
  101. /****************************************************************************
  102. * Public Functions
  103. ****************************************************************************/