/* Get the current value on a specified port.  */
int16_t HW_IF_PWR_GetCurrent(uint8_t PortNum)
/* Get the current value on a specified port.  */
int16_t HW_IF_PWR_GetCurrent(uint8_t PortNum)
{
  int16_t signed_current;
  signed_current = (int16_t)(MAMP(ADCxConvertedValues[IBUS_INDEX(PortNum)]) +23);
  if (signed_current < 0)
    return (- signed_current);
  else
    return signed_current;
}