Uart_Ipw_FlexioTransferCallback (const uint32 HwChannel, const Flexio_Uart_Ip_EventType Event, void * UserData)
{
  Uart_EventType ConvertEvent;
  uint8 Channel;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = HwChannel + 3;
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel = (uint8) _2;
  # DEBUG BEGIN_STMT
  ConvertEvent = Uart_Ipw_FlexioConvertEventType (Event);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) Channel;
  _7 = Uart_Ipw_apChnConfig[_6];
  _8 = _7->Callback;
  _8 (Channel, ConvertEvent);

  <bb 4> :
  return;

}


Uart_Ipw_LpuartCallback (const uint8 HwInstance, const Lpuart_Uart_Ip_EventType Event, void * UserData)
{
  Uart_EventType ConvertEvent;
  uint8 Channel;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) HwInstance;
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel = (uint8) _2;
  # DEBUG BEGIN_STMT
  ConvertEvent = Uart_Ipw_LpuartConvertEventType (Event);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) Channel;
  _7 = Uart_Ipw_apChnConfig[_6];
  _8 = _7->Callback;
  _8 (Channel, ConvertEvent);

  <bb 4> :
  return;

}


Uart_Ipw_FlexioConvertEventType (Flexio_Uart_Ip_EventType Event)
{
  Uart_EventType TempEvent;
  Uart_EventType D.6510;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempEvent = 3;
  # DEBUG BEGIN_STMT
  switch (Event) <default: <L7> [INV], case 0: <L0> [INV], case 1: <L1> [INV], case 2: <L2> [INV], case 3: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempEvent = 0;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempEvent = 1;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempEvent = 2;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempEvent = 3;
  # DEBUG BEGIN_STMT

  <bb 7> :
<L7>:
  # DEBUG BEGIN_STMT
  D.6510 = TempEvent;
  return D.6510;

}


Uart_Ipw_FlexioConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Flexio_Uart_Ip_BaudrateType TempBaud;
  Flexio_Uart_Ip_BaudrateType D.6407;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempBaud = 1200;
  # DEBUG BEGIN_STMT
  switch (Baudrate) <default: <L17> [INV], case 1200: <L0> [INV], case 2400: <L1> [INV], case 4800: <L2> [INV], case 9600: <L3> [INV], case 14400: <L4> [INV], case 19200: <L5> [INV], case 28800: <L6> [INV], case 38400: <L7> [INV], case 57600: <L8> [INV], case 115200: <L9> [INV], case 230400: <L10> [INV], case 460800: <L11> [INV], case 921600: <L12> [INV], case 1843200: <L13> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempBaud = 1200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempBaud = 2400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempBaud = 4800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempBaud = 9600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempBaud = 14400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempBaud = 19200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempBaud = 28800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempBaud = 38400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempBaud = 57600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 12> :
<L9>:
  # DEBUG BEGIN_STMT
  TempBaud = 115200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 13> :
<L10>:
  # DEBUG BEGIN_STMT
  TempBaud = 230400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 14> :
<L11>:
  # DEBUG BEGIN_STMT
  TempBaud = 460800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 15> :
<L12>:
  # DEBUG BEGIN_STMT
  TempBaud = 921600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 16> :
<L13>:
  # DEBUG BEGIN_STMT
  TempBaud = 1843200;
  # DEBUG BEGIN_STMT

  <bb 17> :
<L17>:
  # DEBUG BEGIN_STMT
  D.6407 = TempBaud;
  return D.6407;

}


Uart_Ipw_FlexioConvertStatus (Flexio_Uart_Ip_StatusType Status)
{
  Uart_StatusType TempStatus;
  Uart_StatusType D.6496;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  switch (Status) <default: <L5> [INV], case 0: <L0> [INV], case 2: <L1> [INV], case 514: <L4> [INV], case 516: <L2> [INV], case 518: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempStatus = 2;
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempStatus = 4;
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempStatus = 8;
  # DEBUG BEGIN_STMT

  <bb 9> :
  # DEBUG BEGIN_STMT
  D.6496 = TempStatus;
  return D.6496;

}


Uart_Ipw_LpuartConvertEventType (Lpuart_Uart_Ip_EventType Event)
{
  Uart_EventType TempEvent;
  Uart_EventType D.6505;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempEvent = 3;
  # DEBUG BEGIN_STMT
  switch (Event) <default: <L7> [INV], case 0: <L0> [INV], case 1: <L1> [INV], case 2: <L2> [INV], case 3: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempEvent = 0;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempEvent = 1;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempEvent = 2;
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempEvent = 3;
  # DEBUG BEGIN_STMT

  <bb 7> :
<L7>:
  # DEBUG BEGIN_STMT
  D.6505 = TempEvent;
  return D.6505;

}


Uart_Ipw_LpuartConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Lpuart_Uart_Ip_BaudrateType TempBaud;
  Lpuart_Uart_Ip_BaudrateType D.6404;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempBaud = 1200;
  # DEBUG BEGIN_STMT
  switch (Baudrate) <default: <L17> [INV], case 1200: <L0> [INV], case 2400: <L1> [INV], case 4800: <L2> [INV], case 9600: <L3> [INV], case 14400: <L4> [INV], case 19200: <L5> [INV], case 28800: <L6> [INV], case 38400: <L7> [INV], case 57600: <L8> [INV], case 115200: <L9> [INV], case 230400: <L10> [INV], case 460800: <L11> [INV], case 921600: <L12> [INV], case 1843200: <L13> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempBaud = 1200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempBaud = 2400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempBaud = 4800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempBaud = 9600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempBaud = 14400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempBaud = 19200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempBaud = 28800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempBaud = 38400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempBaud = 57600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 12> :
<L9>:
  # DEBUG BEGIN_STMT
  TempBaud = 115200;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 13> :
<L10>:
  # DEBUG BEGIN_STMT
  TempBaud = 230400;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 14> :
<L11>:
  # DEBUG BEGIN_STMT
  TempBaud = 460800;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 15> :
<L12>:
  # DEBUG BEGIN_STMT
  TempBaud = 921600;
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 16> :
<L13>:
  # DEBUG BEGIN_STMT
  TempBaud = 1843200;
  # DEBUG BEGIN_STMT

  <bb 17> :
<L17>:
  # DEBUG BEGIN_STMT
  D.6404 = TempBaud;
  return D.6404;

}


Uart_Ipw_LpuartConvertStatus (Lpuart_Uart_Ip_StatusType Status)
{
  Uart_StatusType TempStatus;
  Uart_StatusType D.6494;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  switch (Status) <default: <L8> [INV], case 0: <L0> [INV], case 2: <L1> [INV], case 3: <L3> [INV], case 5: <L5> [INV], case 6: <L2> [INV], case 7: <L4> [INV], case 8: <L7> [INV], case 9: <L6> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempStatus = 2;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempStatus = 3;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempStatus = 4;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempStatus = 7;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempStatus = 5;
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempStatus = 8;
  # DEBUG BEGIN_STMT

  <bb 12> :
  # DEBUG BEGIN_STMT
  D.6494 = TempStatus;
  return D.6494;

}


Uart_Ipw_GetReceiveStatus (uint8 Channel, uint32 * BytesRemaining)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Uart_StatusType TempStatus;
  Uart_StatusType D.6501;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus = Lpuart_Uart_Ip_GetReceiveStatus (HwUnit, BytesRemaining);
  # DEBUG BEGIN_STMT
  TempStatus = Uart_Ipw_LpuartConvertStatus (u32LpuartIpStatus);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus = Flexio_Uart_Ip_GetStatus (HwUnit, BytesRemaining);
  # DEBUG BEGIN_STMT
  TempStatus = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus);

  <bb 5> :
  # DEBUG BEGIN_STMT
  D.6501 = TempStatus;
  return D.6501;

}


Uart_Ipw_GetTransmitStatus (uint8 Channel, uint32 * BytesRemaining)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Uart_StatusType TempStatus;
  Uart_StatusType D.6492;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus = Lpuart_Uart_Ip_GetTransmitStatus (HwUnit, BytesRemaining);
  # DEBUG BEGIN_STMT
  TempStatus = Uart_Ipw_LpuartConvertStatus (u32LpuartIpStatus);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus = Flexio_Uart_Ip_GetStatus (HwUnit, BytesRemaining);
  # DEBUG BEGIN_STMT
  TempStatus = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus);

  <bb 5> :
  # DEBUG BEGIN_STMT
  D.6492 = TempStatus;
  return D.6492;

}


Uart_Ipw_AsyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6487;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AsyncSend (HwUnit, Buffer, BufferSize);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AsyncSend (HwUnit, Buffer, BufferSize);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;

  <bb 7> :
  # DEBUG BEGIN_STMT
  D.6487 = TempStatus;
  return D.6487;

}


Uart_Ipw_AsyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6478;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AsyncReceive (HwUnit, Buffer, BufferSize);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AsyncReceive (HwUnit, Buffer, BufferSize);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;

  <bb 7> :
  # DEBUG BEGIN_STMT
  D.6478 = TempStatus;
  return D.6478;

}


Uart_Ipw_SyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6469;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 8>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus = Lpuart_Uart_Ip_SyncReceive (HwUnit, Buffer, BufferSize, Timeout);
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 13>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus == 3)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  goto <bb 13>; [INV]

  <bb 7> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  goto <bb 13>; [INV]

  <bb 8> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus = Flexio_Uart_Ip_SyncReceive (HwUnit, Buffer, BufferSize, Timeout);
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus == 0)
    goto <bb 9>; [INV]
  else
    goto <bb 10>; [INV]

  <bb 9> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 13>; [INV]

  <bb 10> :
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus == 518)
    goto <bb 11>; [INV]
  else
    goto <bb 12>; [INV]

  <bb 11> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  goto <bb 13>; [INV]

  <bb 12> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;

  <bb 13> :
  # DEBUG BEGIN_STMT
  D.6469 = TempStatus;
  return D.6469;

}


Uart_Ipw_SyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6452;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 8>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus = Lpuart_Uart_Ip_SyncSend (HwUnit, Buffer, BufferSize, Timeout);
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 13>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus == 3)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  goto <bb 13>; [INV]

  <bb 7> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  goto <bb 13>; [INV]

  <bb 8> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus = Flexio_Uart_Ip_SyncSend (HwUnit, Buffer, BufferSize, Timeout);
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus == 0)
    goto <bb 9>; [INV]
  else
    goto <bb 10>; [INV]

  <bb 9> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 13>; [INV]

  <bb 10> :
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus == 518)
    goto <bb 11>; [INV]
  else
    goto <bb 12>; [INV]

  <bb 11> :
  # DEBUG BEGIN_STMT
  TempStatus = 6;
  goto <bb 13>; [INV]

  <bb 12> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;

  <bb 13> :
  # DEBUG BEGIN_STMT
  D.6452 = TempStatus;
  return D.6452;

}


Uart_Ipw_SetRxBuffer (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetRxBuffer (HwUnit, Buffer, BufferSize);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetRxBuffer (HwUnit, Buffer, BufferSize);

  <bb 5> :
  return;

}


Uart_Ipw_SetTxBuffer (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetTxBuffer (HwUnit, Buffer, BufferSize);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetTxBuffer (HwUnit, Buffer, BufferSize);

  <bb 5> :
  return;

}


Uart_Ipw_AbortReceivingData (uint8 Channel)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6429;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AbortReceivingData (HwUnit);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AbortTransferData (HwUnit);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;

  <bb 7> :
  # DEBUG BEGIN_STMT
  D.6429 = TempStatus;
  return D.6429;

}


Uart_Ipw_AbortSendingData (uint8 Channel)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6420;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AbortSendingData (HwUnit);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AbortTransferData (HwUnit);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;

  <bb 7> :
  # DEBUG BEGIN_STMT
  D.6420 = TempStatus;
  return D.6420;

}


Uart_Ipw_GetBaudrate (uint8 Channel, uint32 * BaudrateValue)
{
  uint8 HwUnit;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_GetBaudRate (HwUnit, BaudrateValue);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_GetBaudRate (HwUnit, BaudrateValue);

  <bb 5> :
  return;

}


Uart_Ipw_SetBaudrate (uint8 Channel, Uart_BaudrateType BaudRateValue, uint32 ClockFrequency)
{
  Flexio_Uart_Ip_BaudrateType FlexioBaud;
  Lpuart_Uart_Ip_BaudrateType LpuartBaud;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  Std_ReturnType D.6402;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus = 1;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  LpuartBaud = Uart_Ipw_LpuartConvertBaudrateType (BaudRateValue);
  # DEBUG BEGIN_STMT
  FlexioBaud = Uart_Ipw_FlexioConvertBaudrateType (BaudRateValue);
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_SetBaudRate (HwUnit, LpuartBaud, ClockFrequency);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_SetBaudRate (HwUnit, FlexioBaud, ClockFrequency);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus = 0;

  <bb 7> :
  # DEBUG BEGIN_STMT
  D.6402 = TempStatus;
  return D.6402;

}


Uart_Ipw_Deinit (uint8 Channel)
{
  uint8 HwUnit;

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit = _2->UartHwChannel;
  # DEBUG BEGIN_STMT
  _3 = (int) Channel;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) HwUnit;
  Uart_Ipw_s8HwMapping[_6] = -1;
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_Deinit (HwUnit);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  _7 = (unsigned int) HwUnit;
  _8 = _7 + 3;
  Uart_Ipw_s8HwMapping[_8] = -1;
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_Deinit (HwUnit);

  <bb 5> :
  # DEBUG BEGIN_STMT
  _9 = (int) Channel;
  Uart_Ipw_apChnConfig[_9] = 0B;
  return;

}


Uart_Ipw_Init (uint8 Channel, const struct Uart_Ipw_HwConfigType * Config)
{
  uint8 HwUnit;

  <bb 2> :
  # DEBUG BEGIN_STMT
  HwUnit = Config->UartHwChannel;
  # DEBUG BEGIN_STMT
  _1 = (int) Channel;
  Uart_Ipw_apChnConfig[_1] = Config;
  # DEBUG BEGIN_STMT
  _2 = (int) Channel;
  _3 = Uart_Ipw_apChnConfig[_2];
  _4 = _3->UartIpType;
  if (_4 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _5 = (int) HwUnit;
  Channel.0_6 = (signed char) Channel;
  Uart_Ipw_s8HwMapping[_5] = Channel.0_6;
  # DEBUG BEGIN_STMT
  _7 = Config->UserConfig;
  _8 = _7->LpuartUserConfig;
  Lpuart_Uart_Ip_Init (HwUnit, _8);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  _9 = (unsigned int) HwUnit;
  _10 = _9 + 3;
  Channel.1_11 = (signed char) Channel;
  Uart_Ipw_s8HwMapping[_10] = Channel.1_11;
  # DEBUG BEGIN_STMT
  _12 = Config->UserConfig;
  _13 = _12->FlexioUartUserConfig;
  Flexio_Uart_Ip_Init (HwUnit, _13);

  <bb 5> :
  return;

}


