void relay_Enable ( E_BOOL  bEnabled )
Parameters:
bEnabledE_BOOL relay enabled or not (TRUE or FALSE)
Returns:
void

Definition at line 94 of file relay.c.

References RELAY_BIT, RELAY_PORT, and TRUE.

Referenced by main(), mg_RelayControl(), relay_Init(), and safety_SafeMode().

{
  if(TRUE == bEnabled)
  {
    RELAY_PORT |=  (1U << RELAY_BIT);
  }
  else
  {
    RELAY_PORT &= ~(1U << RELAY_BIT);
  }
} /* End: relay_Enable() */

Here is the caller graph for this function: