atr_config.h.in 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. /* Copyright (C) 2018 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 _ATR_CONFIG_H_
  13. #define _ATR_CONFIG_H_
  14. #include "srv_config.h"
  15. // @AUTO_GENERATION_NOTICE@
  16. /**
  17. * maximum AT command parameter count
  18. */
  19. #cmakedefine CONFIG_ATR_CMD_PARAM_MAX @CONFIG_ATR_CMD_PARAM_MAX@
  20. /**
  21. * maximum AT command line size
  22. *
  23. * The trailing \r is included, and \0 is not included.
  24. */
  25. #cmakedefine CONFIG_ATR_CMDLINE_MAX @CONFIG_ATR_CMDLINE_MAX@
  26. /**
  27. * AT command engine worker thread stack size in bytes
  28. */
  29. #cmakedefine CONFIG_ATR_CMD_WORKER_STACK_SIZE @CONFIG_ATR_CMD_WORKER_STACK_SIZE@
  30. /**
  31. * whether AT command URC buffer is enabled
  32. *
  33. * When enabled, URC will be buffered when there are AT commands in
  34. * execution. And URC buffer will be flushed after current AT command
  35. * finished. When there are too many URC, either size overflow or count
  36. * overflow, URC will be discarded.
  37. */
  38. #cmakedefine CONFIG_ATR_URC_BUFF_ENABLE
  39. /**
  40. * AT command URC buffer size
  41. *
  42. * Each AT channel will have separated URC buffer, this is the buffer size
  43. * for each AT channel.
  44. */
  45. #cmakedefine CONFIG_ATR_URC_BUFF_SIZE @CONFIG_ATR_URC_BUFF_SIZE@
  46. /**
  47. * AT command URC buffering count
  48. *
  49. * Each AT channel will have separated URC buffer, this is the count
  50. * for each AT channel.
  51. */
  52. #cmakedefine CONFIG_ATR_URC_BUFF_COUNT @CONFIG_ATR_URC_BUFF_COUNT@
  53. /**
  54. * whether to echo command only
  55. *
  56. * When defined, extra or invalid chracters not belongs to valid AT command
  57. * line won't be echoed. For example, "AT\r\n" will be echoed as "AT\r" if
  58. * defined.
  59. */
  60. #cmakedefine CONFIG_ATR_ECHO_COMMAND_ONLY
  61. /**
  62. * timeout in milliseconds to wait '\n' after '\r'
  63. *
  64. * It only take effects when \p CONFIG_ATR_ECHO_COMMAND_ONLY is not defined,
  65. * and only affects echo.
  66. *
  67. * Though '\r' is the ending character of AT comamnd line, if '\n' comes
  68. * immediately after '\r', '\n' is echoed before responses.
  69. */
  70. #cmakedefine CONFIG_ATR_LF_WAIT_MS @CONFIG_ATR_LF_WAIT_MS@
  71. /**
  72. * support +++ in command line mode (non-standard)
  73. */
  74. #cmakedefine CONFIG_ATR_CMD_TPLUS_ENABLE
  75. /**
  76. * whether enable AT command output cache
  77. *
  78. * When enabled, a small cache will be added to AT command output. It will
  79. * make it easier to parse AT command response.
  80. */
  81. #cmakedefine CONFIG_ATR_CMD_OUTPUT_CACHE_ENABLE
  82. /**
  83. * AT command output cache
  84. *
  85. * There is only one global AT command output. This is the cache size.
  86. */
  87. #cmakedefine CONFIG_ATR_CMD_OUTPUT_CACHE_SIZE @CONFIG_ATR_CMD_OUTPUT_CACHE_SIZE@
  88. /**
  89. * data mode buffer size
  90. *
  91. * In PPP mode, it should be enough to hold a complete packet, with HDLC
  92. * escape.
  93. */
  94. #cmakedefine CONFIG_ATR_DATA_BUFF_SIZE @CONFIG_ATR_DATA_BUFF_SIZE@
  95. /**
  96. * PPP packet check timeout after PPP end
  97. *
  98. * After PPP terminated, it is possible that peer will still send more PPP
  99. * packets. If they are interpreted as AT commands, it is possible some "bad"
  100. * commands will be interpreted.
  101. */
  102. #cmakedefine CONFIG_ATR_PPP_END_CHECK_TIMEOUT @CONFIG_ATR_PPP_END_CHECK_TIMEOUT@
  103. /**
  104. * whether CMUX is supported
  105. */
  106. #cmakedefine CONFIG_ATR_CMUX_SUPPORT
  107. /**
  108. * CMUX input buffer size
  109. *
  110. * It should be enough to hold the input packet. At buffer overflow, the
  111. * content of the buffer will be dropped silently.
  112. */
  113. #cmakedefine CONFIG_ATR_CMUX_IN_BUFF_SIZE @CONFIG_ATR_CMUX_IN_BUFF_SIZE@
  114. /**
  115. * CMUX output buffer size
  116. *
  117. * It should be enough to hold the output packet. At buffer overflow, the
  118. * content of the buffer will be dropped silently.
  119. */
  120. #cmakedefine CONFIG_ATR_CMUX_OUT_BUFF_SIZE @CONFIG_ATR_CMUX_OUT_BUFF_SIZE@
  121. /**
  122. * CMUX sub-channel minimum input buffer size
  123. */
  124. #cmakedefine CONFIG_ATR_CMUX_SUBCHANNEL_MIN_IN_BUFF_SIZE @CONFIG_ATR_CMUX_SUBCHANNEL_MIN_IN_BUFF_SIZE@
  125. /**
  126. * CMUX maximum DLC number
  127. */
  128. #cmakedefine CONFIG_ATR_CMUX_DLC_NUM @CONFIG_ATR_CMUX_DLC_NUM@
  129. /**
  130. * AT profile count
  131. */
  132. #cmakedefine CONFIG_ATR_PROFILE_COUNT @CONFIG_ATR_PROFILE_COUNT@
  133. /**
  134. * maximum count of delay free memory
  135. */
  136. #cmakedefine CONFIG_ATR_MEM_FREE_LATER_COUNT @CONFIG_ATR_MEM_FREE_LATER_COUNT@
  137. /**
  138. * whether to enable CINIT URC output
  139. */
  140. #cmakedefine CONFIG_ATR_CINIT_URC_ENABLED
  141. /**
  142. * maximum registered event count
  143. */
  144. #cmakedefine CONFIG_ATR_EVENT_MAX_COUNT @CONFIG_ATR_EVENT_MAX_COUNT@
  145. /**
  146. * maximum pending CFW UTI count
  147. */
  148. #cmakedefine CONFIG_ATR_CFW_PENDING_UTI_COUNT @CONFIG_ATR_CFW_PENDING_UTI_COUNT@
  149. /**
  150. * whether to create uart AT device
  151. */
  152. #cmakedefine CONFIG_ATR_CREATE_UART
  153. /**
  154. * default uart AT device name
  155. */
  156. #cmakedefine CONFIG_ATR_DEFAULT_UART @CONFIG_ATR_DEFAULT_UART@
  157. /**
  158. * default uart baud rate
  159. */
  160. #cmakedefine CONFIG_ATR_DEFAULT_UART_BAUD @CONFIG_ATR_DEFAULT_UART_BAUD@
  161. /**
  162. * uart auto sleep timeout
  163. */
  164. #cmakedefine CONFIG_ATR_UART_AUTO_SLEEP_TIMEOUT @CONFIG_ATR_UART_AUTO_SLEEP_TIMEOUT@
  165. /**
  166. * whether to power on CFW automatically
  167. *
  168. * When not defined, AT engine will wait \p EV_DM_POWER_ON_IND.
  169. */
  170. #cmakedefine CONFIG_ATR_CFW_AUTO_POWER_ON
  171. /**
  172. * whether to create usb serial AT device
  173. */
  174. #cmakedefine CONFIG_ATR_CREATE_USB_SERIAL
  175. /**
  176. * whether to create diag AT device
  177. */
  178. #cmakedefine CONFIG_ATR_CREATE_DIAG
  179. /**
  180. * whether to support file system AT commands
  181. */
  182. #cmakedefine CONFIG_ATS_FS_SUPPORT
  183. /**
  184. * maximum download (write) file size
  185. */
  186. #cmakedefine CONFIG_ATS_FS_DWN_SIZE_MAX @CONFIG_ATS_FS_DWN_SIZE_MAX@
  187. /**
  188. * maximum read file size
  189. */
  190. #cmakedefine CONFIG_ATS_FS_RD_SIZE_MAX @CONFIG_ATS_FS_RD_SIZE_MAX@
  191. /**
  192. * whether to support +UPDATE AT commands
  193. */
  194. #cmakedefine CONFIG_ATS_UPDATE_SUPPORT
  195. /**
  196. * whether to support alarm AT commands
  197. */
  198. #cmakedefine CONFIG_ATS_ALARM_SUPPORT
  199. /**
  200. * maximum alarm count in AT
  201. */
  202. #cmakedefine CONFIG_ATS_ALARM_COUNT @CONFIG_ATS_ALARM_COUNT@
  203. /**
  204. * maximum alarm text length, not including \0
  205. */
  206. #cmakedefine CONFIG_ATS_ALARM_TEXT_LEN @CONFIG_ATS_ALARM_TEXT_LEN@
  207. /**
  208. * whether to support SGCC AT commands
  209. */
  210. #cmakedefine CONFIG_ATS_SGCC_CATM_SUPPORT
  211. /**
  212. * whether at command can be supported
  213. */
  214. #cmakedefine CONFIG_AT_CMD_SUPPORT
  215. /**
  216. * whether to support camera AT commands
  217. */
  218. #cmakedefine CONFIG_AT_CAMERA_SUPPORT
  219. /**
  220. * whether to support lcd display
  221. */
  222. #cmakedefine CONFIG_AT_CAMERA_PREV_DISPLAY_LCD
  223. /**
  224. * whether to support camera use test mode
  225. */
  226. #cmakedefine CONFIG_AT_CAMERA_TEST_MODE
  227. /**
  228. * whether to support open backlight
  229. */
  230. #cmakedefine CONFIG_AT_BACKLIGHT
  231. /**
  232. * whether to support not lcd show.
  233. */
  234. #cmakedefine CONFIG_AT_CAMERA_PREV_WRITEFILE
  235. /**
  236. * whether to support Dual SIM command
  237. */
  238. #cmakedefine CONFIG_DUAL_SIM_SUPPORT
  239. /**
  240. * whether to support OVERFLOW REEOR REPORT
  241. */
  242. #cmakedefine CONFIG_ATR_OVERFLOW_REEOR_REPORT
  243. /**
  244. * whether at command can call the api of cp
  245. */
  246. #cmakedefine CONFIG_AT_AP_CALL_CP_SUPPORT
  247. /**
  248. * whether support PSM related at command
  249. */
  250. #cmakedefine CONFIG_AT_PSM_SUPPORT
  251. /**
  252. * whether support QSCANF at command
  253. */
  254. #cmakedefine CONFIG_AT_QSCANF_SUPPORT
  255. /**
  256. * whether init USB with small memory
  257. */
  258. #cmakedefine CONFIG_AT_USB_REDUCE_MEMORY
  259. /**
  260. * Size for each read
  261. */
  262. #cmakedefine CONFIG_AT_DISPATCH_FETCH_BUF_SIZE @CONFIG_AT_DISPATCH_FETCH_BUF_SIZE@
  263. /**
  264. * whether support I2S TEST at command
  265. */
  266. #cmakedefine CONFIG_AT_I2S_TEST_SUPPORT
  267. /**
  268. * whether support Echo command line with crlf
  269. */
  270. #cmakedefine CONFIG_ATR_ECHO_COMMAND_CRLF
  271. #undef CONFIG_AT_WITHOUT_SAT
  272. #undef CONFIG_AT_WITHOUT_SMS
  273. #undef CONFIG_AT_WITHOUT_PBK
  274. #undef CONFIG_AT_WITHOUT_GPRS
  275. #endif