/* Returns the gain of the ambiant light sensor.  */
int32_t BSP_LIGHT_SENSOR_GetGain(uint32_t Instance, uint8_t Channel, uint32_t *pGain)
/* Returns the gain of the ambiant light sensor.  */
int32_t BSP_LIGHT_SENSOR_GetGain(uint32_t Instance, uint8_t Channel, uint32_t *pGain)
{
  int32_t status = BSP_ERROR_NONE;
  if (Instance >= LIGHT_SENSOR_INSTANCES_NBR)
  {
    status = BSP_ERROR_WRONG_PARAM;
  }
  else
  {
    if (VEML6030_LIGHT_SENSOR_Drv[Instance]->GetGain(VEML6030_LIGHT_SENSOR_CompObj[Instance],Channel,pGain) < 0)
    {
      status = BSP_ERROR_COMPONENT_FAILURE;
    }
  }
  return status ;
}