/* ** ################################################################### ** ** Filename : Events.H ** ** Project : USBHUB ** ** Processor : MC68HC908LD64IFU ** ** Componenttype : Events ** ** Version : Driver 01.01 ** ** Compiler : Metrowerks HC08 C Compiler ** ** Date/Time : 06.10.2003, 15:23 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** HUB1_OnPowerOnDownstreamPort - void HUB1_OnPowerOnDownstreamPort(byte Port); ** HUB1_OnPowerOffDownstreamPort - void HUB1_OnPowerOffDownstreamPort(byte Port); ** ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ #ifndef __Events_H #define __Events_H /* MODULE Events */ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" #include "HUB1.h" void HUB1_OnPowerOnDownstreamPort(byte Port); /* ** =================================================================== ** Event : HUB1_OnPowerOnDownstreamPort (module Events) ** ** From Component : HUB1 [USBHUB] ** Description : ** This event is invoked when the host sends the SET_FEATURE ** request whose value of feature selector is PORT_POWER. ** You must power on the requested port before you end this ** event! ** Parameters : ** NAME - DESCRIPTION ** Port - Number of port to set power on. ** Returns : Nothing ** =================================================================== */ void HUB1_OnPowerOffDownstreamPort(byte Port); /* ** =================================================================== ** Event : HUB1_OnPowerOffDownstreamPort (module Events) ** ** From Component : HUB1 [USBHUB] ** Description : ** This event is invoked when the host sends the ** CLEAR_FEATURE request whose value of feature selector is ** PORT_POWER. You must power off the requested port before ** you end this event! ** Parameters : ** NAME - DESCRIPTION ** Port - Number of port to set power off. ** Returns : Nothing ** =================================================================== */ /* END Events */ #endif /* __Events_H*/ /* ** ################################################################### ** ** This file was created by Processor Expert 03.33 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */