void Check_Infra_Sensor_Beacon_1(void) { Check whether the period of the detected infra-sensor is around 20 millisecond If period is around 20 millisecond, send out Beacon_1_Detected event } void Check_Infra_Sensor_Beacon_2(void) { Check whether the period of the detected infra-sensor is around 18 millisecond If period is around 18 millisecond, send out Beacon_2_Detected event } void Check_Infra_Sensor_Beacon_3(void) { Check whether the period of the detected infra-sensor is around 16 millisecond If period is around 16 millisecond, send out Beacon_1_Detected event } void Check_Infra_Sensor_Beacon_4(void) { Check whether the period of the detected infra-sensor is around 14 millisecond If period is around 14 millisecond, send out Beacon_2_Detected event } void Check_Front_Left_Front_Bumper_Switch(void) { Check whether the Front left facing front bumper limit switch has been hit If hit, send out Front_Left_Front_Bumper_Activated event } void Check_Front_Left_Left_Bumper_Switch(void) { Check whether the Front left facing left bumper limit switch has been hit If hit, send out Front_Left_Left_Bumper_Activated event } void Check_Front_Right_Front_Bumper_Switch(void) { Check whether the Front Right facing Front bumper limit switch has been hit If hit, send out Front_Right_Front_Bumper_Activated event } void Check_Front_Right_Right_Bumper_Switch(void) { Check whether the Front Right facing Right bumper limit switch has been hit If hit, send out Front_Right_Right_Bumper_Activated event } void Check_Back_Left_Back_Bumper_Switch(void) { Check whether the Back left facing back bumper limit switch has been hit If hit, send out Back_Left_Back_Bumper_Activated event } void Check_Back_Left_Left_Bumper_Switch(void) { Check whether the Back left facing left bumper limit switch has been hit If hit, send out Back_Left_Left_Bumper_Activated event } void Check_Back_Right_Back_Bumper_Switch(void) { Check whether the Back Right facing Back bumper limit switch has been hit If hit, send out Back_Right_Back_Bumper_Activated event } void Check_Back_Right_Right_Bumper_Switch(void) { Check whether the Back Right facing Right bumper limit switch has been hit If hit, send out Back_Right_Right_Bumper_Activated event } void Check_Tray_Upper_Limit_Switch(void) { Check if the tray upper limit switch has been activated If hit, send out Tray_Upper_Limit_Reached event } void Check_Tray_Lower_Limit_Switch(void) { Check if the tray lower limit switch has been activated If hit, send out Tray_Lower_Limit_Reached event } void Check_Game_Start(void) { Check whether there are non zero ball in play If there are, send out Game_Started event } void Check_1MS_TIMER(void) { Check whether the 1 ms hardware timer has expired If expired, send out Timer_1ms_expired event }