PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

56 lines
1.7KB

  1. /* Copyright (c) 2010 Nordic Semiconductor. All Rights Reserved.
  2. *
  3. * The information contained herein is property of Nordic Semiconductor ASA.
  4. * Terms and conditions of usage are described in detail in NORDIC
  5. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
  6. *
  7. * Licensees are granted free, non-transferable use of the information. NO
  8. * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
  9. * the file.
  10. *
  11. * $LastChangedRevision$
  12. */
  13. /**
  14. * @file
  15. *
  16. * @ingroup group_acilib
  17. *
  18. * @brief Internal prototype for acilib module.
  19. */
  20. #ifndef DTM_H__
  21. #define DTM_H__
  22. /** @brief DTM command codes (upper two bits in the DTM command), use a bitwise OR with the frequency N = 0x00 – 0x27: N = (F-2402)/2 Frequency Range 2402 MHz
  23. to 2480 MHz*/
  24. #define DTM_LE_CMD_RESET 0x00
  25. #define DTM_LE_CMD_RECEIVER_TEST 0x40
  26. #define DTM_LE_CMD_TRANSMITTER_TEST 0x80
  27. #define DTM_LE_CMD_TEST_END 0xC0
  28. /** @brief Defined packet types for DTM */
  29. #define DTM_LE_PKT_PRBS9 0x00 /**< Bit pattern PRBS9. */
  30. #define DTM_LE_PKT_0X0F 0x01 /**< Bit pattern 11110000 (LSB is the leftmost bit). */
  31. #define DTM_LE_PKT_0X55 0x02 /**< Bit pattern 10101010 (LSB is the leftmost bit). */
  32. #define DTM_LE_PKT_VENDOR 0x03 /**< Vendor specific. Nordic: continous carrier test */
  33. /** @brief Defined bit fields for DTM responses. */
  34. #define LE_PACKET_REPORTING_EVENT_MSB_BIT 0x80
  35. #define LE_TEST_STATUS_EVENT_LSB_BIT 0x01
  36. /** @brief DTM response types. */
  37. #define LE_TEST_STATUS_EVENT 0x00
  38. #define LE_TEST_PACKET_REPORT_EVENT 0x80
  39. /** @brief DTM return values. */
  40. #define LE_TEST_STATUS_SUCCESS 0x00
  41. #define LE_TEST_STATUS_FAILURE 0x01
  42. #endif //DTM_H__
  43. /** @} */