/**************************************************************************** Module LimitSwitchDebounce.c Revision 1.0.1 Description This is a limit switch debouncing service for ME218B project team 3 under the Gen2 Events and Services Framework. Notes Private Definitions DebounceTime FrontLeftDebouncing FrontRightDebouncing RearLeftDebouncing RearRightDebouncing ES_Event_t RunLimitSwitchDebounce(ES_Event_t ThisEvent) --------------------- // based on the event type: // FRONT_LIMIT_HIT_L_RAW: // if we are not debouncing this limit switch: // post a limit switch hit event to Gameplay service // start a debouncing timer // set debouncing for this limit switch to true // FRONT_LIMIT_HIT_R_RAW: // if we are not debouncing this limit switch: // post a limit switch hit event to Gameplay service // start a debouncing timer // set debouncing for this limit switch to true // REAR_LIMIT_HIT_L_RAW: // if we are not debouncing this limit switch: // post a limit switch hit event to Gameplay service // start a debouncing timer // set debouncing for this limit switch to true // REAR_LIMIT_HIT_R_RAW: // if we are not debouncing this limit switch: // post a limit switch hit event to Gameplay service // start a debouncing timer // set debouncing for this limit switch to true // ES_TIMEOUT: // based on the event parameter of this event: // FrontLeftDebounceTimer: // reset the debouncing flag for this limit switch // FrontRightDebounceTimer: // reset the debouncing flag for this limit switch // RearLeftDebounceTimer: // reset the debouncing flag for this limit switch // RearRightDebounceTimer: // reset the debouncing flag for this limit switch /***************************************************************************/