diag_calib_handle.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Copyright (C) 2019 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _DIAG_AT_H_
  13. #define _DIAG_AT_H_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include <stdlib.h>
  18. #include <stdint.h>
  19. #include <stdbool.h>
  20. extern void CalibSendDiagCmd(const diagMsgHead_t *cmd, void *ctx);
  21. typedef enum
  22. {
  23. CALIB_NB_DIAG_INIT_CNF_T = 0x00000000,
  24. CALIB_NB_DIAG_CS_CNF_T = 0x00000001,
  25. CALIB_NB_DIAG_MIB_CNF_T = 0x00000002,
  26. CALIB_NB_DIAG_SIB1_CNF_T = 0x00000003,
  27. CALIB_NB_DIAG_GET_RX_RSSI_CNF_T = 0x00000004,
  28. CALIB_NB_DIAG_TX_CNF_T = 0x00000005,
  29. CALIB_NB_DIAG_RX_CNF_T = 0x00000006,
  30. CALIB_NB_DIAG_IDLE_CNF_T = 0x00000007,
  31. CALIB_NB_DIAG_NST_CNF_T = 0x00000008,
  32. CALIB_NB_DIAG_NSTREQ_CNF_T = 0x00000009,
  33. CALIB_NB_DIAG_CONN_RX_CNF_T = 0x0000000A,
  34. CALIB_NB_DIAG_CONN_TX_CNF_T = 0x0000000B,
  35. CALIB_NB_DIAG_AFC_CNF_T = 0x0000000C,
  36. CALIB_NB_DIAG_READ_NV_CNF_T = 0x0000000D,
  37. CALIB_NB_DIAG_WRITE_NV_CNF_T = 0x0000000E,
  38. CALIB_NB_DIAG_FLAG_CNF_T = 0x0000000F,
  39. CALIB_NB_DIAG_AFC_SAVE_CNF_T = 0x00000010,
  40. CALIB_NB_DIAG_TX_SAVE_CNF_T = 0x00000011,
  41. CALIB_NB_DIAG_RX_SAVE_CNF_T = 0x00000012,
  42. CALIB_NB_DIAG_CHECK_CRC_CNF_T = 0x00000013,
  43. CALIB_NB_DIAG_STATUS_CLEAR_CNF_T = 0x00000014,
  44. CALIB_NB_DIAG_CALIB_NUMBER_CNF_T = 0x00000015,
  45. CALIB_NB_DIAG_READ_CAL_DATA_CNF_T = 0x00000016,
  46. CALIB_NB_DIAG_TX_STOP_CNF_T = 0x00000017,
  47. CALIB_NB_DIAG_NSFT_SYNC_FLAG_CNF_T = 0x00000019,
  48. CALIB_NB_DIAG_NSFT_GET_BLER_CNF_T = 0x0000001A,
  49. CALIB_NB_DIAG_CALIB_LOSS_STATE = 0x0000001C,
  50. CALIB_NB_DIAG_READ_CALIB_FLAG_STATE = 0x0000001F
  51. } CALIB_NB_DIAG_CMDS_T;
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif