void fan_Set ( E_SWITCH  eState )
Parameters:
eStateE_SWITCH new fan state (ON or OFF)
Returns:
void

Definition at line 94 of file fan.c.

References FAN_BIT, FAN_PORT, and ON.

Referenced by fan_Init(), main(), safety_Init(), safety_SafeMode(), and safety_SetCondition().

{
  if(ON == eState)
  {
    FAN_PORT |=  (1U << FAN_BIT);
  }
  else
  {
    FAN_PORT &= ~(1U << FAN_BIT);
  }
} /* End: fan_Set() */

Here is the caller graph for this function: