cmd_phy.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include "esp_phy_cert_test.h"
  11. typedef struct {
  12. struct arg_int *enable;
  13. struct arg_end *end;
  14. } phy_args_t;
  15. #if SOC_WIFI_SUPPORTED
  16. typedef struct {
  17. struct arg_int *channel;
  18. struct arg_int *rate;
  19. struct arg_int *attenuation;
  20. struct arg_int *length_byte;
  21. struct arg_int *packet_delay;
  22. struct arg_int *packet_num;
  23. struct arg_end *end;
  24. } phy_wifi_tx_t;
  25. typedef struct {
  26. struct arg_int *channel;
  27. struct arg_int *rate;
  28. struct arg_end *end;
  29. } phy_wifi_rx_t;
  30. typedef struct {
  31. struct arg_int *enable;
  32. struct arg_int *channel;
  33. struct arg_int *attenuation;
  34. struct arg_end *end;
  35. } phy_wifiscwout_t;
  36. typedef struct {
  37. uint32_t channel;
  38. esp_phy_wifi_rate_t rate;
  39. int8_t backoff;
  40. uint32_t length_byte;
  41. uint32_t packet_delay;
  42. uint32_t packet_num;
  43. } phy_wifi_tx_s;
  44. typedef struct {
  45. uint32_t channel;
  46. esp_phy_wifi_rate_t rate;
  47. } phy_wifi_rx_s;
  48. #endif
  49. #if SOC_BT_SUPPORTED
  50. typedef struct {
  51. struct arg_int *txpwr;
  52. struct arg_int *channel;
  53. struct arg_int *len;
  54. struct arg_int *data_type;
  55. struct arg_int *syncw;
  56. struct arg_int *rate;
  57. struct arg_int *tx_num_in;
  58. struct arg_end *end;
  59. } phy_ble_tx_t;
  60. typedef struct {
  61. struct arg_int *channel;
  62. struct arg_int *syncw;
  63. struct arg_int *rate;
  64. struct arg_end *end;
  65. } phy_ble_rx_t;
  66. typedef struct {
  67. struct arg_int *start;
  68. struct arg_int *channel;
  69. struct arg_int *attenuation;
  70. struct arg_end *end;
  71. } phy_bt_tx_tone_t;
  72. typedef struct {
  73. uint32_t txpwr;
  74. uint32_t channel;
  75. uint32_t len;
  76. esp_phy_ble_type_t data_type;
  77. uint32_t syncw;
  78. esp_phy_ble_rate_t rate;
  79. uint32_t tx_num_in;
  80. } phy_ble_tx_s;
  81. typedef struct {
  82. uint32_t channel;
  83. uint32_t syncw;
  84. esp_phy_ble_rate_t rate;
  85. } phy_ble_rx_s;
  86. #endif
  87. void register_phy_cmd(void);
  88. #ifdef __cplusplus
  89. }
  90. #endif