air530z.h 649 B

12345678910111213141516171819202122232425262728293031
  1. // Author: NiuJiuRu
  2. // Email: niujiuru@qq.com
  3. // Date: 2025-08-15
  4. #ifndef __AIR530Z_H__
  5. #define __AIR530Z_H__
  6. #include "../swapi/include_swapiLib.h"
  7. #ifdef __cplusplus
  8. extern "C"
  9. {
  10. #endif
  11. // 打开与模块的通讯, 返回: 0成功, <0时失败
  12. int Air530Z_ComInit();
  13. // 关闭与模块的通讯, 返回: 0成功, <0时失败
  14. int Air530Z_ComExit();
  15. // 获取当前的2D位置, 返回: 0成功, -1未定位
  16. int Air530Z_GetPos2D(char lat[MAX_LINE_CHARS], char lon[MAX_LINE_CHARS]);
  17. #ifdef _DEBUG
  18. void *Air530Z_GetSerialHandle(); // 仿真串口输入, 模拟单元测试时使用
  19. #endif
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* __AIR530Z_H__ */