beautypg.com

Api calls – Freescale Semiconductor TWR-MCF52259-Ethenet User Manual

Page 115

background image

TM

S

o

ft

w

a

re

G

en

er

a

l

C

o

n

ce

p

ts

API Calls:

What happens after enumeration?

Commonly used API calls for host devices:

•host_init()
•host_stop()
•host_reset_bus()
•host_send_control()
•host_receive_control()
•host_send()
•host_receive()
•host_add_ep()
•host_remove_ep()
•host_modify_ep()
•host_ms_delay()
•host_scan_for_device()

- Initialize the host controller
- Disable the host controller
- Reset the USB bus and all connected devices
- Send configuration info
- Get config info
- Send data on USB channel
- Get data on USB channel
- Define an EP for your use
- Delete an EP (allows others to use it)
- host_modify_ep()
- host_ms_delay()
- Application scan USB see devices attached