USBHUB
 
Component USBHUB
USB HUB device
Component Level: High
Events:
(Events are call-back functions called when an important event occurrs. Please see the Embedded Components page for more information.)
  • EventModule - Name of the user module (without extension), where the events from this component are placed.
  • BeforeNewSpeed - This event is called when the CPU speed mode is being changed (using CPU methods) - before the change. The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).

      ANSIC prototype: void BeforeNewSpeed(void)

  • AfterNewSpeed - This event is called when the CPU speed mode is being changed (using CPU methods) - after the change. The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).

      ANSIC prototype: void AfterNewSpeed(void)

  • OnPowerOnDownstreamPort - 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!

      ANSIC prototype: void OnPowerOnDownstreamPort(byte Port)
    • Port:byte - Number of port to set power on.
    • Priority - Priority of the event routine. For details see description below of the page.

  • OnPowerOffDownstreamPort - 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!

      ANSIC prototype: void OnPowerOffDownstreamPort(byte Port)
    • Port:byte - Number of port to set power off.
    • Priority - Priority of the event routine. For details see description below of the page.

  • OnHubConfigurationChange - This event is invoked when the host sends the SET_CONFIGURATION request and before ACK handshake is returned to the host.

      ANSIC prototype: void OnHubConfigurationChange(byte NewConfigurationNumber)
    • NewConfigurationNumber:byte - Number of new configuration.
    • Priority - Priority of the event routine. For details see description below of the page.

  • OnHubReset - This event is invoked when the hub detects reset signal on the bus and performs internal reset.

      ANSIC prototype: void OnHubReset(void)
    • Priority - Priority of the event routine. For details see description below of the page.

  • OnHubSuspend - This event is invoked when the hub detects no activity more them 5 ms.

      ANSIC prototype: void OnHubSuspend(void)
    • Priority - Priority of the event routine. For details see description below of the page.

  • OnHubResume - This event is invoked when the hub detects activity while in suspend.

      ANSIC prototype: void OnHubResume(void)
    • Priority - Priority of the event routine. For details see description below of the page.


For each generated event it is possible to set: