Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <RTL.h> #include <rl_usb.h> #include "usb_for_lib.h" U32 GetLastError ( U8 ctrl, U8 dev_idx );
The GetLastError function returns the last error that happened on requested dev_idx device instance on requested ctrl USB Host Controller.
You can modify this function to suit different class driver. This function will need to be changed for class that does not have driver provided.
The GetLastError function returns one of the following manifest constants.
cls.config, cls.init, cls.unconfig, cls.uninit
/* MSC Class Driver Control Block */ USBH_DCD usbh_dcd_cls = { USB_DEVICE_CLASS_STORAGE, Config, UnConfig, Init, UnInit, GetLastError }; static U32 GetLastError (U8 ctrl, U8 dev_idx) { return (usbh_dci_msc[ctrl*usbh_msc_num+dev_idx].LastError); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.