tb_test.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Copyright (C) 2016 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 __TB_TEST_H__
  13. #define __TB_TEST_H__
  14. #include "osi_api.h"
  15. #include "tb.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. // test function
  20. extern void tbtest_wan_network_info_cb(tb_wan_notify_type_e type, const char *value);
  21. extern void tbtest_wan_get_network_type(void);
  22. extern void tbtest_wan_get_network_info(void);
  23. extern void tbtest_wan_get_signal_info(void);
  24. extern void tbtest_data_callback_fun(tb_data_profile_id cid, tb_data_dial_status status);
  25. extern void tbtest_data_wan_disconnect(void);
  26. extern void tbtest_data_wan_connect(void);
  27. extern void tbtest_data_set_connect_parameter(void);
  28. extern void tbtest_data_get_connect_parameter(void);
  29. extern void tbtest_data_get_dial_status(void);
  30. extern void tbtest_data_get_statistics(void);
  31. extern void tbtest_data_get_ipv4_address(void);
  32. extern void tbtest_data_get_ip_address(void);
  33. extern void tbtest_sim_callback_fun(tb_sim_status type);
  34. extern void tbtest_sim_get_sim_state(void);
  35. extern void tbtest_sim_get_imsi(void);
  36. extern void tbtest_sim_get_imei(void);
  37. extern void tbtest_sim_get_phone_num(void);
  38. extern void tbtest_sms_callback_fun(tb_sms_status type, int value);
  39. extern void tbtest_sms_get_contents_fun(tb_sms_message *received_message);
  40. extern void tbtest_send_message();
  41. extern void tbtest_sms_get_sms_withid();
  42. extern void tbtest_sms_delete_sms();
  43. extern void tbtest_voice_callback_fun(tb_voice_report_event_e event, void *voice_report_info);
  44. extern void tbtest_voice_dial_call();
  45. extern void tbtest_voice_connect_call();
  46. extern void tbtest_voice_hungup_call();
  47. extern void tbtest_voice_switch_audio_channel0();
  48. extern void tbtest_voice_switch_audio_channel1();
  49. extern void tbtest_voice_control_loopback_mode0();
  50. extern void tbtest_voice_control_loopback_mode1();
  51. extern void tbtest_voice_control_loopback_mode2();
  52. extern void tbtest_voice_control_stop_loopbackmode();
  53. extern void tbtest_device_get_modemserialnumber();
  54. extern void tbtest_device_get_hwversion();
  55. extern void tbtest_device_getversion();
  56. extern void tbtest_device_get_iccid();
  57. extern void tbtest_device_set_rtc_timer(void);
  58. extern void tbtest_device_cancel_timer(void);
  59. extern void tbtest_device_shutdown_system(void);
  60. extern void tbtest_device_reboot_system(void);
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif