Atmel Software Framework

cdc/host/example/main.h File Reference

Declaration of main function used by example.

Copyright (C) 2012 Atmel Corporation. All rights reserved.

Functions

void main_usb_connection_event (uhc_device_t *dev, bool b_present)
 Notify that a USB device has been connected or disconnected. More...
 
void main_usb_sof_event (void)
 Notify that a SOF has been sent (each 1 ms) More...
 

void main_usb_connection_event ( uhc_device_t dev,
bool  b_present 
)

Notify that a USB device has been connected or disconnected.

Parameters
devPointer on USB device information
b_presenttrue, if the device has been connected

References lun_state, MAIN_EVENT_CONNECTION, MAIN_EVENT_DISCONNECTION, main_events, ui_usb_connection_event(), and UNUSED().

void main_usb_sof_event ( void  )

Notify that a SOF has been sent (each 1 ms)

References main_usb_sof_counter, and ui_usb_sof_event().