Uart.c.075i.fnsummary 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299
  1. Symbol table:
  2. Uart_Ipw_AbortReceivingData/65 (Uart_Ipw_AbortReceivingData) @06d21d20
  3. Type: function
  4. Visibility: external public
  5. References:
  6. Referring:
  7. Availability: not_available
  8. Function flags:
  9. Called by: Uart_Abort/41
  10. Calls:
  11. Uart_Ipw_AbortSendingData/64 (Uart_Ipw_AbortSendingData) @06d21c40
  12. Type: function
  13. Visibility: external public
  14. References:
  15. Referring:
  16. Availability: not_available
  17. Function flags:
  18. Called by: Uart_Abort/41
  19. Calls:
  20. Uart_Ipw_GetBaudrate/63 (Uart_Ipw_GetBaudrate) @06d21a80
  21. Type: function
  22. Visibility: external public
  23. References:
  24. Referring:
  25. Availability: not_available
  26. Function flags:
  27. Called by: Uart_GetBaudrate/40
  28. Calls:
  29. Uart_Ipw_SetBaudrate/62 (Uart_Ipw_SetBaudrate) @06d218c0
  30. Type: function
  31. Visibility: external public
  32. References:
  33. Referring:
  34. Availability: not_available
  35. Function flags:
  36. Called by: Uart_SetBaudrate/39
  37. Calls:
  38. Uart_Ipw_Deinit/61 (Uart_Ipw_Deinit) @06d21700
  39. Type: function
  40. Visibility: external public
  41. References:
  42. Referring:
  43. Availability: not_available
  44. Function flags:
  45. Called by: Uart_Deinit/38
  46. Calls:
  47. Uart_Ipw_Init/60 (Uart_Ipw_Init) @06d21540
  48. Type: function
  49. Visibility: external public
  50. References:
  51. Referring:
  52. Availability: not_available
  53. Function flags:
  54. Called by: Uart_Init/37
  55. Calls:
  56. Uart_pxPBcfgVariantPredefined/59 (Uart_pxPBcfgVariantPredefined) @06d24120
  57. Type: variable
  58. Body removed by symtab_remove_unreachable_nodes
  59. Visibility: external public
  60. References:
  61. Referring: Uart_Init/37 (read)
  62. Availability: not_available
  63. Varpool flags: read-only
  64. Uart_Ipw_SetRxBuffer/58 (Uart_Ipw_SetRxBuffer) @06d212a0
  65. Type: function
  66. Visibility: external public
  67. References:
  68. Referring:
  69. Availability: not_available
  70. Function flags:
  71. Called by: Uart_StartSetBuffer/36
  72. Calls:
  73. Uart_Ipw_SetTxBuffer/57 (Uart_Ipw_SetTxBuffer) @06d211c0
  74. Type: function
  75. Visibility: external public
  76. References:
  77. Referring:
  78. Availability: not_available
  79. Function flags:
  80. Called by: Uart_StartSetBuffer/36
  81. Calls:
  82. Uart_Ipw_AsyncSend/56 (Uart_Ipw_AsyncSend) @06d21000
  83. Type: function
  84. Visibility: external public
  85. References:
  86. Referring:
  87. Availability: not_available
  88. Function flags:
  89. Called by: Uart_StartAsyncSend/35
  90. Calls:
  91. Uart_Ipw_AsyncReceive/55 (Uart_Ipw_AsyncReceive) @06c93000
  92. Type: function
  93. Visibility: external public
  94. References:
  95. Referring:
  96. Availability: not_available
  97. Function flags:
  98. Called by: Uart_StartAsyncReceive/34
  99. Calls:
  100. Uart_Ipw_SyncSend/54 (Uart_Ipw_SyncSend) @06c93e00
  101. Type: function
  102. Visibility: external public
  103. References:
  104. Referring:
  105. Availability: not_available
  106. Function flags:
  107. Called by: Uart_StartSyncSend/33
  108. Calls:
  109. Uart_Ipw_GetTransmitStatus/53 (Uart_Ipw_GetTransmitStatus) @06c93d20
  110. Type: function
  111. Visibility: external public
  112. References:
  113. Referring:
  114. Availability: not_available
  115. Function flags:
  116. Called by: Uart_GetStatus/47 Uart_SetBaudrate/39 Uart_StartAsyncSend/35 Uart_StartSyncSend/33
  117. Calls:
  118. Det_ReportRuntimeError/52 (Det_ReportRuntimeError) @06c93b60
  119. Type: function
  120. Visibility: external public
  121. References:
  122. Referring:
  123. Availability: not_available
  124. Function flags:
  125. Called by: Uart_StartSyncSend/33 Uart_StartSyncReceive/32
  126. Calls:
  127. Uart_Ipw_SyncReceive/51 (Uart_Ipw_SyncReceive) @06c93a80
  128. Type: function
  129. Visibility: external public
  130. References:
  131. Referring:
  132. Availability: not_available
  133. Function flags:
  134. Called by: Uart_StartSyncReceive/32
  135. Calls:
  136. Det_ReportError/50 (Det_ReportError) @06c939a0
  137. Type: function
  138. Visibility: external public
  139. References:
  140. Referring:
  141. Availability: not_available
  142. Function flags:
  143. Called by: Uart_GetVersionInfo/48 Uart_GetStatus/47 Uart_GetStatus/47 Uart_GetStatus/47 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_Abort/41 Uart_Abort/41 Uart_GetBaudrate/40 Uart_GetBaudrate/40 Uart_GetBaudrate/40 Uart_SetBaudrate/39 Uart_SetBaudrate/39 Uart_SetBaudrate/39 Uart_Deinit/38 Uart_Init/37 Uart_Init/37 Uart_StartAsyncSend/35 Uart_StartAsyncReceive/34 Uart_StartSyncSend/33 Uart_StartSyncReceive/32
  144. Calls:
  145. Uart_Ipw_GetReceiveStatus/49 (Uart_Ipw_GetReceiveStatus) @06c938c0
  146. Type: function
  147. Visibility: external public
  148. References:
  149. Referring:
  150. Availability: not_available
  151. Function flags:
  152. Called by: Uart_GetStatus/47 Uart_SetBaudrate/39 Uart_StartAsyncReceive/34 Uart_StartSyncReceive/32
  153. Calls:
  154. Uart_GetVersionInfo/48 (Uart_GetVersionInfo) @06c93460
  155. Type: function definition analyzed
  156. Visibility: force_output externally_visible no_reorder public
  157. References:
  158. Referring:
  159. Availability: available
  160. Function flags: body
  161. Called by:
  162. Calls: Det_ReportError/50
  163. Uart_GetStatus/47 (Uart_GetStatus) @06c931c0
  164. Type: function definition analyzed
  165. Visibility: force_output externally_visible no_reorder public
  166. References: Uart_au8DriverStatus/29 (read)
  167. Referring:
  168. Availability: available
  169. Function flags: body
  170. Called by:
  171. Calls: Uart_Ipw_GetReceiveStatus/49 Uart_Ipw_GetTransmitStatus/53 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  172. Uart_AsyncSend/46 (Uart_AsyncSend) @06c42d20
  173. Type: function definition analyzed
  174. Visibility: force_output externally_visible no_reorder public
  175. References: Uart_au8DriverStatus/29 (read)
  176. Referring:
  177. Availability: available
  178. Function flags: body
  179. Called by:
  180. Calls: Uart_StartAsyncSend/35 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  181. Uart_AsyncReceive/45 (Uart_AsyncReceive) @06c427e0
  182. Type: function definition analyzed
  183. Visibility: force_output externally_visible no_reorder public
  184. References: Uart_au8DriverStatus/29 (read)
  185. Referring:
  186. Availability: available
  187. Function flags: body
  188. Called by:
  189. Calls: Uart_StartAsyncReceive/34 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  190. Uart_SyncReceive/44 (Uart_SyncReceive) @06c422a0
  191. Type: function definition analyzed
  192. Visibility: force_output externally_visible no_reorder public
  193. References: Uart_au8DriverStatus/29 (read)
  194. Referring:
  195. Availability: available
  196. Function flags: body
  197. Called by:
  198. Calls: Uart_StartSyncReceive/32 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  199. Uart_SyncSend/43 (Uart_SyncSend) @06c42ee0
  200. Type: function definition analyzed
  201. Visibility: force_output externally_visible no_reorder public
  202. References: Uart_au8DriverStatus/29 (read)
  203. Referring:
  204. Availability: available
  205. Function flags: body
  206. Called by:
  207. Calls: Uart_StartSyncSend/33 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  208. Uart_SetBuffer/42 (Uart_SetBuffer) @06c42c40
  209. Type: function definition analyzed
  210. Visibility: force_output externally_visible no_reorder public
  211. References: Uart_au8DriverStatus/29 (read)
  212. Referring:
  213. Availability: available
  214. Function flags: body
  215. Called by:
  216. Calls: Uart_StartSetBuffer/36 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  217. Uart_Abort/41 (Uart_Abort) @06c429a0
  218. Type: function definition analyzed
  219. Visibility: force_output externally_visible no_reorder public
  220. References: Uart_au8DriverStatus/29 (read)
  221. Referring:
  222. Availability: available
  223. Function flags: body
  224. Called by:
  225. Calls: Uart_Ipw_AbortReceivingData/65 Uart_Ipw_AbortSendingData/64 Det_ReportError/50 Det_ReportError/50
  226. Uart_GetBaudrate/40 (Uart_GetBaudrate) @06c42700
  227. Type: function definition analyzed
  228. Visibility: force_output externally_visible no_reorder public
  229. References: Uart_au8DriverStatus/29 (read)
  230. Referring:
  231. Availability: available
  232. Function flags: body
  233. Called by:
  234. Calls: Uart_Ipw_GetBaudrate/63 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
  235. Uart_SetBaudrate/39 (Uart_SetBaudrate) @06c42460
  236. Type: function definition analyzed
  237. Visibility: force_output externally_visible no_reorder public
  238. References: Uart_au8DriverStatus/29 (read)Uart_au32ClockFrequency/30 (read)
  239. Referring:
  240. Availability: available
  241. Function flags: body
  242. Called by:
  243. Calls: Uart_Ipw_SetBaudrate/62 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53 Uart_Ipw_GetReceiveStatus/49 Det_ReportError/50 Det_ReportError/50
  244. Uart_Deinit/38 (Uart_Deinit) @06c421c0
  245. Type: function definition analyzed
  246. Visibility: force_output externally_visible no_reorder public
  247. References: Uart_au8DriverStatus/29 (read)Uart_apConfig/31 (read)Uart_au8DriverStatus/29 (write)Uart_apConfig/31 (write)
  248. Referring:
  249. Availability: available
  250. Function flags: body
  251. Called by:
  252. Calls: Uart_Ipw_Deinit/61 Det_ReportError/50
  253. Uart_Init/37 (Uart_Init) @06c3ad20
  254. Type: function definition analyzed
  255. Visibility: force_output externally_visible no_reorder public
  256. References: Uart_au8DriverStatus/29 (read)Uart_pxPBcfgVariantPredefined/59 (read)Uart_apConfig/31 (write)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_au32ClockFrequency/30 (write)Uart_au8DriverStatus/29 (write)
  257. Referring:
  258. Availability: available
  259. Function flags: body
  260. Called by:
  261. Calls: Uart_Ipw_Init/60 Det_ReportError/50 Det_ReportError/50
  262. Uart_StartSetBuffer/36 (Uart_StartSetBuffer) @06c3a7e0
  263. Type: function definition analyzed
  264. Visibility: force_output no_reorder prevailing_def_ironly
  265. References:
  266. Referring:
  267. Availability: available
  268. Function flags: body
  269. Called by: Uart_SetBuffer/42
  270. Calls: Uart_Ipw_SetRxBuffer/58 Uart_Ipw_SetTxBuffer/57
  271. Uart_StartAsyncSend/35 (Uart_StartAsyncSend) @06c3aee0
  272. Type: function definition analyzed
  273. Visibility: force_output no_reorder prevailing_def_ironly
  274. References:
  275. Referring:
  276. Availability: available
  277. Function flags: body
  278. Called by: Uart_AsyncSend/46
  279. Calls: Uart_Ipw_AsyncSend/56 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53
  280. Uart_StartAsyncReceive/34 (Uart_StartAsyncReceive) @06c3ac40
  281. Type: function definition analyzed
  282. Visibility: force_output no_reorder prevailing_def_ironly
  283. References:
  284. Referring:
  285. Availability: available
  286. Function flags: body
  287. Called by: Uart_AsyncReceive/45
  288. Calls: Uart_Ipw_AsyncReceive/55 Det_ReportError/50 Uart_Ipw_GetReceiveStatus/49
  289. Uart_StartSyncSend/33 (Uart_StartSyncSend) @06c3a9a0
  290. Type: function definition analyzed
  291. Visibility: force_output no_reorder prevailing_def_ironly
  292. References:
  293. Referring:
  294. Availability: available
  295. Function flags: body
  296. Called by: Uart_SyncSend/43
  297. Calls: Det_ReportRuntimeError/52 Uart_Ipw_SyncSend/54 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53
  298. Uart_StartSyncReceive/32 (Uart_StartSyncReceive) @06c3a700
  299. Type: function definition analyzed
  300. Visibility: force_output no_reorder prevailing_def_ironly
  301. References:
  302. Referring:
  303. Availability: available
  304. Function flags: body
  305. Called by: Uart_SyncReceive/44
  306. Calls: Det_ReportRuntimeError/52 Uart_Ipw_SyncReceive/51 Det_ReportError/50 Uart_Ipw_GetReceiveStatus/49
  307. Uart_apConfig/31 (Uart_apConfig) @06c35438
  308. Type: variable definition analyzed
  309. Visibility: force_output no_reorder prevailing_def_ironly
  310. References:
  311. Referring: Uart_Init/37 (read)Uart_Init/37 (read)Uart_Init/37 (write)Uart_Init/37 (read)Uart_Init/37 (read)Uart_Deinit/38 (read)Uart_Deinit/38 (write)
  312. Availability: available
  313. Varpool flags:
  314. Uart_au32ClockFrequency/30 (Uart_au32ClockFrequency) @06c35360
  315. Type: variable definition analyzed
  316. Visibility: force_output no_reorder prevailing_def_ironly
  317. References:
  318. Referring: Uart_Init/37 (write)Uart_SetBaudrate/39 (read)
  319. Availability: available
  320. Varpool flags:
  321. Uart_au8DriverStatus/29 (Uart_au8DriverStatus) @06c352d0
  322. Type: variable definition analyzed
  323. Visibility: force_output no_reorder prevailing_def_ironly
  324. References:
  325. Referring: Uart_SyncReceive/44 (read)Uart_AsyncReceive/45 (read)Uart_Init/37 (read)Uart_AsyncSend/46 (read)Uart_Init/37 (write)Uart_Deinit/38 (write)Uart_SetBaudrate/39 (read)Uart_GetBaudrate/40 (read)Uart_Abort/41 (read)Uart_SetBuffer/42 (read)Uart_SyncSend/43 (read)Uart_Deinit/38 (read)Uart_GetStatus/47 (read)
  326. Availability: available
  327. Varpool flags:
  328. Uart_GetVersionInfo (struct Std_VersionInfoType * VersionInfo)
  329. {
  330. <bb 2> :
  331. if (VersionInfo_2(D) == 0B)
  332. goto <bb 3>; [INV]
  333. else
  334. goto <bb 4>; [INV]
  335. <bb 3> :
  336. Det_ReportError (255, 0, 10, 3);
  337. goto <bb 5>; [INV]
  338. <bb 4> :
  339. VersionInfo_2(D)->vendorID = 43;
  340. VersionInfo_2(D)->moduleID = 255;
  341. VersionInfo_2(D)->sw_major_version = 1;
  342. VersionInfo_2(D)->sw_minor_version = 0;
  343. VersionInfo_2(D)->sw_patch_version = 0;
  344. <bb 5> :
  345. return;
  346. }
  347. Uart_GetStatus (uint8 Channel, uint32 * BytesTransfered, Uart_DataDirectionType TransferType)
  348. {
  349. uint8 CoreId;
  350. Uart_StatusType TempReturn;
  351. Uart_StatusType D.6442;
  352. int _1;
  353. <unnamed type> _2;
  354. Uart_StatusType _18;
  355. <bb 2> :
  356. TempReturn_5 = 4;
  357. CoreId_6 = 0;
  358. _1 = (int) CoreId_6;
  359. _2 = Uart_au8DriverStatus[_1];
  360. if (_2 == 0)
  361. goto <bb 3>; [INV]
  362. else
  363. goto <bb 4>; [INV]
  364. <bb 3> :
  365. Det_ReportError (255, 0, 9, 1);
  366. goto <bb 11>; [INV]
  367. <bb 4> :
  368. if (Channel_8(D) > 2)
  369. goto <bb 5>; [INV]
  370. else
  371. goto <bb 6>; [INV]
  372. <bb 5> :
  373. Det_ReportError (255, 0, 9, 2);
  374. goto <bb 11>; [INV]
  375. <bb 6> :
  376. if (BytesTransfered_9(D) == 0B)
  377. goto <bb 7>; [INV]
  378. else
  379. goto <bb 8>; [INV]
  380. <bb 7> :
  381. Det_ReportError (255, 0, 9, 3);
  382. goto <bb 11>; [INV]
  383. <bb 8> :
  384. if (TransferType_10(D) == 0)
  385. goto <bb 9>; [INV]
  386. else
  387. goto <bb 10>; [INV]
  388. <bb 9> :
  389. TempReturn_14 = Uart_Ipw_GetTransmitStatus (Channel_8(D), BytesTransfered_9(D));
  390. goto <bb 11>; [INV]
  391. <bb 10> :
  392. TempReturn_12 = Uart_Ipw_GetReceiveStatus (Channel_8(D), BytesTransfered_9(D));
  393. <bb 11> :
  394. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_14(9), TempReturn_12(10)>
  395. _18 = TempReturn_3;
  396. <bb 12> :
  397. <L12>:
  398. return _18;
  399. }
  400. Uart_AsyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
  401. {
  402. uint8 CoreId;
  403. Std_ReturnType TempReturn;
  404. Std_ReturnType D.6428;
  405. int _1;
  406. <unnamed type> _2;
  407. Std_ReturnType _17;
  408. <bb 2> :
  409. TempReturn_5 = 1;
  410. CoreId_6 = 0;
  411. _1 = (int) CoreId_6;
  412. _2 = Uart_au8DriverStatus[_1];
  413. if (_2 == 0)
  414. goto <bb 3>; [INV]
  415. else
  416. goto <bb 4>; [INV]
  417. <bb 3> :
  418. Det_ReportError (255, 0, 5, 1);
  419. goto <bb 11>; [INV]
  420. <bb 4> :
  421. if (Channel_8(D) > 2)
  422. goto <bb 5>; [INV]
  423. else
  424. goto <bb 6>; [INV]
  425. <bb 5> :
  426. Det_ReportError (255, 0, 5, 2);
  427. goto <bb 11>; [INV]
  428. <bb 6> :
  429. if (Buffer_9(D) == 0B)
  430. goto <bb 7>; [INV]
  431. else
  432. goto <bb 8>; [INV]
  433. <bb 7> :
  434. Det_ReportError (255, 0, 5, 3);
  435. goto <bb 11>; [INV]
  436. <bb 8> :
  437. if (BufferSize_10(D) == 0)
  438. goto <bb 9>; [INV]
  439. else
  440. goto <bb 10>; [INV]
  441. <bb 9> :
  442. Det_ReportError (255, 0, 5, 7);
  443. goto <bb 11>; [INV]
  444. <bb 10> :
  445. TempReturn_12 = Uart_StartAsyncSend (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D));
  446. <bb 11> :
  447. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_12(10)>
  448. _17 = TempReturn_3;
  449. <bb 12> :
  450. <L12>:
  451. return _17;
  452. }
  453. Uart_AsyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
  454. {
  455. uint8 CoreId;
  456. Std_ReturnType TempReturn;
  457. Std_ReturnType D.6414;
  458. int _1;
  459. <unnamed type> _2;
  460. Std_ReturnType _17;
  461. <bb 2> :
  462. TempReturn_5 = 1;
  463. CoreId_6 = 0;
  464. _1 = (int) CoreId_6;
  465. _2 = Uart_au8DriverStatus[_1];
  466. if (_2 == 0)
  467. goto <bb 3>; [INV]
  468. else
  469. goto <bb 4>; [INV]
  470. <bb 3> :
  471. Det_ReportError (255, 0, 7, 1);
  472. goto <bb 11>; [INV]
  473. <bb 4> :
  474. if (Channel_8(D) > 2)
  475. goto <bb 5>; [INV]
  476. else
  477. goto <bb 6>; [INV]
  478. <bb 5> :
  479. Det_ReportError (255, 0, 7, 2);
  480. goto <bb 11>; [INV]
  481. <bb 6> :
  482. if (Buffer_9(D) == 0B)
  483. goto <bb 7>; [INV]
  484. else
  485. goto <bb 8>; [INV]
  486. <bb 7> :
  487. Det_ReportError (255, 0, 7, 3);
  488. goto <bb 11>; [INV]
  489. <bb 8> :
  490. if (BufferSize_10(D) == 0)
  491. goto <bb 9>; [INV]
  492. else
  493. goto <bb 10>; [INV]
  494. <bb 9> :
  495. Det_ReportError (255, 0, 7, 7);
  496. goto <bb 11>; [INV]
  497. <bb 10> :
  498. TempReturn_12 = Uart_StartAsyncReceive (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D));
  499. <bb 11> :
  500. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_12(10)>
  501. _17 = TempReturn_3;
  502. <bb 12> :
  503. <L12>:
  504. return _17;
  505. }
  506. Uart_SyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
  507. {
  508. uint8 CoreId;
  509. Std_ReturnType TempReturn;
  510. Std_ReturnType D.6400;
  511. int _1;
  512. <unnamed type> _2;
  513. Std_ReturnType _18;
  514. <bb 2> :
  515. TempReturn_5 = 1;
  516. CoreId_6 = 0;
  517. _1 = (int) CoreId_6;
  518. _2 = Uart_au8DriverStatus[_1];
  519. if (_2 == 0)
  520. goto <bb 3>; [INV]
  521. else
  522. goto <bb 4>; [INV]
  523. <bb 3> :
  524. Det_ReportError (255, 0, 6, 1);
  525. goto <bb 11>; [INV]
  526. <bb 4> :
  527. if (Channel_8(D) > 2)
  528. goto <bb 5>; [INV]
  529. else
  530. goto <bb 6>; [INV]
  531. <bb 5> :
  532. Det_ReportError (255, 0, 6, 2);
  533. goto <bb 11>; [INV]
  534. <bb 6> :
  535. if (Buffer_9(D) == 0B)
  536. goto <bb 7>; [INV]
  537. else
  538. goto <bb 8>; [INV]
  539. <bb 7> :
  540. Det_ReportError (255, 0, 6, 3);
  541. goto <bb 11>; [INV]
  542. <bb 8> :
  543. if (BufferSize_10(D) == 0)
  544. goto <bb 9>; [INV]
  545. else
  546. goto <bb 10>; [INV]
  547. <bb 9> :
  548. Det_ReportError (255, 0, 6, 7);
  549. goto <bb 11>; [INV]
  550. <bb 10> :
  551. TempReturn_13 = Uart_StartSyncReceive (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  552. <bb 11> :
  553. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
  554. _18 = TempReturn_3;
  555. <bb 12> :
  556. <L12>:
  557. return _18;
  558. }
  559. Uart_SyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
  560. {
  561. uint8 CoreId;
  562. Std_ReturnType TempReturn;
  563. Std_ReturnType D.6386;
  564. int _1;
  565. <unnamed type> _2;
  566. Std_ReturnType _18;
  567. <bb 2> :
  568. TempReturn_5 = 1;
  569. CoreId_6 = 0;
  570. _1 = (int) CoreId_6;
  571. _2 = Uart_au8DriverStatus[_1];
  572. if (_2 == 0)
  573. goto <bb 3>; [INV]
  574. else
  575. goto <bb 4>; [INV]
  576. <bb 3> :
  577. Det_ReportError (255, 0, 4, 1);
  578. goto <bb 11>; [INV]
  579. <bb 4> :
  580. if (Channel_8(D) > 2)
  581. goto <bb 5>; [INV]
  582. else
  583. goto <bb 6>; [INV]
  584. <bb 5> :
  585. Det_ReportError (255, 0, 4, 2);
  586. goto <bb 11>; [INV]
  587. <bb 6> :
  588. if (Buffer_9(D) == 0B)
  589. goto <bb 7>; [INV]
  590. else
  591. goto <bb 8>; [INV]
  592. <bb 7> :
  593. Det_ReportError (255, 0, 4, 3);
  594. goto <bb 11>; [INV]
  595. <bb 8> :
  596. if (BufferSize_10(D) == 0)
  597. goto <bb 9>; [INV]
  598. else
  599. goto <bb 10>; [INV]
  600. <bb 9> :
  601. Det_ReportError (255, 0, 4, 7);
  602. goto <bb 11>; [INV]
  603. <bb 10> :
  604. TempReturn_13 = Uart_StartSyncSend (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  605. <bb 11> :
  606. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
  607. _18 = TempReturn_3;
  608. <bb 12> :
  609. <L12>:
  610. return _18;
  611. }
  612. Uart_SetBuffer (uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
  613. {
  614. uint8 CoreId;
  615. Std_ReturnType TempReturn;
  616. Std_ReturnType D.6372;
  617. int _1;
  618. <unnamed type> _2;
  619. Std_ReturnType _18;
  620. <bb 2> :
  621. TempReturn_5 = 1;
  622. CoreId_6 = 0;
  623. _1 = (int) CoreId_6;
  624. _2 = Uart_au8DriverStatus[_1];
  625. if (_2 == 0)
  626. goto <bb 3>; [INV]
  627. else
  628. goto <bb 4>; [INV]
  629. <bb 3> :
  630. Det_ReportError (255, 0, 11, 1);
  631. goto <bb 11>; [INV]
  632. <bb 4> :
  633. if (Channel_8(D) > 2)
  634. goto <bb 5>; [INV]
  635. else
  636. goto <bb 6>; [INV]
  637. <bb 5> :
  638. Det_ReportError (255, 0, 11, 2);
  639. goto <bb 11>; [INV]
  640. <bb 6> :
  641. if (Buffer_9(D) == 0B)
  642. goto <bb 7>; [INV]
  643. else
  644. goto <bb 8>; [INV]
  645. <bb 7> :
  646. Det_ReportError (255, 0, 11, 3);
  647. goto <bb 11>; [INV]
  648. <bb 8> :
  649. if (BufferSize_10(D) == 0)
  650. goto <bb 9>; [INV]
  651. else
  652. goto <bb 10>; [INV]
  653. <bb 9> :
  654. Det_ReportError (255, 0, 11, 7);
  655. goto <bb 11>; [INV]
  656. <bb 10> :
  657. TempReturn_13 = Uart_StartSetBuffer (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Direction_11(D));
  658. <bb 11> :
  659. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
  660. _18 = TempReturn_3;
  661. <bb 12> :
  662. <L12>:
  663. return _18;
  664. }
  665. Uart_Abort (uint8 Channel, Uart_DataDirectionType TransmissionType)
  666. {
  667. uint8 CoreId;
  668. Std_ReturnType TempReturn;
  669. Std_ReturnType D.6358;
  670. int _1;
  671. <unnamed type> _2;
  672. Std_ReturnType _16;
  673. <bb 2> :
  674. TempReturn_5 = 1;
  675. CoreId_6 = 0;
  676. _1 = (int) CoreId_6;
  677. _2 = Uart_au8DriverStatus[_1];
  678. if (_2 == 0)
  679. goto <bb 3>; [INV]
  680. else
  681. goto <bb 4>; [INV]
  682. <bb 3> :
  683. Det_ReportError (255, 0, 8, 1);
  684. goto <bb 9>; [INV]
  685. <bb 4> :
  686. if (Channel_8(D) > 2)
  687. goto <bb 5>; [INV]
  688. else
  689. goto <bb 6>; [INV]
  690. <bb 5> :
  691. Det_ReportError (255, 0, 8, 2);
  692. goto <bb 9>; [INV]
  693. <bb 6> :
  694. if (TransmissionType_9(D) == 0)
  695. goto <bb 7>; [INV]
  696. else
  697. goto <bb 8>; [INV]
  698. <bb 7> :
  699. TempReturn_13 = Uart_Ipw_AbortSendingData (Channel_8(D));
  700. goto <bb 9>; [INV]
  701. <bb 8> :
  702. TempReturn_11 = Uart_Ipw_AbortReceivingData (Channel_8(D));
  703. <bb 9> :
  704. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_13(7), TempReturn_11(8)>
  705. _16 = TempReturn_3;
  706. <bb 10> :
  707. <L9>:
  708. return _16;
  709. }
  710. Uart_GetBaudrate (uint8 Channel, uint32 * Baudrate)
  711. {
  712. uint8 CoreId;
  713. Std_ReturnType TempReturn;
  714. Std_ReturnType D.6347;
  715. int _1;
  716. <unnamed type> _2;
  717. Std_ReturnType _15;
  718. <bb 2> :
  719. TempReturn_5 = 1;
  720. CoreId_6 = 0;
  721. _1 = (int) CoreId_6;
  722. _2 = Uart_au8DriverStatus[_1];
  723. if (_2 == 0)
  724. goto <bb 3>; [INV]
  725. else
  726. goto <bb 4>; [INV]
  727. <bb 3> :
  728. Det_ReportError (255, 0, 3, 1);
  729. goto <bb 9>; [INV]
  730. <bb 4> :
  731. if (Channel_8(D) > 2)
  732. goto <bb 5>; [INV]
  733. else
  734. goto <bb 6>; [INV]
  735. <bb 5> :
  736. Det_ReportError (255, 0, 3, 2);
  737. goto <bb 9>; [INV]
  738. <bb 6> :
  739. if (Baudrate_9(D) == 0B)
  740. goto <bb 7>; [INV]
  741. else
  742. goto <bb 8>; [INV]
  743. <bb 7> :
  744. Det_ReportError (255, 0, 3, 3);
  745. goto <bb 9>; [INV]
  746. <bb 8> :
  747. Uart_Ipw_GetBaudrate (Channel_8(D), Baudrate_9(D));
  748. TempReturn_11 = 0;
  749. <bb 9> :
  750. # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_11(8)>
  751. _15 = TempReturn_3;
  752. <bb 10> :
  753. <L9>:
  754. return _15;
  755. }
  756. Uart_SetBaudrate (uint8 Channel, Uart_BaudrateType Baudrate)
  757. {
  758. Uart_StatusType TransmitStatus;
  759. Uart_StatusType ReceiveStatus;
  760. uint8 CoreId;
  761. Std_ReturnType TempReturn;
  762. Std_ReturnType D.6336;
  763. int _1;
  764. <unnamed type> _2;
  765. int _3;
  766. int _4;
  767. long unsigned int _5;
  768. Std_ReturnType _22;
  769. <bb 2> :
  770. TempReturn_8 = 1;
  771. CoreId_9 = 0;
  772. _1 = (int) CoreId_9;
  773. _2 = Uart_au8DriverStatus[_1];
  774. if (_2 == 0)
  775. goto <bb 3>; [INV]
  776. else
  777. goto <bb 4>; [INV]
  778. <bb 3> :
  779. Det_ReportError (255, 0, 2, 1);
  780. goto <bb 10>; [INV]
  781. <bb 4> :
  782. if (Channel_11(D) > 2)
  783. goto <bb 5>; [INV]
  784. else
  785. goto <bb 6>; [INV]
  786. <bb 5> :
  787. Det_ReportError (255, 0, 2, 2);
  788. goto <bb 10>; [INV]
  789. <bb 6> :
  790. ReceiveStatus_13 = Uart_Ipw_GetReceiveStatus (Channel_11(D), 0B);
  791. TransmitStatus_15 = Uart_Ipw_GetTransmitStatus (Channel_11(D), 0B);
  792. if (ReceiveStatus_13 == 1)
  793. goto <bb 8>; [INV]
  794. else
  795. goto <bb 7>; [INV]
  796. <bb 7> :
  797. if (TransmitStatus_15 == 1)
  798. goto <bb 8>; [INV]
  799. else
  800. goto <bb 9>; [INV]
  801. <bb 8> :
  802. Det_ReportError (255, 0, 2, 6);
  803. goto <bb 10>; [INV]
  804. <bb 9> :
  805. _3 = (int) CoreId_9;
  806. _4 = (int) Channel_11(D);
  807. _5 = Uart_au32ClockFrequency[_3][_4];
  808. TempReturn_18 = Uart_Ipw_SetBaudrate (Channel_11(D), Baudrate_16(D), _5);
  809. <bb 10> :
  810. # TempReturn_6 = PHI <TempReturn_8(3), TempReturn_8(5), TempReturn_8(8), TempReturn_18(9)>
  811. _22 = TempReturn_6;
  812. <bb 11> :
  813. <L10>:
  814. return _22;
  815. }
  816. Uart_Deinit ()
  817. {
  818. uint8 CoreId;
  819. uint8 u8ChLoop;
  820. int _1;
  821. <unnamed type> _2;
  822. int _3;
  823. const struct Uart_ConfigType * _4;
  824. int _5;
  825. const struct Uart_ChannelConfigType * _6;
  826. unsigned char _7;
  827. int _8;
  828. unsigned char u8ChLoop.1_9;
  829. int _10;
  830. <bb 2> :
  831. u8ChLoop_14 = 0;
  832. CoreId_15 = 0;
  833. CoreId_16 = 0;
  834. _1 = (int) CoreId_16;
  835. _2 = Uart_au8DriverStatus[_1];
  836. if (_2 != 1)
  837. goto <bb 3>; [INV]
  838. else
  839. goto <bb 4>; [INV]
  840. <bb 3> :
  841. Det_ReportError (255, 0, 1, 1);
  842. goto <bb 8>; [INV]
  843. <bb 4> :
  844. u8ChLoop_18 = 0;
  845. goto <bb 6>; [INV]
  846. <bb 5> :
  847. _3 = (int) CoreId_16;
  848. _4 = Uart_apConfig[_3];
  849. _5 = (int) u8ChLoop_11;
  850. _6 = _4->Configs[_5];
  851. _7 = _6->UartChannelId;
  852. Uart_Ipw_Deinit (_7);
  853. _8 = (int) CoreId_16;
  854. Uart_au8DriverStatus[_8] = 0;
  855. u8ChLoop.1_9 = u8ChLoop_11;
  856. u8ChLoop_22 = u8ChLoop.1_9 + 1;
  857. <bb 6> :
  858. # u8ChLoop_11 = PHI <u8ChLoop_18(4), u8ChLoop_22(5)>
  859. if (u8ChLoop_11 <= 2)
  860. goto <bb 5>; [INV]
  861. else
  862. goto <bb 7>; [INV]
  863. <bb 7> :
  864. _10 = (int) CoreId_16;
  865. Uart_apConfig[_10] = 0B;
  866. <bb 8> :
  867. return;
  868. }
  869. Uart_Init (const struct Uart_ConfigType * Config)
  870. {
  871. uint8 Channel;
  872. uint8 CoreId;
  873. uint8 u8ChLoop;
  874. int _1;
  875. <unnamed type> _2;
  876. int _3;
  877. int _4;
  878. const struct Uart_ConfigType * _5;
  879. int _6;
  880. const struct Uart_ConfigType * _7;
  881. int _8;
  882. const struct Uart_ChannelConfigType * _9;
  883. int _10;
  884. const struct Uart_ConfigType * _11;
  885. int _12;
  886. const struct Uart_ChannelConfigType * _13;
  887. int _14;
  888. const struct Uart_ConfigType * _15;
  889. int _16;
  890. const struct Uart_ChannelConfigType * _17;
  891. const struct Uart_Ipw_HwConfigType * _18;
  892. int _19;
  893. const struct Uart_ConfigType * _20;
  894. int _21;
  895. const struct Uart_ChannelConfigType * _22;
  896. int _23;
  897. int _24;
  898. long unsigned int _25;
  899. int _26;
  900. unsigned char u8ChLoop.0_27;
  901. <bb 2> :
  902. CoreId_32 = 0;
  903. _1 = (int) CoreId_32;
  904. _2 = Uart_au8DriverStatus[_1];
  905. if (_2 != 0)
  906. goto <bb 3>; [INV]
  907. else
  908. goto <bb 4>; [INV]
  909. <bb 3> :
  910. Det_ReportError (255, 0, 0, 4);
  911. goto <bb 11>; [INV]
  912. <bb 4> :
  913. if (Config_34(D) != 0B)
  914. goto <bb 5>; [INV]
  915. else
  916. goto <bb 6>; [INV]
  917. <bb 5> :
  918. Det_ReportError (255, 0, 0, 9);
  919. goto <bb 11>; [INV]
  920. <bb 6> :
  921. _3 = (int) CoreId_32;
  922. _4 = (int) CoreId_32;
  923. _5 = Uart_pxPBcfgVariantPredefined[_3];
  924. Uart_apConfig[_4] = _5;
  925. u8ChLoop_36 = 0;
  926. goto <bb 10>; [INV]
  927. <bb 7> :
  928. _6 = (int) CoreId_32;
  929. _7 = Uart_apConfig[_6];
  930. _8 = (int) u8ChLoop_28;
  931. _9 = _7->Configs[_8];
  932. if (_9 != 0B)
  933. goto <bb 8>; [INV]
  934. else
  935. goto <bb 9>; [INV]
  936. <bb 8> :
  937. _10 = (int) CoreId_32;
  938. _11 = Uart_apConfig[_10];
  939. _12 = (int) u8ChLoop_28;
  940. _13 = _11->Configs[_12];
  941. Channel_37 = _13->UartChannelId;
  942. _14 = (int) CoreId_32;
  943. _15 = Uart_apConfig[_14];
  944. _16 = (int) u8ChLoop_28;
  945. _17 = _15->Configs[_16];
  946. _18 = _17->UartChannelConfig;
  947. Uart_Ipw_Init (Channel_37, _18);
  948. _19 = (int) CoreId_32;
  949. _20 = Uart_apConfig[_19];
  950. _21 = (int) u8ChLoop_28;
  951. _22 = _20->Configs[_21];
  952. _23 = (int) CoreId_32;
  953. _24 = (int) Channel_37;
  954. _25 = _22->ChannelClockFrequency;
  955. Uart_au32ClockFrequency[_23][_24] = _25;
  956. _26 = (int) CoreId_32;
  957. Uart_au8DriverStatus[_26] = 1;
  958. <bb 9> :
  959. u8ChLoop.0_27 = u8ChLoop_28;
  960. u8ChLoop_41 = u8ChLoop.0_27 + 1;
  961. <bb 10> :
  962. # u8ChLoop_28 = PHI <u8ChLoop_36(6), u8ChLoop_41(9)>
  963. if (u8ChLoop_28 <= 2)
  964. goto <bb 7>; [INV]
  965. else
  966. goto <bb 11>; [INV]
  967. <bb 11> :
  968. return;
  969. }
  970. Uart_StartSetBuffer (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
  971. {
  972. Std_ReturnType TempReturn;
  973. Std_ReturnType D.6313;
  974. Std_ReturnType _11;
  975. <bb 2> :
  976. TempReturn_2 = 1;
  977. if (Direction_3(D) == 0)
  978. goto <bb 3>; [INV]
  979. else
  980. goto <bb 4>; [INV]
  981. <bb 3> :
  982. Uart_Ipw_SetTxBuffer (Channel_5(D), Buffer_6(D), BufferSize_7(D));
  983. goto <bb 5>; [INV]
  984. <bb 4> :
  985. Uart_Ipw_SetRxBuffer (Channel_5(D), Buffer_6(D), BufferSize_7(D));
  986. <bb 5> :
  987. TempReturn_10 = 0;
  988. _11 = TempReturn_10;
  989. <bb 6> :
  990. <L3>:
  991. return _11;
  992. }
  993. Uart_StartAsyncSend (uint8 CoreId, uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
  994. {
  995. Std_ReturnType TempReturn;
  996. Std_ReturnType D.6308;
  997. <unnamed type> _1;
  998. Std_ReturnType _13;
  999. <bb 2> :
  1000. TempReturn_4 = 1;
  1001. _1 = Uart_Ipw_GetTransmitStatus (Channel_6(D), 0B);
  1002. if (_1 == 1)
  1003. goto <bb 3>; [INV]
  1004. else
  1005. goto <bb 4>; [INV]
  1006. <bb 3> :
  1007. Det_ReportError (255, 0, 5, 6);
  1008. goto <bb 5>; [INV]
  1009. <bb 4> :
  1010. TempReturn_11 = Uart_Ipw_AsyncSend (Channel_6(D), Buffer_8(D), BufferSize_9(D));
  1011. <bb 5> :
  1012. # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_11(4)>
  1013. _13 = TempReturn_2;
  1014. <bb 6> :
  1015. <L3>:
  1016. return _13;
  1017. }
  1018. Uart_StartAsyncReceive (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize)
  1019. {
  1020. Std_ReturnType TempReturn;
  1021. Std_ReturnType D.6303;
  1022. <unnamed type> _1;
  1023. Std_ReturnType _13;
  1024. <bb 2> :
  1025. TempReturn_4 = 1;
  1026. _1 = Uart_Ipw_GetReceiveStatus (Channel_6(D), 0B);
  1027. if (_1 == 1)
  1028. goto <bb 3>; [INV]
  1029. else
  1030. goto <bb 4>; [INV]
  1031. <bb 3> :
  1032. Det_ReportError (255, 0, 7, 6);
  1033. goto <bb 5>; [INV]
  1034. <bb 4> :
  1035. TempReturn_11 = Uart_Ipw_AsyncReceive (Channel_6(D), Buffer_8(D), BufferSize_9(D));
  1036. <bb 5> :
  1037. # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_11(4)>
  1038. _13 = TempReturn_2;
  1039. <bb 6> :
  1040. <L3>:
  1041. return _13;
  1042. }
  1043. Uart_StartSyncSend (uint8 CoreId, uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
  1044. {
  1045. Std_ReturnType TempReturn;
  1046. Std_ReturnType D.6298;
  1047. <unnamed type> _1;
  1048. Std_ReturnType _16;
  1049. <bb 2> :
  1050. TempReturn_4 = 1;
  1051. _1 = Uart_Ipw_GetTransmitStatus (Channel_6(D), 0B);
  1052. if (_1 == 1)
  1053. goto <bb 3>; [INV]
  1054. else
  1055. goto <bb 4>; [INV]
  1056. <bb 3> :
  1057. Det_ReportError (255, 0, 4, 6);
  1058. goto <bb 6>; [INV]
  1059. <bb 4> :
  1060. TempReturn_12 = Uart_Ipw_SyncSend (Channel_6(D), Buffer_8(D), BufferSize_9(D), Timeout_10(D));
  1061. if (TempReturn_12 == 6)
  1062. goto <bb 5>; [INV]
  1063. else
  1064. goto <bb 6>; [INV]
  1065. <bb 5> :
  1066. Det_ReportRuntimeError (255, 0, 4, 8);
  1067. TempReturn_14 = 1;
  1068. <bb 6> :
  1069. # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_12(4), TempReturn_14(5)>
  1070. _16 = TempReturn_2;
  1071. <bb 7> :
  1072. <L5>:
  1073. return _16;
  1074. }
  1075. Uart_StartSyncReceive (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
  1076. {
  1077. Std_ReturnType TempReturn;
  1078. Std_ReturnType D.6291;
  1079. <unnamed type> _1;
  1080. Std_ReturnType _16;
  1081. <bb 2> :
  1082. TempReturn_4 = 1;
  1083. _1 = Uart_Ipw_GetReceiveStatus (Channel_6(D), 0B);
  1084. if (_1 == 1)
  1085. goto <bb 3>; [INV]
  1086. else
  1087. goto <bb 4>; [INV]
  1088. <bb 3> :
  1089. Det_ReportError (255, 0, 6, 6);
  1090. goto <bb 6>; [INV]
  1091. <bb 4> :
  1092. TempReturn_12 = Uart_Ipw_SyncReceive (Channel_6(D), Buffer_8(D), BufferSize_9(D), Timeout_10(D));
  1093. if (TempReturn_12 == 6)
  1094. goto <bb 5>; [INV]
  1095. else
  1096. goto <bb 6>; [INV]
  1097. <bb 5> :
  1098. Det_ReportRuntimeError (255, 0, 6, 8);
  1099. TempReturn_14 = 1;
  1100. <bb 6> :
  1101. # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_12(4), TempReturn_14(5)>
  1102. _16 = TempReturn_2;
  1103. <bb 7> :
  1104. <L5>:
  1105. return _16;
  1106. }