Software – General Concepts

API Calls:What happens after enumeration?

Commonly used API calls for host devices:

•host_init()

- Initialize the host controller

•host_stop()

- Disable the host controller

•host_reset_bus()

- Reset the USB bus and all connected devices

•host_send_control()

- Send configuration info

•host_receive_control()

- Get config info

•host_send()

- Send data on USB channel

•host_receive()

- Get data on USB channel

•host_add_ep()

- Define an EP for your use

•host_remove_ep()

- Delete an EP (allows others to use it)

•host_modify_ep()

- host_modify_ep()

•host_ms_delay()

- host_ms_delay()

•host_scan_for_device()

- Application scan USB see devices attached

Page 115
Image 115
Freescale Semiconductor TWR-MCF52259-Ethenet manual Commonly used API calls for host devices